fix: fix Go formatting in context.go
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1e5d740bf2
commit
961c54b375
1 changed files with 2 additions and 2 deletions
|
|
@ -314,8 +314,8 @@ func (cb *ContextBuilder) GetSkillsInfo() map[string]interface{} {
|
|||
// to a preceding message with 'tool_calls'" after compression or cancellation.
|
||||
func sanitizeToolMessages(history []providers.Message) []providers.Message {
|
||||
// Pass 1: collect IDs present in each direction
|
||||
toolCallIDs := make(map[string]bool) // IDs declared by assistant tool_calls
|
||||
toolRespIDs := make(map[string]bool) // IDs present as tool responses
|
||||
toolCallIDs := make(map[string]bool) // IDs declared by assistant tool_calls
|
||||
toolRespIDs := make(map[string]bool) // IDs present as tool responses
|
||||
|
||||
for _, msg := range history {
|
||||
if msg.Role == "assistant" && len(msg.ToolCalls) > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue