feat(orchestrator): calling needed agents when it needs to
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user