assistant2: Restructure storage of tool uses and results (#21194)
This PR restructures the storage of the tool uses and results in `assistant2` so that they don't live on the individual messages. It also introduces a `LanguageModelToolUseId` newtype for better type safety. Release Notes: - N/A
This commit is contained in:
parent
7e418cc8af
commit
968ffaa3fd
9 changed files with 136 additions and 77 deletions
|
@ -1925,7 +1925,7 @@ impl ContextEditor {
|
|||
Content::ToolUse {
|
||||
range: tool_use.source_range.clone(),
|
||||
tool_use: LanguageModelToolUse {
|
||||
id: tool_use.id.to_string(),
|
||||
id: tool_use.id.clone(),
|
||||
name: tool_use.name.clone(),
|
||||
input: tool_use.input.clone(),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue