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

This commit is contained in:
2025-04-04 22:50:19 +01:00
parent aa153de185
commit 286a9a8472
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
}

View File

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

View File

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