feat(orchestrator): calling needed agents when it needs to

This commit is contained in:
2025-04-05 11:01:43 +01:00
parent 33fb206e2f
commit 6549643340
3 changed files with 46 additions and 26 deletions

View File

@@ -152,10 +152,6 @@ func (imageMessage AgentImage) ToJson() ([]byte, error) {
return json.Marshal(imageMessage)
}
type AiClient interface {
GetImageInfo(imageName string, imageData []byte) (ImageInfo, error)
}
type ResponseChoiceMessage struct {
Role string `json:"role"`
Content string `json:"content"`
@@ -253,8 +249,6 @@ func (client AgentClient) Request(request *AgentRequestBody) (AgentResponse, err
return AgentResponse{}, err
}
log.Println(string(response))
toolCalls := agentResponse.Choices[0].Message.ToolCalls
if len(toolCalls) > 0 {
// Should for sure be more flexible.