fix(tool): raw text not scaling so well ey?
This commit is contained in:
@ -283,6 +283,8 @@ func (client AgentClient) Process(info ToolHandlerInfo, request AgentRequestBody
|
||||
}
|
||||
}
|
||||
|
||||
log.Println(err)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
@ -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.")
|
||||
|
@ -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": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
`
|
||||
|
||||
|
Reference in New Issue
Block a user