Skip to content

armgit / ax

Public Imported from GitHub
0

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

Go

Print out the session ID in the local agent example

Jaana Doganf8c4820136d8
diff --git a/examples/local_agent/main.go b/examples/local_agent/main.go
index e8789f5..8f079a7 100644
--- a/examples/local_agent/main.go
+++ b/examples/local_agent/main.go
@@ -75,6 +75,8 @@ func main() {
// Trigger a session
sessionID := uuid.New().String()
+ log.Printf("Session ID: %s\n", sessionID)
+
handler := agent.OutputHandler(func(content *proto.Content) error {
fmt.Printf("Output received: %s\n", content.Data)
return nil