Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Remove session_id from TriggerSessionResponse
JBD81853c4cf8eb
diff --git a/internal/server/server.go b/internal/server/server.goindex a774512..577549d 100644--- a/internal/server/server.go+++ b/internal/server/server.go@@ -43,8 +43,7 @@ func (s *Server) TriggerSession(req *proto.TriggerSessionRequest, stream grpc.Se}if err := stream.Send(&proto.TriggerSessionResponse{- SessionId: sessionID,- State: proto.State_STATE_STARTING,+ State: proto.State_STATE_STARTING,}); err != nil {return err}@@ -52,8 +51,7 @@ func (s *Server) TriggerSession(req *proto.TriggerSessionRequest, stream grpc.Se// Trigger the sessionif err := s.controller.TriggerSession(stream.Context(), sessionID, inputs, checkpointID); err != nil {stream.Send(&proto.TriggerSessionResponse{- SessionId: sessionID,- State: proto.State_STATE_FAILED,+ State: proto.State_STATE_FAILED,})return err}@@ -62,8 +60,7 @@ func (s *Server) TriggerSession(req *proto.TriggerSessionRequest, stream grpc.Sesession, err := s.controller.GetSession(sessionID)if err != nil {stream.Send(&proto.TriggerSessionResponse{- SessionId: sessionID,- State: proto.State_STATE_FAILED,+ State: proto.State_STATE_FAILED,})return err}@@ -76,7 +73,6 @@ func (s *Server) TriggerSession(req *proto.TriggerSessionRequest, stream grpc.Se// Send final success responsereturn stream.Send(&proto.TriggerSessionResponse{- SessionId: sessionID,State: session.State,CheckpointId: latestCheckpointID,})diff --git a/proto/gar.pb.go b/proto/gar.pb.goindex bff7881..96a3ce3 100644--- a/proto/gar.pb.go+++ b/proto/gar.pb.go@@ -365,10 +365,9 @@ func (x *TriggerSessionRequest) GetCheckpointId() string {// TriggerSessionResponse contains the result of triggering a sessiontype TriggerSessionResponse struct {state protoimpl.MessageState `protogen:"open.v1"`- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`- State State `protobuf:"varint,2,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"` // Session state- Output *Content `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"`- CheckpointId string `protobuf:"bytes,4,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"` // Checkpoint UUID for this response+ State State `protobuf:"varint,1,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"` // Session state+ Output *Content `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`+ CheckpointId string `protobuf:"bytes,3,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"` // Checkpoint UUID for this responseunknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -403,13 +402,6 @@ func (*TriggerSessionResponse) Descriptor() ([]byte, []int) {return file_proto_gar_proto_rawDescGZIP(), []int{5}}-func (x *TriggerSessionResponse) GetSessionId() string {- if x != nil {- return x.SessionId- }- return ""-}-func (x *TriggerSessionResponse) GetState() State {if x != nil {return x.State@@ -844,13 +836,11 @@ const file_proto_gar_proto_rawDesc = "" +"\n" +"session_id\x18\x01 \x01(\tR\tsessionId\x12&\n" +"\x06inputs\x18\x02 \x03(\v2\x0e.proto.ContentR\x06inputs\x12#\n" +- "\rcheckpoint_id\x18\x03 \x01(\tR\fcheckpointId\"\xa8\x01\n" +- "\x16TriggerSessionResponse\x12\x1d\n" +- "\n" +- "session_id\x18\x01 \x01(\tR\tsessionId\x12\"\n" +- "\x05state\x18\x02 \x01(\x0e2\f.proto.StateR\x05state\x12&\n" +- "\x06output\x18\x03 \x01(\v2\x0e.proto.ContentR\x06output\x12#\n" +- "\rcheckpoint_id\x18\x04 \x01(\tR\fcheckpointId\"2\n" ++ "\rcheckpoint_id\x18\x03 \x01(\tR\fcheckpointId\"\x89\x01\n" ++ "\x16TriggerSessionResponse\x12\"\n" ++ "\x05state\x18\x01 \x01(\x0e2\f.proto.StateR\x05state\x12&\n" ++ "\x06output\x18\x02 \x01(\v2\x0e.proto.ContentR\x06output\x12#\n" ++ "\rcheckpoint_id\x18\x03 \x01(\tR\fcheckpointId\"2\n" +"\x11GetSessionRequest\x12\x1d\n" +"\n" +"session_id\x18\x01 \x01(\tR\tsessionId\"\xde\x02\n" +diff --git a/proto/gar.proto b/proto/gar.protoindex 118dd03..14e67f4 100644--- a/proto/gar.proto+++ b/proto/gar.proto@@ -63,10 +63,9 @@ message TriggerSessionRequest {// TriggerSessionResponse contains the result of triggering a sessionmessage TriggerSessionResponse {- string session_id = 1;- State state = 2; // Session state- Content output = 3;- string checkpoint_id = 4; // Checkpoint UUID for this response+ State state = 1; // Session state+ Content output = 2;+ string checkpoint_id = 3; // Checkpoint UUID for this response}// GetSessionRequest for retrieving session details