Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Remove session_id from SessionInfo
JBD8ee4b988e6fe
diff --git a/cmd/gar/inspect.go b/cmd/gar/inspect.goindex 18c2b84..d26291a 100644--- a/cmd/gar/inspect.go+++ b/cmd/gar/inspect.go@@ -50,7 +50,7 @@ func runInspect(cmd *cobra.Command, args []string) error {// Print session detailsfmt.Println("\nSession Details:")- fmt.Printf(" ID: %s\n", session.SessionId)+ fmt.Printf(" ID: %s\n", inspectSessionID)fmt.Printf(" State: %s\n", session.State)fmt.Printf(" Current Step: %d\n", session.CurrentStep)fmt.Printf(" Created At: %s\n", session.CreatedAt.AsTime().Format(time.RFC3339))diff --git a/internal/server/server.go b/internal/server/server.goindex 577549d..2290eec 100644--- a/internal/server/server.go+++ b/internal/server/server.go@@ -99,7 +99,6 @@ func (s *Server) GetSession(ctx context.Context, req *proto.GetSessionRequest) (return &proto.GetSessionResponse{Session: &proto.SessionInfo{- SessionId: session.ID,State: session.State,CurrentStep: int32(session.CurrentStep),ActiveAgents: session.ActiveAgents,diff --git a/proto/gar.pb.go b/proto/gar.pb.goindex 96a3ce3..f40eb73 100644--- a/proto/gar.pb.go+++ b/proto/gar.pb.go@@ -471,14 +471,13 @@ func (x *GetSessionRequest) GetSessionId() string {// SessionInfo contains session detailstype SessionInfo 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"`- CurrentStep int32 `protobuf:"varint,3,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"`- ActiveAgents []string `protobuf:"bytes,4,rep,name=active_agents,json=activeAgents,proto3" json:"active_agents,omitempty"`- CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Session creation time- UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Last update time- MessageCount int32 `protobuf:"varint,7,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"`- CheckpointCount int32 `protobuf:"varint,8,opt,name=checkpoint_count,json=checkpointCount,proto3" json:"checkpoint_count,omitempty"`+ State State `protobuf:"varint,1,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"`+ CurrentStep int32 `protobuf:"varint,2,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"`+ ActiveAgents []string `protobuf:"bytes,3,rep,name=active_agents,json=activeAgents,proto3" json:"active_agents,omitempty"`+ CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Session creation time+ UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Last update time+ MessageCount int32 `protobuf:"varint,6,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"`+ CheckpointCount int32 `protobuf:"varint,7,opt,name=checkpoint_count,json=checkpointCount,proto3" json:"checkpoint_count,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -513,13 +512,6 @@ func (*SessionInfo) Descriptor() ([]byte, []int) {return file_proto_gar_proto_rawDescGZIP(), []int{7}}-func (x *SessionInfo) GetSessionId() string {- if x != nil {- return x.SessionId- }- return ""-}-func (x *SessionInfo) GetState() State {if x != nil {return x.State@@ -843,19 +835,17 @@ const file_proto_gar_proto_rawDesc = "" +"\rcheckpoint_id\x18\x03 \x01(\tR\fcheckpointId\"2\n" +"\x11GetSessionRequest\x12\x1d\n" +"\n" +- "session_id\x18\x01 \x01(\tR\tsessionId\"\xde\x02\n" +- "\vSessionInfo\x12\x1d\n" +- "\n" +- "session_id\x18\x01 \x01(\tR\tsessionId\x12\"\n" +- "\x05state\x18\x02 \x01(\x0e2\f.proto.StateR\x05state\x12!\n" +- "\fcurrent_step\x18\x03 \x01(\x05R\vcurrentStep\x12#\n" +- "\ractive_agents\x18\x04 \x03(\tR\factiveAgents\x129\n" ++ "session_id\x18\x01 \x01(\tR\tsessionId\"\xbf\x02\n" ++ "\vSessionInfo\x12\"\n" ++ "\x05state\x18\x01 \x01(\x0e2\f.proto.StateR\x05state\x12!\n" ++ "\fcurrent_step\x18\x02 \x01(\x05R\vcurrentStep\x12#\n" ++ "\ractive_agents\x18\x03 \x03(\tR\factiveAgents\x129\n" +"\n" +- "created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" ++ "created_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +"\n" +- "updated_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12#\n" +- "\rmessage_count\x18\a \x01(\x05R\fmessageCount\x12)\n" +- "\x10checkpoint_count\x18\b \x01(\x05R\x0fcheckpointCount\"B\n" ++ "updated_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12#\n" ++ "\rmessage_count\x18\x06 \x01(\x05R\fmessageCount\x12)\n" ++ "\x10checkpoint_count\x18\a \x01(\x05R\x0fcheckpointCount\"B\n" +"\x12GetSessionResponse\x12,\n" +"\asession\x18\x01 \x01(\v2\x12.proto.SessionInfoR\asession\"\x85\x02\n" +"\x14RegisterAgentRequest\x12\x19\n" +diff --git a/proto/gar.proto b/proto/gar.protoindex 14e67f4..6ec7e14 100644--- a/proto/gar.proto+++ b/proto/gar.proto@@ -75,14 +75,13 @@ message GetSessionRequest {// SessionInfo contains session detailsmessage SessionInfo {- string session_id = 1;- State state = 2;- int32 current_step = 3;- repeated string active_agents = 4;- google.protobuf.Timestamp created_at = 5; // Session creation time- google.protobuf.Timestamp updated_at = 6; // Last update time- int32 message_count = 7;- int32 checkpoint_count = 8;+ State state = 1;+ int32 current_step = 2;+ repeated string active_agents = 3;+ google.protobuf.Timestamp created_at = 4; // Session creation time+ google.protobuf.Timestamp updated_at = 5; // Last update time+ int32 message_count = 6;+ int32 checkpoint_count = 7;}// GetSessionResponse contains session information