ZIm/crates/assistant2
Marshall Bowers 921c24e274
assistant2: Add helper methods to Thread for dealing with tool use (#26310)
This PR adds two new helper methods to the `Thread` for dealing with
tool use:

- `use_pending_tools` - This uses all of the tools that are pending
- The reason we aren't calling this directly in `stream_completion` is
that we still might need to have a way for users to confirm that they
want tools to be run, which would need to happen at the UI layer in the
`ActiveThread`.
- `send_tool_results_to_model` - This encapsulates inserting a new user
message that contains the tool results and sending them up to the model.

Release Notes:

- N/A
2025-03-07 23:16:45 +00:00
..
src assistant2: Add helper methods to Thread for dealing with tool use (#26310) 2025-03-07 23:16:45 +00:00
Cargo.toml chore: Extract PromptStore out of prompt_library (#25837) 2025-03-01 00:34:28 +01:00
LICENSE-GPL Break ground on assistant2 (#21109) 2024-11-23 11:24:52 -05:00