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
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -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.")
|
||||||
|
@ -103,11 +103,8 @@ 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": {}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user