Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Remove agent_id from HealthCheckRequest
JBDaa425a655801
diff --git a/agent/remote.go b/agent/remote.goindex 7328c74..16f92c8 100644--- a/agent/remote.go+++ b/agent/remote.go@@ -165,9 +165,7 @@ func (a *RemoteAgent) HealthCheck(ctx context.Context) error {ctx, cancel := context.WithTimeout(ctx, 5*time.Second)defer cancel()- resp, err := a.client.HealthCheck(ctx, &proto.HealthCheckRequest{- AgentId: a.id,- })+ resp, err := a.client.HealthCheck(ctx, &proto.HealthCheckRequest{})if err != nil {return fmt.Errorf("health check failed: %w", err)}diff --git a/examples/remote_agent/main.go b/examples/remote_agent/main.goindex b297a1a..0e8c129 100644--- a/examples/remote_agent/main.go+++ b/examples/remote_agent/main.go@@ -113,7 +113,7 @@ func (s *server) StreamLifecycle(stream proto.AgentService_StreamLifecycleServer// HealthCheck checks if the agent is healthy.func (s *server) HealthCheck(ctx context.Context, req *proto.HealthCheckRequest) (*proto.HealthCheckResponse, error) {- log.Printf("Health check requested for agent: %s", req.AgentId)+ log.Println("Health check requested")return &proto.HealthCheckResponse{Healthy: true,diff --git a/proto/gar.pb.go b/proto/gar.pb.goindex 08a6c90..bff7881 100644--- a/proto/gar.pb.go+++ b/proto/gar.pb.go@@ -214,7 +214,6 @@ func (x *LifecycleEvent) GetMetadata() map[string]string {// HealthCheckRequest for agent health checkstype HealthCheckRequest struct {state protoimpl.MessageState `protogen:"open.v1"`- AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -249,13 +248,6 @@ func (*HealthCheckRequest) Descriptor() ([]byte, []int) {return file_proto_gar_proto_rawDescGZIP(), []int{2}}-func (x *HealthCheckRequest) GetAgentId() string {- if x != nil {- return x.AgentId- }- return ""-}-// HealthCheckResponse contains agent health statustype HealthCheckResponse struct {state protoimpl.MessageState `protogen:"open.v1"`@@ -843,9 +835,8 @@ const file_proto_gar_proto_rawDesc = "" +"\bmetadata\x18\x03 \x03(\v2#.proto.LifecycleEvent.MetadataEntryR\bmetadata\x1a;\n" +"\rMetadataEntry\x12\x10\n" +"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"/\n" +- "\x12HealthCheckRequest\x12\x19\n" +- "\bagent_id\x18\x01 \x01(\tR\aagentId\"I\n" ++ "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x14\n" ++ "\x12HealthCheckRequest\"I\n" +"\x13HealthCheckResponse\x12\x18\n" +"\ahealthy\x18\x01 \x01(\bR\ahealthy\x12\x18\n" +"\amessage\x18\x02 \x01(\tR\amessage\"\x83\x01\n" +diff --git a/proto/gar.proto b/proto/gar.protoindex bfb4540..118dd03 100644--- a/proto/gar.proto+++ b/proto/gar.proto@@ -24,9 +24,7 @@ message LifecycleEvent {}// HealthCheckRequest for agent health checks-message HealthCheckRequest {- string agent_id = 1;-}+message HealthCheckRequest {}// HealthCheckResponse contains agent health statusmessage HealthCheckResponse {