fix(chat): preserve provider tool-call metadata
This commit is contained in:
@@ -326,8 +326,9 @@ func (e *AgentEngine) appendToolResults(
|
||||
argsJSON, _ := json.Marshal(tc.Args)
|
||||
|
||||
assistantMsg.ToolCalls = append(assistantMsg.ToolCalls, chat.ToolCall{
|
||||
ID: tc.ID,
|
||||
Type: "function",
|
||||
ID: tc.ID,
|
||||
Type: "function",
|
||||
ProviderMetadata: tc.ProviderMetadata,
|
||||
Function: chat.FunctionCall{
|
||||
Name: tc.Name,
|
||||
Arguments: string(argsJSON),
|
||||
|
||||
Reference in New Issue
Block a user