Skip to content

armgit / ax

Public Imported from GitHub
0

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

Go

Add ConversationId in the example remote agent message. (#246)

Junjie Wangff8095fe303c
diff --git a/examples/remote_agent/main.go b/examples/remote_agent/main.go
index 2c7670e..a44c240 100644
--- a/examples/remote_agent/main.go
+++ b/examples/remote_agent/main.go
@@ -80,6 +80,7 @@ func (s *server) Connect(stream grpc.BidiStreamingServer[proto.AgentMessage, pro
}
if err := stream.Send(&proto.AgentMessage{
+ ConversationId: incoming.ConversationId,
ExecId: incoming.ExecId,
Type: &proto.AgentMessage_Outputs{
Outputs: &proto.AgentOutputs{
@@ -92,6 +93,7 @@ func (s *server) Connect(stream grpc.BidiStreamingServer[proto.AgentMessage, pro
// Send AgentEnd to signal end of outputs.
if err := stream.Send(&proto.AgentMessage{
+ ConversationId: incoming.ConversationId,
ExecId: incoming.ExecId,
Type: &proto.AgentMessage_End{
End: &proto.AgentEnd{},