Orchestrator + Tooling rework #4

Merged
JohnCosta27 merged 17 commits from feat/orchestrator into main 2025-04-09 17:00:53 +01:00
9 changed files with 547 additions and 933 deletions
Showing only changes of commit 286a9a8472 - Show all commits

View File

@ -283,6 +283,8 @@ func (client AgentClient) Process(info ToolHandlerInfo, request AgentRequestBody
}
}
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

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