Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Mimick that every non user message is from the model
Jaana Dogana1a755cb3483
diff --git a/internal/controller/gemini.go b/internal/controller/gemini.goindex 03e31b2..8de3d82 100644--- a/internal/controller/gemini.go+++ b/internal/controller/gemini.go@@ -166,7 +166,7 @@ func protoToContents(inputs []*proto.Content) []*genai.Content {// Convert each message to Gemini formatfor _, msg := range inputs {role := msg.Role- if role == "assistant" {+ if role != "user" {role = "model"}contents = append(contents, &genai.Content{