Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

Use uppercasing as an example

Jaana Doganb5540f042558
diff --git a/examples/local_agent/main.go b/examples/local_agent/main.go
index 8f079a7..c82f4f0 100644
--- a/examples/local_agent/main.go
+++ b/examples/local_agent/main.go
@@ -63,13 +63,12 @@ func main() {
log.Fatalf("Error registering agent: %v\n", err)
}
- fmt.Println("Agent registered successfully")
inputs := []*proto.Content{
{
Role: "user",
Type: "text",
Mimetype: "text/plain",
- Data: "Hello, echo agent!",
+ Data: "Hello, uppercase my message!",
},
}
@@ -96,7 +95,7 @@ func createEchoAgent(id string) (*agent.LocalAgent, error) {
Role: "assistant",
Type: content.Type,
Mimetype: content.Mimetype,
- Data: fmt.Sprintf("Echo (session %s): %s", sessionID, strings.ToUpper(content.Data)),
+ Data: strings.ToUpper(content.Data),
}
// Call handler with the response