fix: ensure tool name is correctly included in assistant message

This commit is contained in:
tpkeeper 2026-02-19 11:29:27 +08:00
parent 80d44c86c3
commit 8c29a8bd0d

View file

@ -109,6 +109,7 @@ func RunToolLoop(ctx context.Context, config ToolLoopConfig, messages []provider
Name: tc.Name,
Arguments: string(argumentsJSON),
},
Name: tc.Name,
})
}
messages = append(messages, assistantMsg)