Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Send periodic HEARTBEAT events
JBDba2ac6d8c6e9
diff --git a/examples/remote_agent/main.go b/examples/remote_agent/main.goindex 61ecb68..e6324e0 100644--- a/examples/remote_agent/main.go+++ b/examples/remote_agent/main.go@@ -71,14 +71,6 @@ func (s *server) Process(stream proto.AgentService_ProcessServer) error {func (s *server) StreamLifecycle(stream proto.AgentService_StreamLifecycleServer) error {log.Println("Lifecycle stream started")- // Send initial PROGRESS event- if err := stream.Send(&proto.LifecycleEvent{- EventType: "PROGRESS",- Timestamp: timestamppb.Now(),- }); err != nil {- return err- }-// Send periodic heartbeatsticker := time.NewTicker(10 * time.Second)defer ticker.Stop()@@ -87,7 +79,7 @@ func (s *server) StreamLifecycle(stream proto.AgentService_StreamLifecycleServerselect {case <-ticker.C:event := &proto.LifecycleEvent{- EventType: "PROGRESS",+ EventType: "HEARTBEAT",Timestamp: timestamppb.Now(),}