Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Rename trigger to exec (#92)
Jaana Doganaca4e9e2a8af
diff --git a/README.md b/README.mdindex e7f95b1..b51b99d 100644--- a/README.md+++ b/README.md@@ -55,38 +55,38 @@ You should see the gar CLI usage information.## Quick Start-### 1. Run trigger+### 1. Run exec-The CLI provides an easy way to trigger a session by using the+The CLI provides an easy way to execute a session by using theagents and built-in tools already linked into the GAR binary.```bash# Using default gar.yaml-gar trigger --input "Can you list me this directory?"+gar exec --input "Can you list me this directory?"# Using a custom configuration-gar trigger --input "Can you list me this directory?" --config my-config.yaml+gar exec --input "Can you list me this directory?" --config my-config.yaml```You can continue a session any time:```bash-gar trigger --session session123 --input "Show me the contents of README.md"+gar exec --session session123 --input "Show me the contents of README.md"```Instead of running the default planner agent, you can run any registered agent:```bash-gar trigger --agent coding --input "Can you list me this directory?"+gar exec --agent coding --input "Can you list me this directory?"```### 2. Run Remote Agent with GAR ServerMost developers want to register their custom remote agents.-This example demonstrates how the GAR server triggers remote agents through the `AgentService.Process` RPC. You can run this in two ways:+This example demonstrates how the GAR server executes remote agents through the `AgentService.Process` RPC. You can run this in two ways:-This is the standard way to run GAR, separating the controller from the trigger client.+This is the standard way to run GAR, separating the controller from the execution client.**Terminal 1** - Start the remote agent server:```bash@@ -100,7 +100,7 @@ gar serve```The GAR server exposes the `GARService` on port `:8494`.-**Terminal 3** - Register the remote agent and trigger a session:+**Terminal 3** - Register the remote agent and execute a session:```bash# Register the remote agent with gargar register \@@ -110,8 +110,8 @@ gar register \--agent-description "Converts input text to uppercase." \--agent-addr localhost:50051-# Trigger a session - once server address is specified, gar will coordinate the remote agent via Process RPC accordingly-gar trigger \+# Execute a session - once server address is specified, gar will coordinate the remote agent via Process RPC accordingly+gar exec \--server localhost:8494 \--session session123 \--input "Hello, can you uppercase what I just said?"@@ -123,10 +123,10 @@ gar trigger \The `gar` command provides several subcommands:-#### Trigger a Session+#### Execute a Session```bash-gar trigger \+gar exec \--input <text> \[--session <id>] \[--agent <id>] \@@ -134,7 +134,7 @@ gar trigger \[--config <file>]```-Triggers a new agentic loop session or automatically resumes an existing one. If the session ID already exists, the session will be resumed from its last state with the new input.+Executes a new agentic loop session or automatically resumes an existing one. If the session ID already exists, the session will be resumed from its last state with the new input.Options:- `--input`: Input message to send to agents (required)@@ -146,16 +146,16 @@ Options:**Examples:**```bash-# Trigger a new session-gar trigger --input "Hello agents!"+# Execute a new session+gar exec --input "Hello agents!"# Resume an existing session with new input-gar trigger --session abc123 --input "Ok, now let's do something else..."+gar exec --session abc123 --input "Ok, now let's do something else..."-# Trigger using server mode (connect to gar serve)-gar trigger --server localhost:8494 --input "Hello agents!"+# Execute using server mode (connect to gar serve)+gar exec --server localhost:8494 --input "Hello agents!"-gar trigger --agent coding --input "Hello coding agent, write me a cool Go program!"+gar exec --agent coding --input "Hello coding agent, write me a cool Go program!"```#### Fork a Session@@ -282,7 +282,7 @@ gar fork --src-session session123 \--dest-session session456# Resume from the forked session-gar trigger --session session456 \+gar exec --session session456 \--input "Try different approach"```@@ -316,7 +316,7 @@ See `examples/local_agent/main.go` for a complete implementation.### Remote Agent-Remote agents run as gRPC servers implementing the `AgentService` interface defined in `proto/gar.proto`. The gar controller triggers remote agents by calling their `Process` RPC with bidirectional streaming.+Remote agents run as gRPC servers implementing the `AgentService` interface defined in `proto/gar.proto`. The gar controller executes remote agents by calling their `Process` RPC with bidirectional streaming.See `examples/remote_agent/main.go` for a complete implementation.@@ -324,7 +324,7 @@ See `examples/remote_agent/main.go` for a complete implementation.1. Remote agent starts as gRPC server on a port (e.g., :50051)2. Start gar controller: `gar serve`3. Register with gar: `gar register --agent-id my-agent --agent-name "My Agent" --agent-description "Agent description" --agent-addr localhost:50051`-4. When gar triggers a session, it calls the agent's `Process` RPC+4. When gar executes a session, it calls the agent's `Process` RPC5. GAR streams input content → Agent processes → Agent streams output backSee `examples/remote_agent/main.go` for a complete implementation.@@ -410,10 +410,10 @@ registry:gar serve --config gar.yaml```-**5. Trigger the Agent**+**5. Run the Agent**In a separate terminal:```bash-gar trigger --input "use the uppercase agent to convert 'hello world'"+gar exec --input "use the uppercase agent to convert 'hello world'"```The system will dynamically create a `SandboxClaim`, establish a connection via `kubectl port-forward`, execute the code securely, and return the result.@@ -459,8 +459,8 @@ gar register \--agent-description "An agent that processes text to lower or upper case the inputs." \--agent-addr localhost:50051-# Trigger a session-gar trigger \+# Execute a session+gar exec \--server localhost:8494 \--session session123 \--input "Hello, can you uppercase what I just said?"diff --git a/cmd/gar/trigger.go b/cmd/gar/exec.gosimilarity index 70%rename from cmd/gar/trigger.gorename to cmd/gar/exec.goindex 1e6ce37..b06e1c8 100644--- a/cmd/gar/trigger.go+++ b/cmd/gar/exec.go@@ -32,41 +32,41 @@ import ()var (- triggerSessionID string- triggerAgentID string- triggerInput string- triggerServerAddr string- triggerConfigFile string+ execSessionID string+ execAgentID string+ execInput string+ execServerAddr string+ execConfigFile string)-var triggerCmd = &cobra.Command{- Use: "trigger",- Short: "Trigger a new session or resume an existing one",- Long: `Trigger a new agentic session or resume an existing one.+var execCmd = &cobra.Command{+ Use: "exec",+ Short: "Execute a new session or resume an existing one",+ Long: `Execute a new agentic session or resume an existing one.If no session ID is provided, a new UUID will be generated.`,- RunE: runTrigger,+ RunE: runExec,}func init() {- triggerCmd.Flags().StringVar(&triggerSessionID, "session", "", "Session ID (optional, generates UUID if not provided)")- triggerCmd.Flags().StringVar(&triggerAgentID, "agent", "", "Agent ID (optional, planner is used if not specified)")- triggerCmd.Flags().StringVar(&triggerInput, "input", "", "Input message to send (optional)")- triggerCmd.Flags().StringVar(&triggerServerAddr, "server", "", "gRPC controller server address (if specified, connects to remote server; otherwise runs with a local built-in GAR server)")- triggerCmd.Flags().StringVar(&triggerConfigFile, "config", "gar.yaml", "Path to YAML configuration file (only used with a local built-in GAR server)")+ execCmd.Flags().StringVar(&execSessionID, "session", "", "Session ID (optional, generates UUID if not provided)")+ execCmd.Flags().StringVar(&execAgentID, "agent", "", "Agent ID (optional, planner is used if not specified)")+ execCmd.Flags().StringVar(&execInput, "input", "", "Input message to send (optional)")+ execCmd.Flags().StringVar(&execServerAddr, "server", "", "gRPC controller server address (if specified, connects to remote server; otherwise runs with a local built-in GAR server)")+ execCmd.Flags().StringVar(&execConfigFile, "config", "gar.yaml", "Path to YAML configuration file (only used with a local built-in GAR server)")}// TODO(jbd): Add multimodal input flags, e.g. --input-image.var (- triggerController *controller.Controller+ execController *controller.Controller)-func runTrigger(cmd *cobra.Command, args []string) error {+func runExec(cmd *cobra.Command, args []string) error {ctx := context.Background()// Generate UUID if no session ID provided- if triggerSessionID == "" {- triggerSessionID = uuid.New().String()+ if execSessionID == "" {+ execSessionID = uuid.New().String()}// Setup signal handling for graceful shutdown@@ -79,16 +79,16 @@ func runTrigger(cmd *cobra.Command, args []string) error {go func() {<-sigChanfmt.Println("\nReceived interrupt, shutting down...")- if triggerController != nil {- triggerController.Close()+ if execController != nil {+ execController.Close()}cancel()}()- return triggerLoop(ctx, triggerSessionID, triggerAgentID, triggerInput)+ return execLoop(ctx, execSessionID, execAgentID, execInput)}-func triggerLoop(ctx context.Context, sessionID string, agentID string, input string) error {+func execLoop(ctx context.Context, sessionID string, agentID string, input string) error {d := internal.NewDisplay(sessionID)d.DisplayHeader()@@ -113,7 +113,7 @@ func triggerLoop(ctx context.Context, sessionID string, agentID string, input st}for {- conf, outputs, err := runAutoTrigger(ctx, d, sessionID, agentID, history)+ conf, outputs, err := runAutoExec(ctx, d, sessionID, agentID, history)if err != nil {return err}@@ -154,7 +154,7 @@ func triggerLoop(ctx context.Context, sessionID string, agentID string, input st// The task is still pending, we need to only send the answer.// not the full history. Because we executor will put the full// history together.- conf, outputs, err = runAutoTrigger(ctx, d, sessionID, agentID, decision)+ conf, outputs, err = runAutoExec(ctx, d, sessionID, agentID, decision)if err != nil {return err}@@ -193,26 +193,26 @@ func triggerLoop(ctx context.Context, sessionID string, agentID string, input st}}-func runAutoTrigger(ctx context.Context, d *internal.Display, sessionID string, agentID string, inputs []*proto.Content) (*proto.ConfirmationContent, []*proto.Content, error) {- fn := runTriggerHeadless- if triggerServerAddr != "" {- fn = runTriggerServer+func runAutoExec(ctx context.Context, d *internal.Display, sessionID string, agentID string, inputs []*proto.Content) (*proto.ConfirmationContent, []*proto.Content, error) {+ fn := runExecHeadless+ if execServerAddr != "" {+ fn = runExecServer}return fn(ctx, d, sessionID, agentID, inputs)}-func runTriggerHeadless(ctx context.Context, d *internal.Display, sessionID string, agentID string, inputs []*proto.Content) (*proto.ConfirmationContent, []*proto.Content, error) {- if triggerController == nil {- cfg, err := config.LoadFromFile(triggerConfigFile)+func runExecHeadless(ctx context.Context, d *internal.Display, sessionID string, agentID string, inputs []*proto.Content) (*proto.ConfirmationContent, []*proto.Content, error) {+ if execController == nil {+ cfg, err := config.LoadFromFile(execConfigFile)if err != nil {- return nil, nil, fmt.Errorf("error loading config file '%s': %w", triggerConfigFile, err)+ return nil, nil, fmt.Errorf("error loading config file '%s': %w", execConfigFile, err)}c, err := newControllerFromConfig(ctx, cfg)if err != nil {return nil, nil, fmt.Errorf("error creating controller: %w", err)}- triggerController = c+ execController = c}var checkpoint string@@ -232,10 +232,10 @@ func runTriggerHeadless(ctx context.Context, d *internal.Display, sessionID stridisplayContents(d, resp.Contents)return nil})- if err := triggerController.TriggerSession(ctx, sessionID, agentID, &proto.ProcessRequest{+ if err := execController.Exec(ctx, sessionID, agentID, &proto.ProcessRequest{Contents: inputs,}, outputHandler); err != nil {- return nil, nil, fmt.Errorf("error triggering session with local server: %w", err)+ return nil, nil, fmt.Errorf("error executing with local server: %w", err)}if confirmation == nil {@@ -244,21 +244,21 @@ func runTriggerHeadless(ctx context.Context, d *internal.Display, sessionID strireturn confirmation, outputs, nil}-func runTriggerServer(ctx context.Context, d *internal.Display, sessionID string, agentID string, inputs []*proto.Content) (*proto.ConfirmationContent, []*proto.Content, error) {- conn, err := connect(triggerServerAddr)+func runExecServer(ctx context.Context, d *internal.Display, sessionID string, agentID string, inputs []*proto.Content) (*proto.ConfirmationContent, []*proto.Content, error) {+ conn, err := connect(execServerAddr)if err != nil {return nil, nil, err}defer conn.Close()client := proto.NewGARServiceClient(conn)- stream, err := client.TriggerSession(ctx, &proto.TriggerSessionRequest{+ stream, err := client.Exec(ctx, &proto.ExecRequest{SessionId: sessionID,AgentId: agentID,Inputs: inputs,})if err != nil {- return nil, nil, fmt.Errorf("error triggering session: %w", err)+ return nil, nil, fmt.Errorf("error executing: %w", err)}var checkpoint stringdiff --git a/cmd/gar/main.go b/cmd/gar/main.goindex f367976..3e287c2 100644--- a/cmd/gar/main.go+++ b/cmd/gar/main.go@@ -13,7 +13,7 @@// limitations under the License.// Gar is a CLI tool for managing agent orchestrator sessions.-// It provides commands to trigger sessions, resume from checkpoints,+// It provides commands to execute sessions, resume from checkpoints,// register agents, and run the controller server.package main@@ -37,13 +37,13 @@ var rootCmd = &cobra.Command{Use: "gar",Short: "GAR - Google Agent Runtime CLI",Long: `Gar is a CLI tool for managing agent orchestrator sessions.-It provides commands to trigger sessions, resume from checkpoints,+It provides commands to execute sessions, resume from checkpoints,register agents, and run the controller server.`,}func init() {// Add subcommands- rootCmd.AddCommand(triggerCmd)+ rootCmd.AddCommand(execCmd)rootCmd.AddCommand(forkCmd)rootCmd.AddCommand(registerCmd)rootCmd.AddCommand(serveCmd)diff --git a/internal/controller/controller.go b/internal/controller/controller.goindex bd756f6..986d4ef 100644--- a/internal/controller/controller.go+++ b/internal/controller/controller.go@@ -83,10 +83,10 @@ func New(ctx context.Context, config Config) (*Controller, error) {}, nil}-// TriggerSession triggers a new agentic loop session or resumes an existing one.+// Exec executes a new agentic loop session or resumes an existing one.// If sessionID is empty, a UUID will be generated.// If the session already exists, it will be resumed with optional new inputs.-func (d *Controller) TriggerSession(ctx context.Context, sessionID string, agentID string, incoming *proto.ProcessRequest, handler agent.OutputHandler) error {+func (d *Controller) Exec(ctx context.Context, sessionID string, agentID string, incoming *proto.ProcessRequest, handler agent.OutputHandler) error {if sessionID == "" {return fmt.Errorf("session_id is required")}diff --git a/internal/controller/health.go b/internal/controller/health.goindex c2c48f2..5f0bd5e 100644--- a/internal/controller/health.go+++ b/internal/controller/health.go@@ -72,7 +72,7 @@ func (hm *HealthMonitor) run() {}}-// performChecks triggers health checks for all agents.+// performChecks runs health checks for all agents.func (hm *HealthMonitor) performChecks() {// Get IDs safelyhm.registry.mu.RLock()diff --git a/internal/controller/registry_test.go b/internal/controller/registry_test.goindex 112f0cb..af06622 100644--- a/internal/controller/registry_test.go+++ b/internal/controller/registry_test.go@@ -219,7 +219,7 @@ func TestRegistry_GracefulShutdown(t *testing.T) {})}- // Let it run for a bit to ensure performChecks triggers+ // Let it run for a bit to ensure performChecks runs.time.Sleep(50 * time.Millisecond)// Close should return specific errors for failed agents, but NOT panic or deadlockdiff --git a/internal/server/server.go b/internal/server/server.goindex aec5940..c59e5f3 100644--- a/internal/server/server.go+++ b/internal/server/server.go@@ -45,8 +45,8 @@ func New(c *controller.Controller) *Server {}}-// TriggerSession triggers a new agentic loop session with streaming responses.-func (s *Server) TriggerSession(req *proto.TriggerSessionRequest, stream grpc.ServerStreamingServer[proto.TriggerSessionResponse]) error {+// Exec executes a new agentic loop session with streaming responses.+func (s *Server) Exec(req *proto.ExecRequest, stream grpc.ServerStreamingServer[proto.ExecResponse]) error {sessionID := req.SessionIdinputs := req.Inputs@@ -55,12 +55,12 @@ func (s *Server) TriggerSession(req *proto.TriggerSessionRequest, stream grpc.Se}// Create output handler to stream outputs back to clientoutputHandler := agent.OutputHandler(func(outgoing *proto.ProcessResponse) error {- return stream.Send(&proto.TriggerSessionResponse{+ return stream.Send(&proto.ExecResponse{SessionId: sessionID,Outputs: outgoing.Contents,})})- return s.controller.TriggerSession(+ return s.controller.Exec(stream.Context(), sessionID, req.AgentId, incoming, outputHandler)}diff --git a/proto/gar.pb.go b/proto/gar.pb.goindex 55ce790..9eaeaa2 100644--- a/proto/gar.pb.go+++ b/proto/gar.pb.go@@ -14,8 +14,8 @@// Code generated by protoc-gen-go. DO NOT EDIT.// versions:-// protoc-gen-go v1.36.11-// protoc v3.21.9+// protoc-gen-go v1.35.1+// protoc v5.28.2// source: proto/gar.protopackage proto@@ -27,7 +27,6 @@ import (timestamppb "google.golang.org/protobuf/types/known/timestamppb"reflect "reflect"sync "sync"- unsafe "unsafe")const (@@ -92,10 +91,11 @@ func (State) EnumDescriptor() ([]byte, []int) {// ProcessRequest is an input to an agent.type ProcessRequest struct {- state protoimpl.MessageState `protogen:"open.v1"`- Contents []*Content `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"`- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Contents []*Content `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"`}func (x *ProcessRequest) Reset() {@@ -138,12 +138,13 @@ func (x *ProcessRequest) GetContents() []*Content {// ProcessResponse is an output from an agent.// It can be returned in a streaming fashion.type ProcessResponse struct {- state protoimpl.MessageState `protogen:"open.v1"`- CheckpointId string `protobuf:"bytes,1,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"`- Contents []*Content `protobuf:"bytes,2,rep,name=contents,proto3" json:"contents,omitempty"`- FromCache bool `protobuf:"varint,3,opt,name=from_cache,json=fromCache,proto3" json:"from_cache,omitempty"`- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ CheckpointId string `protobuf:"bytes,1,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"`+ Contents []*Content `protobuf:"bytes,2,rep,name=contents,proto3" json:"contents,omitempty"`+ FromCache bool `protobuf:"varint,3,opt,name=from_cache,json=fromCache,proto3" json:"from_cache,omitempty"`}func (x *ProcessResponse) Reset() {@@ -199,10 +200,11 @@ func (x *ProcessResponse) GetFromCache() bool {// TextContent represents a text content.type TextContent struct {- state protoimpl.MessageState `protogen:"open.v1"`- Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`}func (x *TextContent) Reset() {@@ -243,10 +245,11 @@ func (x *TextContent) GetText() string {}type ApprovalDecision struct {- state protoimpl.MessageState `protogen:"open.v1"`- Approved bool `protobuf:"varint,1,opt,name=approved,proto3" json:"approved,omitempty"`- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Approved bool `protobuf:"varint,1,opt,name=approved,proto3" json:"approved,omitempty"`}func (x *ApprovalDecision) Reset() {@@ -287,10 +290,11 @@ func (x *ApprovalDecision) GetApproved() bool {}type DeclineDecision struct {- state protoimpl.MessageState `protogen:"open.v1"`- Declined bool `protobuf:"varint,1,opt,name=declined,proto3" json:"declined,omitempty"`- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Declined bool `protobuf:"varint,1,opt,name=declined,proto3" json:"declined,omitempty"`}func (x *DeclineDecision) Reset() {@@ -331,16 +335,17 @@ func (x *DeclineDecision) GetDeclined() bool {}type ConfirmationContent struct {- state protoimpl.MessageState `protogen:"open.v1"`- Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`- Question string `protobuf:"bytes,4,opt,name=question,proto3" json:"question,omitempty"`- // Types that are valid to be assigned to Decision:+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`+ Question string `protobuf:"bytes,4,opt,name=question,proto3" json:"question,omitempty"`+ // Types that are assignable to Decision://// *ConfirmationContent_Approval// *ConfirmationContent_Decline- Decision isConfirmationContent_Decision `protobuf_oneof:"decision"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ Decision isConfirmationContent_Decision `protobuf_oneof:"decision"`}func (x *ConfirmationContent) Reset() {@@ -387,27 +392,23 @@ func (x *ConfirmationContent) GetQuestion() string {return ""}-func (x *ConfirmationContent) GetDecision() isConfirmationContent_Decision {- if x != nil {- return x.Decision+func (m *ConfirmationContent) GetDecision() isConfirmationContent_Decision {+ if m != nil {+ return m.Decision}return nil}func (x *ConfirmationContent) GetApproval() *ApprovalDecision {- if x != nil {- if x, ok := x.Decision.(*ConfirmationContent_Approval); ok {- return x.Approval- }+ if x, ok := x.GetDecision().(*ConfirmationContent_Approval); ok {+ return x.Approval}return nil}func (x *ConfirmationContent) GetDecline() *DeclineDecision {- if x != nil {- if x, ok := x.Decision.(*ConfirmationContent_Decline); ok {- return x.Decline- }+ if x, ok := x.GetDecision().(*ConfirmationContent_Decline); ok {+ return x.Decline}return nil}@@ -429,13 +430,14 @@ func (*ConfirmationContent_Approval) isConfirmationContent_Decision() {}func (*ConfirmationContent_Decline) isConfirmationContent_Decision() {}type FunctionCallContent struct {- state protoimpl.MessageState `protogen:"open.v1"`- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- Args *structpb.Struct `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`- Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`- ThoughtSignature []byte `protobuf:"bytes,4,opt,name=thought_signature,json=thoughtSignature,proto3" json:"thought_signature,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ Args *structpb.Struct `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`+ Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`+ ThoughtSignature []byte `protobuf:"bytes,4,opt,name=thought_signature,json=thoughtSignature,proto3" json:"thought_signature,omitempty"`}func (x *FunctionCallContent) Reset() {@@ -497,12 +499,13 @@ func (x *FunctionCallContent) GetThoughtSignature() []byte {}type FunctionResponseContent struct {- state protoimpl.MessageState `protogen:"open.v1"`- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- Response *structpb.Struct `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`- Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ Response *structpb.Struct `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`+ Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`}func (x *FunctionResponseContent) Reset() {@@ -558,17 +561,18 @@ func (x *FunctionResponseContent) GetId() string {// Content represents a message with role, type, mimetype, and data fieldstype Content struct {- state protoimpl.MessageState `protogen:"open.v1"`- // Types that are valid to be assigned to Content:+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Types that are assignable to Content://// *Content_Text// *Content_Confirmation// *Content_FunctionCall// *Content_FunctionResponse- Content isContent_Content `protobuf_oneof:"content"`- Role string `protobuf:"bytes,1000,opt,name=role,proto3" json:"role,omitempty"` // The role of the content (e.g., "user", "assistant", "system")- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ Content isContent_Content `protobuf_oneof:"content"`+ Role string `protobuf:"bytes,1000,opt,name=role,proto3" json:"role,omitempty"` // The role of the content (e.g., "user", "assistant", "system")}func (x *Content) Reset() {@@ -601,45 +605,37 @@ func (*Content) Descriptor() ([]byte, []int) {return file_proto_gar_proto_rawDescGZIP(), []int{8}}-func (x *Content) GetContent() isContent_Content {- if x != nil {- return x.Content+func (m *Content) GetContent() isContent_Content {+ if m != nil {+ return m.Content}return nil}func (x *Content) GetText() *TextContent {- if x != nil {- if x, ok := x.Content.(*Content_Text); ok {- return x.Text- }+ if x, ok := x.GetContent().(*Content_Text); ok {+ return x.Text}return nil}func (x *Content) GetConfirmation() *ConfirmationContent {- if x != nil {- if x, ok := x.Content.(*Content_Confirmation); ok {- return x.Confirmation- }+ if x, ok := x.GetContent().(*Content_Confirmation); ok {+ return x.Confirmation}return nil}func (x *Content) GetFunctionCall() *FunctionCallContent {- if x != nil {- if x, ok := x.Content.(*Content_FunctionCall); ok {- return x.FunctionCall- }+ if x, ok := x.GetContent().(*Content_FunctionCall); ok {+ return x.FunctionCall}return nil}func (x *Content) GetFunctionResponse() *FunctionResponseContent {- if x != nil {- if x, ok := x.Content.(*Content_FunctionResponse); ok {- return x.FunctionResponse- }+ if x, ok := x.GetContent().(*Content_FunctionResponse); ok {+ return x.FunctionResponse}return nil}@@ -683,15 +679,16 @@ func (*Content_FunctionResponse) isContent_Content() {}// to record the actions taken place in the executor.// The executor can replay the events for resumability.type ExecutionEvent struct {- state protoimpl.MessageState `protogen:"open.v1"`- TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`- AgentId string `protobuf:"bytes,3,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`- Inputs []*Content `protobuf:"bytes,4,rep,name=inputs,proto3" json:"inputs,omitempty"`- Outputs []*Content `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"`- State State `protobuf:"varint,6,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"`- Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // string checkpoint_id = 10;- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ TaskId string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`+ AgentId string `protobuf:"bytes,3,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`+ Inputs []*Content `protobuf:"bytes,4,rep,name=inputs,proto3" json:"inputs,omitempty"`+ Outputs []*Content `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"`+ State State `protobuf:"varint,6,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"`+ Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // string checkpoint_id = 10;}func (x *ExecutionEvent) Reset() {@@ -768,9 +765,9 @@ func (x *ExecutionEvent) GetTimestamp() *timestamppb.Timestamp {// HealthCheckRequest for agent health checkstype HealthCheckRequest struct {- state protoimpl.MessageState `protogen:"open.v1"`- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields}func (x *HealthCheckRequest) Reset() {@@ -805,11 +802,12 @@ func (*HealthCheckRequest) Descriptor() ([]byte, []int) {// HealthCheckResponse contains agent health statustype HealthCheckResponse struct {- state protoimpl.MessageState `protogen:"open.v1"`- Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"`- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"`+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`}func (x *HealthCheckResponse) Reset() {@@ -856,30 +854,31 @@ func (x *HealthCheckResponse) GetMessage() string {return ""}-// TriggerSessionRequest for triggering a new session-type TriggerSessionRequest struct {- state protoimpl.MessageState `protogen:"open.v1"`- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Unique session identifier- AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` // Agent ID, if empty planner is used.- Inputs []*Content `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` // Input content to process- unknownFields protoimpl.UnknownFields+// ExecRequest for executing.+type ExecRequest struct {+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Unique session identifier+ AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` // Agent ID, if empty planner is used.+ Inputs []*Content `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` // Input content to process}-func (x *TriggerSessionRequest) Reset() {- *x = TriggerSessionRequest{}+func (x *ExecRequest) Reset() {+ *x = ExecRequest{}mi := &file_proto_gar_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *TriggerSessionRequest) String() string {+func (x *ExecRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*TriggerSessionRequest) ProtoMessage() {}+func (*ExecRequest) ProtoMessage() {}-func (x *TriggerSessionRequest) ProtoReflect() protoreflect.Message {+func (x *ExecRequest) ProtoReflect() protoreflect.Message {mi := &file_proto_gar_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -891,56 +890,57 @@ func (x *TriggerSessionRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use TriggerSessionRequest.ProtoReflect.Descriptor instead.-func (*TriggerSessionRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use ExecRequest.ProtoReflect.Descriptor instead.+func (*ExecRequest) Descriptor() ([]byte, []int) {return file_proto_gar_proto_rawDescGZIP(), []int{12}}-func (x *TriggerSessionRequest) GetSessionId() string {+func (x *ExecRequest) GetSessionId() string {if x != nil {return x.SessionId}return ""}-func (x *TriggerSessionRequest) GetAgentId() string {+func (x *ExecRequest) GetAgentId() string {if x != nil {return x.AgentId}return ""}-func (x *TriggerSessionRequest) GetInputs() []*Content {+func (x *ExecRequest) GetInputs() []*Content {if x != nil {return x.Inputs}return nil}-// TriggerSessionResponse contains the result of triggering a session-type TriggerSessionResponse struct {- state protoimpl.MessageState `protogen:"open.v1"`- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Session ID (in case it was generated or modified by server)- Outputs []*Content `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"` // Output content- State State `protobuf:"varint,3,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"` // Session state- unknownFields protoimpl.UnknownFields+// ExecResponse contains the result of an execution.+type ExecResponse struct {+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Session ID+ Outputs []*Content `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"` // Output content+ State State `protobuf:"varint,3,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"` // Session state}-func (x *TriggerSessionResponse) Reset() {- *x = TriggerSessionResponse{}+func (x *ExecResponse) Reset() {+ *x = ExecResponse{}mi := &file_proto_gar_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *TriggerSessionResponse) String() string {+func (x *ExecResponse) String() string {return protoimpl.X.MessageStringOf(x)}-func (*TriggerSessionResponse) ProtoMessage() {}+func (*ExecResponse) ProtoMessage() {}-func (x *TriggerSessionResponse) ProtoReflect() protoreflect.Message {+func (x *ExecResponse) ProtoReflect() protoreflect.Message {mi := &file_proto_gar_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -952,26 +952,26 @@ func (x *TriggerSessionResponse) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use TriggerSessionResponse.ProtoReflect.Descriptor instead.-func (*TriggerSessionResponse) Descriptor() ([]byte, []int) {+// Deprecated: Use ExecResponse.ProtoReflect.Descriptor instead.+func (*ExecResponse) Descriptor() ([]byte, []int) {return file_proto_gar_proto_rawDescGZIP(), []int{13}}-func (x *TriggerSessionResponse) GetSessionId() string {+func (x *ExecResponse) GetSessionId() string {if x != nil {return x.SessionId}return ""}-func (x *TriggerSessionResponse) GetOutputs() []*Content {+func (x *ExecResponse) GetOutputs() []*Content {if x != nil {return x.Outputs}return nil}-func (x *TriggerSessionResponse) GetState() State {+func (x *ExecResponse) GetState() State {if x != nil {return x.State}@@ -979,12 +979,13 @@ func (x *TriggerSessionResponse) GetState() State {}type ForkSessionRequest struct {- state protoimpl.MessageState `protogen:"open.v1"`- SrcSessionId string `protobuf:"bytes,1,opt,name=src_session_id,json=srcSessionId,proto3" json:"src_session_id,omitempty"`- SrcCheckpointId string `protobuf:"bytes,2,opt,name=src_checkpoint_id,json=srcCheckpointId,proto3" json:"src_checkpoint_id,omitempty"` // Checkpoint ID within the source session to fork from.- DestSessionId string `protobuf:"bytes,3,opt,name=dest_session_id,json=destSessionId,proto3" json:"dest_session_id,omitempty"` // New session ID. If provided, must not exist.- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ SrcSessionId string `protobuf:"bytes,1,opt,name=src_session_id,json=srcSessionId,proto3" json:"src_session_id,omitempty"`+ SrcCheckpointId string `protobuf:"bytes,2,opt,name=src_checkpoint_id,json=srcCheckpointId,proto3" json:"src_checkpoint_id,omitempty"` // Checkpoint ID within the source session to fork from.+ DestSessionId string `protobuf:"bytes,3,opt,name=dest_session_id,json=destSessionId,proto3" json:"dest_session_id,omitempty"` // New session ID. If provided, must not exist.}func (x *ForkSessionRequest) Reset() {@@ -1039,10 +1040,11 @@ func (x *ForkSessionRequest) GetDestSessionId() string {}type ForkSessionResponse struct {- state protoimpl.MessageState `protogen:"open.v1"`- NewSessionId string `protobuf:"bytes,1,opt,name=new_session_id,json=newSessionId,proto3" json:"new_session_id,omitempty"` // New session ID (in case it was generated or modified by server)- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ NewSessionId string `protobuf:"bytes,1,opt,name=new_session_id,json=newSessionId,proto3" json:"new_session_id,omitempty"` // New session ID (in case it was generated or modified by server)}func (x *ForkSessionResponse) Reset() {@@ -1083,10 +1085,11 @@ func (x *ForkSessionResponse) GetNewSessionId() string {}type RemoteAgentConfig struct {- state protoimpl.MessageState `protogen:"open.v1"`- Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // gRPC address for remote agents- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // gRPC address for remote agents}func (x *RemoteAgentConfig) Reset() {@@ -1128,17 +1131,18 @@ func (x *RemoteAgentConfig) GetAddress() string {// RegisterAgentRequest for registering an agenttype RegisterAgentRequest struct {- state protoimpl.MessageState `protogen:"open.v1"`- AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Human-readable name for the agent- Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Description of agent capabilities- Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`- // Types that are valid to be assigned to Config:+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Human-readable name for the agent+ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Description of agent capabilities+ Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`+ // Types that are assignable to Config://// *RegisterAgentRequest_Remote- Config isRegisterAgentRequest_Config `protobuf_oneof:"config"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ Config isRegisterAgentRequest_Config `protobuf_oneof:"config"`}func (x *RegisterAgentRequest) Reset() {@@ -1199,18 +1203,16 @@ func (x *RegisterAgentRequest) GetMetadata() map[string]string {return nil}-func (x *RegisterAgentRequest) GetConfig() isRegisterAgentRequest_Config {- if x != nil {- return x.Config+func (m *RegisterAgentRequest) GetConfig() isRegisterAgentRequest_Config {+ if m != nil {+ return m.Config}return nil}func (x *RegisterAgentRequest) GetRemote() *RemoteAgentConfig {- if x != nil {- if x, ok := x.Config.(*RegisterAgentRequest_Remote); ok {- return x.Remote- }+ if x, ok := x.GetConfig().(*RegisterAgentRequest_Remote); ok {+ return x.Remote}return nil}@@ -1227,9 +1229,9 @@ func (*RegisterAgentRequest_Remote) isRegisterAgentRequest_Config() {}// RegisterAgentResponse contains registration resulttype RegisterAgentResponse struct {- state protoimpl.MessageState `protogen:"open.v1"`- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields}func (x *RegisterAgentResponse) Reset() {@@ -1264,10 +1266,11 @@ func (*RegisterAgentResponse) Descriptor() ([]byte, []int) {// UnregisterAgentRequest for unregistering an agenttype UnregisterAgentRequest 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.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`}func (x *UnregisterAgentRequest) Reset() {@@ -1309,9 +1312,9 @@ func (x *UnregisterAgentRequest) GetAgentId() string {// UnregisterAgentResponse contains unregistration resulttype UnregisterAgentResponse struct {- state protoimpl.MessageState `protogen:"open.v1"`- unknownFields protoimpl.UnknownFields+ state protoimpl.MessageStatesizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields}func (x *UnregisterAgentResponse) Reset() {@@ -1346,113 +1349,208 @@ func (*UnregisterAgentResponse) Descriptor() ([]byte, []int) {var File_proto_gar_proto protoreflect.FileDescriptor-const file_proto_gar_proto_rawDesc = "" +- "\n" +- "\x0fproto/gar.proto\x12\x05proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"<\n" +- "\x0eProcessRequest\x12*\n" +- "\bcontents\x18\x01 \x03(\v2\x0e.proto.ContentR\bcontents\"\x81\x01\n" +- "\x0fProcessResponse\x12#\n" +- "\rcheckpoint_id\x18\x01 \x01(\tR\fcheckpointId\x12*\n" +- "\bcontents\x18\x02 \x03(\v2\x0e.proto.ContentR\bcontents\x12\x1d\n" +- "\n" +- "from_cache\x18\x03 \x01(\bR\tfromCache\"3\n" +- "\vTextContent\x12\x12\n" +- "\x04text\x18\x03 \x01(\tR\x04textJ\x04\b\x01\x10\x02J\x04\b\x02\x10\x03R\x04type\".\n" +- "\x10ApprovalDecision\x12\x1a\n" +- "\bapproved\x18\x01 \x01(\bR\bapproved\";\n" +- "\x0fDeclineDecision\x12\x1a\n" +- "\bdeclined\x18\x01 \x01(\bR\bdeclinedJ\x04\b\x02\x10\x03R\x06reason\"\xca\x01\n" +- "\x13ConfirmationContent\x12\x0e\n" +- "\x02id\x18\x03 \x01(\tR\x02id\x12\x1a\n" +- "\bquestion\x18\x04 \x01(\tR\bquestion\x125\n" +- "\bapproval\x18\x05 \x01(\v2\x17.proto.ApprovalDecisionH\x00R\bapproval\x122\n" +- "\adecline\x18\x06 \x01(\v2\x16.proto.DeclineDecisionH\x00R\adeclineB\n" +- "\n" +- "\bdecisionJ\x04\b\x01\x10\x02J\x04\b\x02\x10\x03R\x04type\"\x93\x01\n" +- "\x13FunctionCallContent\x12\x12\n" +- "\x04name\x18\x01 \x01(\tR\x04name\x12+\n" +- "\x04args\x18\x02 \x01(\v2\x17.google.protobuf.StructR\x04args\x12\x0e\n" +- "\x02id\x18\x03 \x01(\tR\x02id\x12+\n" +- "\x11thought_signature\x18\x04 \x01(\fR\x10thoughtSignature\"r\n" +- "\x17FunctionResponseContent\x12\x12\n" +- "\x04name\x18\x01 \x01(\tR\x04name\x123\n" +- "\bresponse\x18\x02 \x01(\v2\x17.google.protobuf.StructR\bresponse\x12\x0e\n" +- "\x02id\x18\x03 \x01(\tR\x02id\"\xb9\x02\n" +- "\aContent\x12(\n" +- "\x04text\x18\n" +- " \x01(\v2\x12.proto.TextContentH\x00R\x04text\x12@\n" +- "\fconfirmation\x18\x1a \x01(\v2\x1a.proto.ConfirmationContentH\x00R\fconfirmation\x12A\n" +- "\rfunction_call\x18\x1b \x01(\v2\x1a.proto.FunctionCallContentH\x00R\ffunctionCall\x12M\n" +- "\x11function_response\x18\x1c \x01(\v2\x1e.proto.FunctionResponseContentH\x00R\x10functionResponse\x12\x13\n" +- "\x04role\x18\xe8\a \x01(\tR\x04roleB\t\n" +- "\acontentJ\x04\b\x01\x10\x05J\x04\b\x06\x10\n" +- "J\x04\b\v\x10\x1a\"\xf4\x01\n" +- "\x0eExecutionEvent\x12\x17\n" +- "\atask_id\x18\x02 \x01(\tR\x06taskId\x12\x19\n" +- "\bagent_id\x18\x03 \x01(\tR\aagentId\x12&\n" +- "\x06inputs\x18\x04 \x03(\v2\x0e.proto.ContentR\x06inputs\x12(\n" +- "\aoutputs\x18\x05 \x03(\v2\x0e.proto.ContentR\aoutputs\x12\"\n" +- "\x05state\x18\x06 \x01(\x0e2\f.proto.StateR\x05state\x128\n" +- "\ttimestamp\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\"\x14\n" +- "\x12HealthCheckRequest\"I\n" +- "\x13HealthCheckResponse\x12\x18\n" +- "\ahealthy\x18\x01 \x01(\bR\ahealthy\x12\x18\n" +- "\amessage\x18\x02 \x01(\tR\amessage\"y\n" +- "\x15TriggerSessionRequest\x12\x1d\n" +- "\n" +- "session_id\x18\x01 \x01(\tR\tsessionId\x12\x19\n" +- "\bagent_id\x18\x02 \x01(\tR\aagentId\x12&\n" +- "\x06inputs\x18\x03 \x03(\v2\x0e.proto.ContentR\x06inputs\"\x85\x01\n" +- "\x16TriggerSessionResponse\x12\x1d\n" +- "\n" +- "session_id\x18\x01 \x01(\tR\tsessionId\x12(\n" +- "\aoutputs\x18\x02 \x03(\v2\x0e.proto.ContentR\aoutputs\x12\"\n" +- "\x05state\x18\x03 \x01(\x0e2\f.proto.StateR\x05state\"\x8e\x01\n" +- "\x12ForkSessionRequest\x12$\n" +- "\x0esrc_session_id\x18\x01 \x01(\tR\fsrcSessionId\x12*\n" +- "\x11src_checkpoint_id\x18\x02 \x01(\tR\x0fsrcCheckpointId\x12&\n" +- "\x0fdest_session_id\x18\x03 \x01(\tR\rdestSessionId\";\n" +- "\x13ForkSessionResponse\x12$\n" +- "\x0enew_session_id\x18\x01 \x01(\tR\fnewSessionId\"-\n" +- "\x11RemoteAgentConfig\x12\x18\n" +- "\aaddress\x18\x01 \x01(\tR\aaddress\"\xa9\x02\n" +- "\x14RegisterAgentRequest\x12\x19\n" +- "\bagent_id\x18\x01 \x01(\tR\aagentId\x12\x12\n" +- "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +- "\vdescription\x18\x03 \x01(\tR\vdescription\x12E\n" +- "\bmetadata\x18\x04 \x03(\v2).proto.RegisterAgentRequest.MetadataEntryR\bmetadata\x122\n" +- "\x06remote\x18\x05 \x01(\v2\x18.proto.RemoteAgentConfigH\x00R\x06remote\x1a;\n" +- "\rMetadataEntry\x12\x10\n" +- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\b\n" +- "\x06config\"\x17\n" +- "\x15RegisterAgentResponse\"3\n" +- "\x16UnregisterAgentRequest\x12\x19\n" +- "\bagent_id\x18\x01 \x01(\tR\aagentId\"\x19\n" +- "\x17UnregisterAgentResponse*X\n" +- "\x05State\x12\x15\n" +- "\x11STATE_UNSPECIFIED\x10\x00\x12\x11\n" +- "\rSTATE_PENDING\x10\x01\x12\x10\n" +- "\fSTATE_FAILED\x10\x02\x12\x13\n" +- "\x0fSTATE_COMPLETED\x10\x032\x92\x01\n" +- "\fAgentService\x12<\n" +- "\aProcess\x12\x15.proto.ProcessRequest\x1a\x16.proto.ProcessResponse(\x010\x01\x12D\n" +- "\vHealthCheck\x12\x19.proto.HealthCheckRequest\x1a\x1a.proto.HealthCheckResponse2\xc1\x02\n" +- "\n" +- "GARService\x12O\n" +- "\x0eTriggerSession\x12\x1c.proto.TriggerSessionRequest\x1a\x1d.proto.TriggerSessionResponse0\x01\x12D\n" +- "\vForkSession\x12\x19.proto.ForkSessionRequest\x1a\x1a.proto.ForkSessionResponse\x12J\n" +- "\rRegisterAgent\x12\x1b.proto.RegisterAgentRequest\x1a\x1c.proto.RegisterAgentResponse\x12P\n" +- "\x0fUnregisterAgent\x12\x1d.proto.UnregisterAgentRequest\x1a\x1e.proto.UnregisterAgentResponseB\x1dZ\x1bgithub.com/google/gar/protob\x06proto3"+var file_proto_gar_proto_rawDesc = []byte{+ 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,+ 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,+ 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,+ 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63,+ 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x63, 0x65,+ 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e,+ 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e,+ 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73,+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x65,+ 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2a,+ 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,+ 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,+ 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x72,+ 0x6f, 0x6d, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09,+ 0x66, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x22, 0x33, 0x0a, 0x0b, 0x54, 0x65, 0x78,+ 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x4a, 0x04, 0x08, 0x01,+ 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x2e,+ 0x0a, 0x10, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69,+ 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x64, 0x22, 0x3b,+ 0x0a, 0x0f, 0x44, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f,+ 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x64, 0x4a, 0x04, 0x08,+ 0x02, 0x10, 0x03, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xca, 0x01, 0x0a, 0x13,+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74,+ 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12,+ 0x35, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76,+ 0x61, 0x6c, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, 0x61, 0x70,+ 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x12, 0x32, 0x0a, 0x07, 0x64, 0x65, 0x63, 0x6c, 0x69, 0x6e,+ 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,+ 0x44, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x48,+ 0x00, 0x52, 0x07, 0x64, 0x65, 0x63, 0x6c, 0x69, 0x6e, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x64, 0x65,+ 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02,+ 0x10, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x13, 0x46, 0x75, 0x6e,+ 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,+ 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x61, 0x72, 0x67,+ 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,+ 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x68, 0x6f, 0x75, 0x67, 0x68, 0x74, 0x5f, 0x73, 0x69, 0x67,+ 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x74, 0x68,+ 0x6f, 0x75, 0x67, 0x68, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x22, 0x72,+ 0x0a, 0x17, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,+ 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x33, 0x0a,+ 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,+ 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,+ 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,+ 0x69, 0x64, 0x22, 0xb9, 0x02, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x28,+ 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x65, 0x78, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,+ 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x66,+ 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x6f,+ 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x0d, 0x66, 0x75,+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x61, 0x6c, 0x6c, 0x18, 0x1b, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69,+ 0x6f, 0x6e, 0x43, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52,+ 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x61, 0x6c, 0x6c, 0x12, 0x4d, 0x0a,+ 0x11, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,+ 0x73, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,+ 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x10, 0x66, 0x75, 0x6e, 0x63,+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x13, 0x0a, 0x04,+ 0x72, 0x6f, 0x6c, 0x65, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c,+ 0x65, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4a, 0x04, 0x08, 0x01,+ 0x10, 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x0a, 0x4a, 0x04, 0x08, 0x0b, 0x10, 0x1a, 0x22, 0xf4,+ 0x01, 0x0a, 0x0e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e,+ 0x74, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67,+ 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67,+ 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18,+ 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f,+ 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x28, 0x0a,+ 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x07,+ 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x22, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53,+ 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74,+ 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65,+ 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x14, 0x0a, 0x12, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43,+ 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x49, 0x0a, 0x13, 0x48,+ 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,+ 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x79, 0x12, 0x18, 0x0a, 0x07,+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x6f, 0x0a, 0x0b, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,+ 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69,+ 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,+ 0x26, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52,+ 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x22, 0x7b, 0x0a, 0x0c, 0x45, 0x78, 0x65, 0x63, 0x52,+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69,+ 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73,+ 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74,+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,+ 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73,+ 0x12, 0x22, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,+ 0x0c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73,+ 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x12, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73,+ 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x73,+ 0x72, 0x63, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x72, 0x63, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49,+ 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x72, 0x63, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f,+ 0x69, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x72,+ 0x63, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a,+ 0x0f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73,+ 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x13, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73,+ 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x0e,+ 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,+ 0x49, 0x64, 0x22, 0x2d, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x41, 0x67, 0x65, 0x6e,+ 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,+ 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,+ 0x73, 0x22, 0xa9, 0x02, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67,+ 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67,+ 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67,+ 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,+ 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x08, 0x6d,+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67,+ 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64,+ 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,+ 0x74, 0x61, 0x12, 0x32, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74,+ 0x65, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x06,+ 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,+ 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,+ 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,+ 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x17, 0x0a,+ 0x15, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x0a, 0x16, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69,+ 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x55,+ 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65,+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x58, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,+ 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f,+ 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41,+ 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x53,+ 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03,+ 0x32, 0x92, 0x01, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,+ 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x15, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75,+ 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x72, 0x6f, 0x63,+ 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12,+ 0x44, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x19,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65,+ 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xa3, 0x02, 0x0a, 0x0a, 0x47, 0x41, 0x52, 0x53, 0x65, 0x72,+ 0x76, 0x69, 0x63, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x45, 0x78, 0x65, 0x63, 0x12, 0x12, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x0b, 0x46, 0x6f, 0x72, 0x6b, 0x53,+ 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46,+ 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x46, 0x6f, 0x72, 0x6b, 0x53, 0x65,+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a,+ 0x0d, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1b,+ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41,+ 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e,+ 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0f, 0x55, 0x6e, 0x72,+ 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41,+ 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x67,+ 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1d, 0x5a, 0x1b, 0x67,+ 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,+ 0x2f, 0x67, 0x61, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x33,+}var (file_proto_gar_proto_rawDescOnce sync.Once- file_proto_gar_proto_rawDescData []byte+ file_proto_gar_proto_rawDescData = file_proto_gar_proto_rawDesc)func file_proto_gar_proto_rawDescGZIP() []byte {file_proto_gar_proto_rawDescOnce.Do(func() {- file_proto_gar_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_gar_proto_rawDesc), len(file_proto_gar_proto_rawDesc)))+ file_proto_gar_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_gar_proto_rawDescData)})return file_proto_gar_proto_rawDescData}@@ -1473,8 +1571,8 @@ var file_proto_gar_proto_goTypes = []any{(*ExecutionEvent)(nil), // 10: proto.ExecutionEvent(*HealthCheckRequest)(nil), // 11: proto.HealthCheckRequest(*HealthCheckResponse)(nil), // 12: proto.HealthCheckResponse- (*TriggerSessionRequest)(nil), // 13: proto.TriggerSessionRequest- (*TriggerSessionResponse)(nil), // 14: proto.TriggerSessionResponse+ (*ExecRequest)(nil), // 13: proto.ExecRequest+ (*ExecResponse)(nil), // 14: proto.ExecResponse(*ForkSessionRequest)(nil), // 15: proto.ForkSessionRequest(*ForkSessionResponse)(nil), // 16: proto.ForkSessionResponse(*RemoteAgentConfig)(nil), // 17: proto.RemoteAgentConfig@@ -1501,20 +1599,20 @@ var file_proto_gar_proto_depIdxs = []int32{9, // 11: proto.ExecutionEvent.outputs:type_name -> proto.Content0, // 12: proto.ExecutionEvent.state:type_name -> proto.State24, // 13: proto.ExecutionEvent.timestamp:type_name -> google.protobuf.Timestamp- 9, // 14: proto.TriggerSessionRequest.inputs:type_name -> proto.Content- 9, // 15: proto.TriggerSessionResponse.outputs:type_name -> proto.Content- 0, // 16: proto.TriggerSessionResponse.state:type_name -> proto.State+ 9, // 14: proto.ExecRequest.inputs:type_name -> proto.Content+ 9, // 15: proto.ExecResponse.outputs:type_name -> proto.Content+ 0, // 16: proto.ExecResponse.state:type_name -> proto.State22, // 17: proto.RegisterAgentRequest.metadata:type_name -> proto.RegisterAgentRequest.MetadataEntry17, // 18: proto.RegisterAgentRequest.remote:type_name -> proto.RemoteAgentConfig1, // 19: proto.AgentService.Process:input_type -> proto.ProcessRequest11, // 20: proto.AgentService.HealthCheck:input_type -> proto.HealthCheckRequest- 13, // 21: proto.GARService.TriggerSession:input_type -> proto.TriggerSessionRequest+ 13, // 21: proto.GARService.Exec:input_type -> proto.ExecRequest15, // 22: proto.GARService.ForkSession:input_type -> proto.ForkSessionRequest18, // 23: proto.GARService.RegisterAgent:input_type -> proto.RegisterAgentRequest20, // 24: proto.GARService.UnregisterAgent:input_type -> proto.UnregisterAgentRequest2, // 25: proto.AgentService.Process:output_type -> proto.ProcessResponse12, // 26: proto.AgentService.HealthCheck:output_type -> proto.HealthCheckResponse- 14, // 27: proto.GARService.TriggerSession:output_type -> proto.TriggerSessionResponse+ 14, // 27: proto.GARService.Exec:output_type -> proto.ExecResponse16, // 28: proto.GARService.ForkSession:output_type -> proto.ForkSessionResponse19, // 29: proto.GARService.RegisterAgent:output_type -> proto.RegisterAgentResponse21, // 30: proto.GARService.UnregisterAgent:output_type -> proto.UnregisterAgentResponse@@ -1547,7 +1645,7 @@ func file_proto_gar_proto_init() {out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),- RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_gar_proto_rawDesc), len(file_proto_gar_proto_rawDesc)),+ RawDescriptor: file_proto_gar_proto_rawDesc,NumEnums: 1,NumMessages: 22,NumExtensions: 0,@@ -1559,6 +1657,7 @@ func file_proto_gar_proto_init() {MessageInfos: file_proto_gar_proto_msgTypes,}.Build()File_proto_gar_proto = out.File+ file_proto_gar_proto_rawDesc = nilfile_proto_gar_proto_goTypes = nilfile_proto_gar_proto_depIdxs = nil}diff --git a/proto/gar.proto b/proto/gar.protoindex 5dfcb99..50c178f 100644--- a/proto/gar.proto+++ b/proto/gar.proto@@ -132,16 +132,16 @@ enum State {STATE_COMPLETED = 3;}-// TriggerSessionRequest for triggering a new session-message TriggerSessionRequest {+// ExecRequest for executing.+message ExecRequest {string session_id = 1; // Unique session identifierstring agent_id = 2; // Agent ID, if empty planner is used.repeated Content inputs = 3; // Input content to process}-// TriggerSessionResponse contains the result of triggering a session-message TriggerSessionResponse {- string session_id = 1; // Session ID (in case it was generated or modified by server)+// ExecResponse contains the result of an execution.+message ExecResponse {+ string session_id = 1; // Session IDrepeated Content outputs = 2; // Output contentState state = 3; // Session state}@@ -186,9 +186,9 @@ message UnregisterAgentResponse {// GARService defines the gRPC service for GAR operationsservice GARService {- // TriggerSession triggers a new agentic loop session or resumes an existing one with streaming responses+ // Exec executes a new agentic loop session or resumes an existing one with streaming responses// If the session_id already exists, it will be resumed from the last checkpoint- rpc TriggerSession(TriggerSessionRequest) returns (stream TriggerSessionResponse);+ rpc Exec(ExecRequest) returns (stream ExecResponse);// ForkSession forks a session from a specific checkpoint.rpc ForkSession(ForkSessionRequest) returns (ForkSessionResponse);diff --git a/proto/gar_grpc.pb.go b/proto/gar_grpc.pb.goindex 9bc654a..737d7ca 100644--- a/proto/gar_grpc.pb.go+++ b/proto/gar_grpc.pb.go@@ -14,8 +14,8 @@// Code generated by protoc-gen-go-grpc. DO NOT EDIT.// versions:-// - protoc-gen-go-grpc v1.6.0-// - protoc v3.21.9+// - protoc-gen-go-grpc v1.5.1+// - protoc v5.28.2// source: proto/gar.protopackage proto@@ -101,10 +101,10 @@ type AgentServiceServer interface {type UnimplementedAgentServiceServer struct{}func (UnimplementedAgentServiceServer) Process(grpc.BidiStreamingServer[ProcessRequest, ProcessResponse]) error {- return status.Error(codes.Unimplemented, "method Process not implemented")+ return status.Errorf(codes.Unimplemented, "method Process not implemented")}func (UnimplementedAgentServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) {- return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented")+ return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented")}func (UnimplementedAgentServiceServer) mustEmbedUnimplementedAgentServiceServer() {}func (UnimplementedAgentServiceServer) testEmbeddedByValue() {}@@ -117,7 +117,7 @@ type UnsafeAgentServiceServer interface {}func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer) {- // If the following call panics, it indicates UnimplementedAgentServiceServer was+ // If the following call pancis, it indicates UnimplementedAgentServiceServer was// embedded by pointer and is nil. This will cause panics if an// unimplemented method is ever invoked, so we test this at initialization// time to prevent it from happening at runtime later due to I/O.@@ -176,7 +176,7 @@ var AgentService_ServiceDesc = grpc.ServiceDesc{}const (- GARService_TriggerSession_FullMethodName = "/proto.GARService/TriggerSession"+ GARService_Exec_FullMethodName = "/proto.GARService/Exec"GARService_ForkSession_FullMethodName = "/proto.GARService/ForkSession"GARService_RegisterAgent_FullMethodName = "/proto.GARService/RegisterAgent"GARService_UnregisterAgent_FullMethodName = "/proto.GARService/UnregisterAgent"@@ -188,9 +188,9 @@ const (//// GARService defines the gRPC service for GAR operationstype GARServiceClient interface {- // TriggerSession triggers a new agentic loop session or resumes an existing one with streaming responses+ // Exec executes a new agentic loop session or resumes an existing one with streaming responses// If the session_id already exists, it will be resumed from the last checkpoint- TriggerSession(ctx context.Context, in *TriggerSessionRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TriggerSessionResponse], error)+ Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecResponse], error)// ForkSession forks a session from a specific checkpoint.ForkSession(ctx context.Context, in *ForkSessionRequest, opts ...grpc.CallOption) (*ForkSessionResponse, error)// RegisterAgent registers a new agent with the controller@@ -207,13 +207,13 @@ func NewGARServiceClient(cc grpc.ClientConnInterface) GARServiceClient {return &gARServiceClient{cc}}-func (c *gARServiceClient) TriggerSession(ctx context.Context, in *TriggerSessionRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[TriggerSessionResponse], error) {+func (c *gARServiceClient) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecResponse], error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)- stream, err := c.cc.NewStream(ctx, &GARService_ServiceDesc.Streams[0], GARService_TriggerSession_FullMethodName, cOpts...)+ stream, err := c.cc.NewStream(ctx, &GARService_ServiceDesc.Streams[0], GARService_Exec_FullMethodName, cOpts...)if err != nil {return nil, err}- x := &grpc.GenericClientStream[TriggerSessionRequest, TriggerSessionResponse]{ClientStream: stream}+ x := &grpc.GenericClientStream[ExecRequest, ExecResponse]{ClientStream: stream}if err := x.ClientStream.SendMsg(in); err != nil {return nil, err}@@ -224,7 +224,7 @@ func (c *gARServiceClient) TriggerSession(ctx context.Context, in *TriggerSessio}// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.-type GARService_TriggerSessionClient = grpc.ServerStreamingClient[TriggerSessionResponse]+type GARService_ExecClient = grpc.ServerStreamingClient[ExecResponse]func (c *gARServiceClient) ForkSession(ctx context.Context, in *ForkSessionRequest, opts ...grpc.CallOption) (*ForkSessionResponse, error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)@@ -262,9 +262,9 @@ func (c *gARServiceClient) UnregisterAgent(ctx context.Context, in *UnregisterAg//// GARService defines the gRPC service for GAR operationstype GARServiceServer interface {- // TriggerSession triggers a new agentic loop session or resumes an existing one with streaming responses+ // Exec executes a new agentic loop session or resumes an existing one with streaming responses// If the session_id already exists, it will be resumed from the last checkpoint- TriggerSession(*TriggerSessionRequest, grpc.ServerStreamingServer[TriggerSessionResponse]) error+ Exec(*ExecRequest, grpc.ServerStreamingServer[ExecResponse]) error// ForkSession forks a session from a specific checkpoint.ForkSession(context.Context, *ForkSessionRequest) (*ForkSessionResponse, error)// RegisterAgent registers a new agent with the controller@@ -281,17 +281,17 @@ type GARServiceServer interface {// pointer dereference when methods are called.type UnimplementedGARServiceServer struct{}-func (UnimplementedGARServiceServer) TriggerSession(*TriggerSessionRequest, grpc.ServerStreamingServer[TriggerSessionResponse]) error {- return status.Error(codes.Unimplemented, "method TriggerSession not implemented")+func (UnimplementedGARServiceServer) Exec(*ExecRequest, grpc.ServerStreamingServer[ExecResponse]) error {+ return status.Errorf(codes.Unimplemented, "method Exec not implemented")}func (UnimplementedGARServiceServer) ForkSession(context.Context, *ForkSessionRequest) (*ForkSessionResponse, error) {- return nil, status.Error(codes.Unimplemented, "method ForkSession not implemented")+ return nil, status.Errorf(codes.Unimplemented, "method ForkSession not implemented")}func (UnimplementedGARServiceServer) RegisterAgent(context.Context, *RegisterAgentRequest) (*RegisterAgentResponse, error) {- return nil, status.Error(codes.Unimplemented, "method RegisterAgent not implemented")+ return nil, status.Errorf(codes.Unimplemented, "method RegisterAgent not implemented")}func (UnimplementedGARServiceServer) UnregisterAgent(context.Context, *UnregisterAgentRequest) (*UnregisterAgentResponse, error) {- return nil, status.Error(codes.Unimplemented, "method UnregisterAgent not implemented")+ return nil, status.Errorf(codes.Unimplemented, "method UnregisterAgent not implemented")}func (UnimplementedGARServiceServer) mustEmbedUnimplementedGARServiceServer() {}func (UnimplementedGARServiceServer) testEmbeddedByValue() {}@@ -304,7 +304,7 @@ type UnsafeGARServiceServer interface {}func RegisterGARServiceServer(s grpc.ServiceRegistrar, srv GARServiceServer) {- // If the following call panics, it indicates UnimplementedGARServiceServer was+ // If the following call pancis, it indicates UnimplementedGARServiceServer was// embedded by pointer and is nil. This will cause panics if an// unimplemented method is ever invoked, so we test this at initialization// time to prevent it from happening at runtime later due to I/O.@@ -314,16 +314,16 @@ func RegisterGARServiceServer(s grpc.ServiceRegistrar, srv GARServiceServer) {s.RegisterService(&GARService_ServiceDesc, srv)}-func _GARService_TriggerSession_Handler(srv interface{}, stream grpc.ServerStream) error {- m := new(TriggerSessionRequest)+func _GARService_Exec_Handler(srv interface{}, stream grpc.ServerStream) error {+ m := new(ExecRequest)if err := stream.RecvMsg(m); err != nil {return err}- return srv.(GARServiceServer).TriggerSession(m, &grpc.GenericServerStream[TriggerSessionRequest, TriggerSessionResponse]{ServerStream: stream})+ return srv.(GARServiceServer).Exec(m, &grpc.GenericServerStream[ExecRequest, ExecResponse]{ServerStream: stream})}// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.-type GARService_TriggerSessionServer = grpc.ServerStreamingServer[TriggerSessionResponse]+type GARService_ExecServer = grpc.ServerStreamingServer[ExecResponse]func _GARService_ForkSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(ForkSessionRequest)@@ -401,8 +401,8 @@ var GARService_ServiceDesc = grpc.ServiceDesc{},Streams: []grpc.StreamDesc{{- StreamName: "TriggerSession",- Handler: _GARService_TriggerSession_Handler,+ StreamName: "Exec",+ Handler: _GARService_Exec_Handler,ServerStreams: true,},},diff --git a/test_multi.go b/test_multi.goindex c6c2dee..3f81a0e 100644--- a/test_multi.go+++ b/test_multi.go@@ -109,11 +109,11 @@ func main() {}for i := 0; i < 4; i++ {- log.Printf("\n--- Triggering step %d ---\n", i+1)- if err := c.TriggerSession(ctx, sessionID, "", req, handler); err != nil {- log.Fatalf("Error triggering session step %d: %v\n", i+1, err)+ log.Printf("\n--- Executing step %d ---\n", i+1)+ if err := c.Exec(ctx, sessionID, "", req, handler); err != nil {+ log.Fatalf("Error executing session step %d: %v\n", i+1, err)}- // Subsequent triggers just ask the planner to continue processing the existing history+ // Subsequent execs just ask the planner to continue processing the existing historyreq = &proto.ProcessRequest{}}}