fix(tool): raw text not scaling so well ey?

This commit is contained in:
2025-04-04 22:50:19 +01:00
parent 49f1990341
commit 33fb206e2f
3 changed files with 11 additions and 14 deletions

View File

@ -283,6 +283,8 @@ func (client AgentClient) Process(info ToolHandlerInfo, request AgentRequestBody
} }
} }
log.Println(err) if err != nil {
log.Println(err)
}
return err return err
} }

View File

@ -32,8 +32,6 @@ func (handler ToolsHandlers) Handle(info ToolHandlerInfo, request *AgentRequestB
fnName := toolCall.ToolCalls[0].Function.Name fnName := toolCall.ToolCalls[0].Function.Name
arguments := toolCall.ToolCalls[0].Function.Arguments arguments := toolCall.ToolCalls[0].Function.Arguments
log.Println(handler.handlers)
fnHandler, exists := (*handler.handlers)[fnName] fnHandler, exists := (*handler.handlers)[fnName]
if !exists { if !exists {
return errors.New("Could not find tool with this name.") return errors.New("Could not find tool with this name.")

View File

@ -99,17 +99,14 @@ const TOOLS = `
} }
} }
}, },
{ {
"type": "function", "type": "function",
"function": { "function": {
"name": "finish", "name": "finish",
"description": "Nothing else to do, call this function.", "description": "Nothing else to do. call this function.",
"parameters": { "parameters": {}
"type": "object", }
"properties": {} }
}
}
}
] ]
` `