flutter / flutter/ai

[feat] update for tool handling generically

Open
#130 2 comments 1 reaction 1 assignee Claimed by @csells View on GitHub
Dominant language
Dart
Stars
286
Forks
94
PR merge metrics
No merged PRs in 30d

Description

Currently, the AI Toolkit allows for tool usage if the provider exposes that functionality. However, it's a big pain to manage the history in that case, since the tool calls and results have no mappings and you want to keep those in the history.

And, the tool handling changes based on what LLM you're using.

But worst of all, if the `LlmChatView` or app in some other way calls `DartanticProvider.history = ...`, then all of the tool calls in the history will be lost.😭

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.