Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Rename the proto package (#206)
Jaana Doganee9c62acdf9c
diff --git a/cmd/ax/exec.go b/cmd/ax/exec.goindex 1c09e83..ae59e1b 100644--- a/cmd/ax/exec.go+++ b/cmd/ax/exec.go@@ -256,7 +256,7 @@ func runExecServer(ctx context.Context, d *internal.Display, req *proto.ExecRequ}defer conn.Close()- client := proto.NewAXServiceClient(conn)+ client := proto.NewControllerServiceClient(conn)stream, err := client.Exec(ctx, req)if err != nil {return nil, fmt.Errorf("error executing: %w", err)diff --git a/cmd/ax/register.go b/cmd/ax/register.goindex f999242..f26cbcd 100644--- a/cmd/ax/register.go+++ b/cmd/ax/register.go@@ -56,7 +56,7 @@ func runRegister(cmd *cobra.Command, args []string) error {}defer conn.Close()- client := proto.NewAXServiceClient(conn)+ client := proto.NewControllerServiceClient(conn)// Register remote agent_, err = client.RegisterAgent(ctx, &proto.RegisterAgentRequest{diff --git a/examples/k8s_sandbox_agent/main.go b/examples/k8s_sandbox_agent/main.goindex 6032e05..7936e4a 100644--- a/examples/k8s_sandbox_agent/main.go+++ b/examples/k8s_sandbox_agent/main.go@@ -31,7 +31,7 @@ import ()type server struct {- proto.UnimplementedAXAgentServiceServer+ proto.UnimplementedAgentServiceServer}func (s *server) HealthCheck(ctx context.Context, req *proto.HealthCheckRequest) (*proto.HealthCheckResponse, error) {@@ -122,7 +122,7 @@ func main() {// 2. Create gRPC servers := grpc.NewServer()- proto.RegisterAXAgentServiceServer(s, &server{})+ proto.RegisterAgentServiceServer(s, &server{})reflection.Register(s)// 3. Graceful shutdown handlerdiff --git a/examples/remote_agent/main.go b/examples/remote_agent/main.goindex 6c2186f..7f1b199 100644--- a/examples/remote_agent/main.go+++ b/examples/remote_agent/main.go@@ -32,7 +32,7 @@ const port = ":50051"// server implements the AgentService gRPC server.type server struct {- proto.UnimplementedAXAgentServiceServer+ proto.UnimplementedAgentServiceServer}// Connect implements bidirectional streaming for agent processing.@@ -112,7 +112,7 @@ func main() {}grpcServer := grpc.NewServer()- proto.RegisterAXAgentServiceServer(grpcServer, &server{})+ proto.RegisterAgentServiceServer(grpcServer, &server{})fmt.Println("\nAgent server is running...")if err := grpcServer.Serve(lis); err != nil {diff --git a/internal/agent/remote.go b/internal/agent/remote.goindex 79b42df..e43530b 100644--- a/internal/agent/remote.go+++ b/internal/agent/remote.go@@ -73,7 +73,7 @@ func (a *RemoteAgent) Connect(ctx context.Context, execID string, start *proto.A}defer conn.Close()- client := proto.NewAXAgentServiceClient(conn)+ client := proto.NewAgentServiceClient(conn)stream, err := client.Connect(ctx)if err != nil {return fmt.Errorf("failed to create stream: %w", err)@@ -134,7 +134,7 @@ func (a *RemoteAgent) HealthCheck(ctx context.Context) error {}defer conn.Close()- client := proto.NewAXAgentServiceClient(conn)+ client := proto.NewAgentServiceClient(conn)resp, err := client.HealthCheck(ctx, &proto.HealthCheckRequest{})if err != nil {return fmt.Errorf("health check failed: %w", err)diff --git a/internal/controller/registry_test.go b/internal/controller/registry_test.goindex c970524..59fd78a 100644--- a/internal/controller/registry_test.go+++ b/internal/controller/registry_test.go@@ -29,7 +29,7 @@ import ()type mockAgentServer struct {- proto.UnimplementedAXAgentServiceServer+ proto.UnimplementedAgentServiceServerhealthy bool}@@ -43,7 +43,7 @@ func startMockGRPCServer(t *testing.T, healthy bool) (string, func()) {t.Fatalf("failed to listen: %v", err)}s := grpc.NewServer()- proto.RegisterAXAgentServiceServer(s, &mockAgentServer{healthy: healthy})+ proto.RegisterAgentServiceServer(s, &mockAgentServer{healthy: healthy})go func() {if err := s.Serve(lis); err != nil {// server might be closeddiff --git a/internal/server/server.go b/internal/server/server.goindex 5375acc..5cb4b68 100644--- a/internal/server/server.go+++ b/internal/server/server.go@@ -33,8 +33,8 @@ import (// Server implements the AXService gRPC service.type Server struct {- proto.UnimplementedAXServiceServer- proto.UnimplementedAXEventLogServiceServer+ proto.UnimplementedControllerServiceServer+ proto.UnimplementedEventLogServiceServercontroller *controller.ControllergrpcServer *grpc.Server@@ -122,8 +122,8 @@ func (s *Server) Serve(address string, opts ...grpc.ServerOption) error {}s.grpcServer = grpc.NewServer(opts...)- proto.RegisterAXServiceServer(s.grpcServer, s)- proto.RegisterAXEventLogServiceServer(s.grpcServer, s)+ proto.RegisterControllerServiceServer(s.grpcServer, s)+ proto.RegisterEventLogServiceServer(s.grpcServer, s)if err := s.grpcServer.Serve(lis); err != nil {return fmt.Errorf("failed to serve: %w", err)diff --git a/proto/ax.pb.go b/proto/ax.pb.goindex add990e..f9fd30c 100644--- a/proto/ax.pb.go+++ b/proto/ax.pb.go@@ -358,7 +358,7 @@ type ConversationEvent struct {Seq int32 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`ExecId string `protobuf:"bytes,3,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`Messages []*Message `protobuf:"bytes,4,rep,name=messages,proto3" json:"messages,omitempty"`- State State `protobuf:"varint,5,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"`+ State State `protobuf:"varint,5,opt,name=state,proto3,enum=ax.State" json:"state,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -438,7 +438,7 @@ type ExecutionEvent struct {AgentConfig *anypb.Any `protobuf:"bytes,3,opt,name=agent_config,json=agentConfig,proto3" json:"agent_config,omitempty"`Inputs []*Message `protobuf:"bytes,4,rep,name=inputs,proto3" json:"inputs,omitempty"`Outputs []*Message `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"`+ State State `protobuf:"varint,6,opt,name=state,proto3,enum=ax.State" json:"state,omitempty"`Timestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache@@ -1244,67 +1244,67 @@ var File_proto_ax_proto protoreflect.FileDescriptorconst file_proto_ax_proto_rawDesc = "" +"\n" +- "\x0eproto/ax.proto\x12\x05proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x13proto/content.proto\"\x81\x01\n" ++ "\x0eproto/ax.proto\x12\x02ax\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x13proto/content.proto\"~\n" +"\n" +"AgentStart\x12\x19\n" +"\bagent_id\x18\x01 \x01(\tR\aagentId\x12,\n" +- "\x06config\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x06config\x12*\n" +- "\bmessages\x18\x03 \x03(\v2\x0e.proto.MessageR\bmessages\"_\n" +- "\fAgentOutputs\x12*\n" +- "\bmessages\x18\x01 \x03(\v2\x0e.proto.MessageR\bmessages\x12#\n" +- "\rinternal_only\x18\x02 \x01(\bR\finternalOnly\"\x8a\x01\n" ++ "\x06config\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x06config\x12'\n" ++ "\bmessages\x18\x03 \x03(\v2\v.ax.MessageR\bmessages\"\\\n" ++ "\fAgentOutputs\x12'\n" ++ "\bmessages\x18\x01 \x03(\v2\v.ax.MessageR\bmessages\x12#\n" ++ "\rinternal_only\x18\x02 \x01(\bR\finternalOnly\"\x84\x01\n" +"\fAgentMessage\x12\x17\n" +- "\aexec_id\x18\x01 \x01(\tR\x06execId\x12)\n" +- "\x05start\x18\x02 \x01(\v2\x11.proto.AgentStartH\x00R\x05start\x12/\n" +- "\aoutputs\x18\x03 \x01(\v2\x13.proto.AgentOutputsH\x00R\aoutputsB\x05\n" +- "\x03msg\"G\n" ++ "\aexec_id\x18\x01 \x01(\tR\x06execId\x12&\n" ++ "\x05start\x18\x02 \x01(\v2\x0e.ax.AgentStartH\x00R\x05start\x12,\n" ++ "\aoutputs\x18\x03 \x01(\v2\x10.ax.AgentOutputsH\x00R\aoutputsB\x05\n" ++ "\x03msg\"D\n" +"\aMessage\x12\x12\n" +- "\x04role\x18\x01 \x01(\tR\x04role\x12(\n" +- "\acontent\x18\x02 \x01(\v2\x0e.proto.ContentR\acontent\"\xb7\x01\n" ++ "\x04role\x18\x01 \x01(\tR\x04role\x12%\n" ++ "\acontent\x18\x02 \x01(\v2\v.ax.ContentR\acontent\"\xb1\x01\n" +"\x11ConversationEvent\x12'\n" +"\x0fconversation_id\x18\x01 \x01(\tR\x0econversationId\x12\x10\n" +"\x03seq\x18\x02 \x01(\x05R\x03seq\x12\x17\n" +- "\aexec_id\x18\x03 \x01(\tR\x06execId\x12*\n" +- "\bmessages\x18\x04 \x03(\v2\x0e.proto.MessageR\bmessages\x12\"\n" +- "\x05state\x18\x05 \x01(\x0e2\f.proto.StateR\x05state\"\xad\x02\n" ++ "\aexec_id\x18\x03 \x01(\tR\x06execId\x12'\n" ++ "\bmessages\x18\x04 \x03(\v2\v.ax.MessageR\bmessages\x12\x1f\n" ++ "\x05state\x18\x05 \x01(\x0e2\t.ax.StateR\x05state\"\xa4\x02\n" +"\x0eExecutionEvent\x12\x17\n" +"\aexec_id\x18\x01 \x01(\tR\x06execId\x12\x19\n" +"\bagent_id\x18\x02 \x01(\tR\aagentId\x127\n" +- "\fagent_config\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\vagentConfig\x12&\n" +- "\x06inputs\x18\x04 \x03(\v2\x0e.proto.MessageR\x06inputs\x12(\n" +- "\aoutputs\x18\x05 \x03(\v2\x0e.proto.MessageR\aoutputs\x12\"\n" +- "\x05state\x18\x06 \x01(\x0e2\f.proto.StateR\x05state\x128\n" ++ "\fagent_config\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\vagentConfig\x12#\n" ++ "\x06inputs\x18\x04 \x03(\v2\v.ax.MessageR\x06inputs\x12%\n" ++ "\aoutputs\x18\x05 \x03(\v2\v.ax.MessageR\aoutputs\x12\x1f\n" ++ "\x05state\x18\x06 \x01(\x0e2\t.ax.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\"\xcd\x01\n" ++ "\amessage\x18\x02 \x01(\tR\amessage\"\xca\x01\n" +"\vExecRequest\x12'\n" +- "\x0fconversation_id\x18\x01 \x01(\tR\x0econversationId\x12&\n" +- "\x06inputs\x18\x02 \x03(\v2\x0e.proto.MessageR\x06inputs\x12\x19\n" ++ "\x0fconversation_id\x18\x01 \x01(\tR\x0econversationId\x12#\n" ++ "\x06inputs\x18\x02 \x03(\v2\v.ax.MessageR\x06inputs\x12\x19\n" +"\blast_seq\x18\x03 \x01(\x05R\alastSeq\x12\x19\n" +"\bagent_id\x18\x04 \x01(\tR\aagentId\x127\n" +- "\fagent_config\x18\x05 \x01(\v2\x14.google.protobuf.AnyR\vagentConfig\"J\n" +- "\fExecResponse\x12(\n" +- "\aoutputs\x18\x01 \x03(\v2\x0e.proto.MessageR\aoutputs\x12\x10\n" ++ "\fagent_config\x18\x05 \x01(\v2\x14.google.protobuf.AnyR\vagentConfig\"G\n" ++ "\fExecResponse\x12%\n" ++ "\aoutputs\x18\x01 \x03(\v2\v.ax.MessageR\aoutputs\x12\x10\n" +"\x03seq\x18\x02 \x01(\x05R\x03seq\"-\n" +"\x11RemoteAgentConfig\x12\x18\n" +- "\aaddress\x18\x01 \x01(\tR\aaddress\"\xa9\x02\n" ++ "\aaddress\x18\x01 \x01(\tR\aaddress\"\xa3\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" ++ "\vdescription\x18\x03 \x01(\tR\vdescription\x12B\n" ++ "\bmetadata\x18\x04 \x03(\v2&.ax.RegisterAgentRequest.MetadataEntryR\bmetadata\x12/\n" ++ "\x06remote\x18\x05 \x01(\v2\x15.ax.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\"6\n" +"\vListRequest\x12'\n" +- "\x0fconversation_id\x18\x01 \x01(\tR\x0econversationId\"@\n" +- "\fListResponse\x120\n" +- "\x06events\x18\x01 \x03(\v2\x18.proto.ConversationEventR\x06events\"8\n" ++ "\x0fconversation_id\x18\x01 \x01(\tR\x0econversationId\"=\n" ++ "\fListResponse\x12-\n" ++ "\x06events\x18\x01 \x03(\v2\x15.ax.ConversationEventR\x06events\"8\n" +"\rDeleteRequest\x12'\n" +"\x0fconversation_id\x18\x01 \x01(\tR\x0econversationId\"\x10\n" +"\x0eDeleteResponse\"\r\n" +@@ -1321,17 +1321,17 @@ const file_proto_ax_proto_rawDesc = "" +"\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\x8f\x01\n" +- "\x0eAXAgentService\x127\n" +- "\aConnect\x12\x13.proto.AgentMessage\x1a\x13.proto.AgentMessage(\x010\x01\x12D\n" +- "\vHealthCheck\x12\x19.proto.HealthCheckRequest\x1a\x1a.proto.HealthCheckResponse2\x8a\x01\n" +- "\tAXService\x121\n" +- "\x04Exec\x12\x12.proto.ExecRequest\x1a\x13.proto.ExecResponse0\x01\x12J\n" +- "\rRegisterAgent\x12\x1b.proto.RegisterAgentRequest\x1a\x1c.proto.RegisterAgentResponse2\xac\x01\n" +- "\x11AXEventLogService\x12/\n" +- "\x04List\x12\x12.proto.ListRequest\x1a\x13.proto.ListResponse\x125\n" +- "\x06Delete\x12\x14.proto.DeleteRequest\x1a\x15.proto.DeleteResponse\x12/\n" +- "\x04Fork\x12\x12.proto.ForkRequest\x1a\x13.proto.ForkResponseB\x1cZ\x1agithub.com/google/ax/protob\x06proto3"+ "\x0fSTATE_COMPLETED\x10\x032\x81\x01\n" ++ "\fAgentService\x121\n" ++ "\aConnect\x12\x10.ax.AgentMessage\x1a\x10.ax.AgentMessage(\x010\x01\x12>\n" ++ "\vHealthCheck\x12\x16.ax.HealthCheckRequest\x1a\x17.ax.HealthCheckResponse2\x86\x01\n" ++ "\x11ControllerService\x12+\n" ++ "\x04Exec\x12\x0f.ax.ExecRequest\x1a\x10.ax.ExecResponse0\x01\x12D\n" ++ "\rRegisterAgent\x12\x18.ax.RegisterAgentRequest\x1a\x19.ax.RegisterAgentResponse2\x98\x01\n" ++ "\x0fEventLogService\x12)\n" ++ "\x04List\x12\x0f.ax.ListRequest\x1a\x10.ax.ListResponse\x12/\n" ++ "\x06Delete\x12\x11.ax.DeleteRequest\x1a\x12.ax.DeleteResponse\x12)\n" ++ "\x04Fork\x12\x0f.ax.ForkRequest\x1a\x10.ax.ForkResponseB\x1cZ\x1agithub.com/google/ax/protob\x06proto3"var (file_proto_ax_proto_rawDescOnce sync.Once@@ -1348,68 +1348,68 @@ func file_proto_ax_proto_rawDescGZIP() []byte {var file_proto_ax_proto_enumTypes = make([]protoimpl.EnumInfo, 1)var file_proto_ax_proto_msgTypes = make([]protoimpl.MessageInfo, 21)var file_proto_ax_proto_goTypes = []any{- (State)(0), // 0: proto.State- (*AgentStart)(nil), // 1: proto.AgentStart- (*AgentOutputs)(nil), // 2: proto.AgentOutputs- (*AgentMessage)(nil), // 3: proto.AgentMessage- (*Message)(nil), // 4: proto.Message- (*ConversationEvent)(nil), // 5: proto.ConversationEvent- (*ExecutionEvent)(nil), // 6: proto.ExecutionEvent- (*HealthCheckRequest)(nil), // 7: proto.HealthCheckRequest- (*HealthCheckResponse)(nil), // 8: proto.HealthCheckResponse- (*ExecRequest)(nil), // 9: proto.ExecRequest- (*ExecResponse)(nil), // 10: proto.ExecResponse- (*RemoteAgentConfig)(nil), // 11: proto.RemoteAgentConfig- (*RegisterAgentRequest)(nil), // 12: proto.RegisterAgentRequest- (*RegisterAgentResponse)(nil), // 13: proto.RegisterAgentResponse- (*ListRequest)(nil), // 14: proto.ListRequest- (*ListResponse)(nil), // 15: proto.ListResponse- (*DeleteRequest)(nil), // 16: proto.DeleteRequest- (*DeleteResponse)(nil), // 17: proto.DeleteResponse- (*ForkRequest)(nil), // 18: proto.ForkRequest- (*ForkResponse)(nil), // 19: proto.ForkResponse- (*GeminiConfig)(nil), // 20: proto.GeminiConfig- nil, // 21: proto.RegisterAgentRequest.MetadataEntry+ (State)(0), // 0: ax.State+ (*AgentStart)(nil), // 1: ax.AgentStart+ (*AgentOutputs)(nil), // 2: ax.AgentOutputs+ (*AgentMessage)(nil), // 3: ax.AgentMessage+ (*Message)(nil), // 4: ax.Message+ (*ConversationEvent)(nil), // 5: ax.ConversationEvent+ (*ExecutionEvent)(nil), // 6: ax.ExecutionEvent+ (*HealthCheckRequest)(nil), // 7: ax.HealthCheckRequest+ (*HealthCheckResponse)(nil), // 8: ax.HealthCheckResponse+ (*ExecRequest)(nil), // 9: ax.ExecRequest+ (*ExecResponse)(nil), // 10: ax.ExecResponse+ (*RemoteAgentConfig)(nil), // 11: ax.RemoteAgentConfig+ (*RegisterAgentRequest)(nil), // 12: ax.RegisterAgentRequest+ (*RegisterAgentResponse)(nil), // 13: ax.RegisterAgentResponse+ (*ListRequest)(nil), // 14: ax.ListRequest+ (*ListResponse)(nil), // 15: ax.ListResponse+ (*DeleteRequest)(nil), // 16: ax.DeleteRequest+ (*DeleteResponse)(nil), // 17: ax.DeleteResponse+ (*ForkRequest)(nil), // 18: ax.ForkRequest+ (*ForkResponse)(nil), // 19: ax.ForkResponse+ (*GeminiConfig)(nil), // 20: ax.GeminiConfig+ nil, // 21: ax.RegisterAgentRequest.MetadataEntry(*anypb.Any)(nil), // 22: google.protobuf.Any- (*Content)(nil), // 23: proto.Content+ (*Content)(nil), // 23: ax.Content(*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp(*durationpb.Duration)(nil), // 25: google.protobuf.Duration}var file_proto_ax_proto_depIdxs = []int32{- 22, // 0: proto.AgentStart.config:type_name -> google.protobuf.Any- 4, // 1: proto.AgentStart.messages:type_name -> proto.Message- 4, // 2: proto.AgentOutputs.messages:type_name -> proto.Message- 1, // 3: proto.AgentMessage.start:type_name -> proto.AgentStart- 2, // 4: proto.AgentMessage.outputs:type_name -> proto.AgentOutputs- 23, // 5: proto.Message.content:type_name -> proto.Content- 4, // 6: proto.ConversationEvent.messages:type_name -> proto.Message- 0, // 7: proto.ConversationEvent.state:type_name -> proto.State- 22, // 8: proto.ExecutionEvent.agent_config:type_name -> google.protobuf.Any- 4, // 9: proto.ExecutionEvent.inputs:type_name -> proto.Message- 4, // 10: proto.ExecutionEvent.outputs:type_name -> proto.Message- 0, // 11: proto.ExecutionEvent.state:type_name -> proto.State- 24, // 12: proto.ExecutionEvent.timestamp:type_name -> google.protobuf.Timestamp- 4, // 13: proto.ExecRequest.inputs:type_name -> proto.Message- 22, // 14: proto.ExecRequest.agent_config:type_name -> google.protobuf.Any- 4, // 15: proto.ExecResponse.outputs:type_name -> proto.Message- 21, // 16: proto.RegisterAgentRequest.metadata:type_name -> proto.RegisterAgentRequest.MetadataEntry- 11, // 17: proto.RegisterAgentRequest.remote:type_name -> proto.RemoteAgentConfig- 5, // 18: proto.ListResponse.events:type_name -> proto.ConversationEvent- 25, // 19: proto.GeminiConfig.timeout:type_name -> google.protobuf.Duration- 3, // 20: proto.AXAgentService.Connect:input_type -> proto.AgentMessage- 7, // 21: proto.AXAgentService.HealthCheck:input_type -> proto.HealthCheckRequest- 9, // 22: proto.AXService.Exec:input_type -> proto.ExecRequest- 12, // 23: proto.AXService.RegisterAgent:input_type -> proto.RegisterAgentRequest- 14, // 24: proto.AXEventLogService.List:input_type -> proto.ListRequest- 16, // 25: proto.AXEventLogService.Delete:input_type -> proto.DeleteRequest- 18, // 26: proto.AXEventLogService.Fork:input_type -> proto.ForkRequest- 3, // 27: proto.AXAgentService.Connect:output_type -> proto.AgentMessage- 8, // 28: proto.AXAgentService.HealthCheck:output_type -> proto.HealthCheckResponse- 10, // 29: proto.AXService.Exec:output_type -> proto.ExecResponse- 13, // 30: proto.AXService.RegisterAgent:output_type -> proto.RegisterAgentResponse- 15, // 31: proto.AXEventLogService.List:output_type -> proto.ListResponse- 17, // 32: proto.AXEventLogService.Delete:output_type -> proto.DeleteResponse- 19, // 33: proto.AXEventLogService.Fork:output_type -> proto.ForkResponse+ 22, // 0: ax.AgentStart.config:type_name -> google.protobuf.Any+ 4, // 1: ax.AgentStart.messages:type_name -> ax.Message+ 4, // 2: ax.AgentOutputs.messages:type_name -> ax.Message+ 1, // 3: ax.AgentMessage.start:type_name -> ax.AgentStart+ 2, // 4: ax.AgentMessage.outputs:type_name -> ax.AgentOutputs+ 23, // 5: ax.Message.content:type_name -> ax.Content+ 4, // 6: ax.ConversationEvent.messages:type_name -> ax.Message+ 0, // 7: ax.ConversationEvent.state:type_name -> ax.State+ 22, // 8: ax.ExecutionEvent.agent_config:type_name -> google.protobuf.Any+ 4, // 9: ax.ExecutionEvent.inputs:type_name -> ax.Message+ 4, // 10: ax.ExecutionEvent.outputs:type_name -> ax.Message+ 0, // 11: ax.ExecutionEvent.state:type_name -> ax.State+ 24, // 12: ax.ExecutionEvent.timestamp:type_name -> google.protobuf.Timestamp+ 4, // 13: ax.ExecRequest.inputs:type_name -> ax.Message+ 22, // 14: ax.ExecRequest.agent_config:type_name -> google.protobuf.Any+ 4, // 15: ax.ExecResponse.outputs:type_name -> ax.Message+ 21, // 16: ax.RegisterAgentRequest.metadata:type_name -> ax.RegisterAgentRequest.MetadataEntry+ 11, // 17: ax.RegisterAgentRequest.remote:type_name -> ax.RemoteAgentConfig+ 5, // 18: ax.ListResponse.events:type_name -> ax.ConversationEvent+ 25, // 19: ax.GeminiConfig.timeout:type_name -> google.protobuf.Duration+ 3, // 20: ax.AgentService.Connect:input_type -> ax.AgentMessage+ 7, // 21: ax.AgentService.HealthCheck:input_type -> ax.HealthCheckRequest+ 9, // 22: ax.ControllerService.Exec:input_type -> ax.ExecRequest+ 12, // 23: ax.ControllerService.RegisterAgent:input_type -> ax.RegisterAgentRequest+ 14, // 24: ax.EventLogService.List:input_type -> ax.ListRequest+ 16, // 25: ax.EventLogService.Delete:input_type -> ax.DeleteRequest+ 18, // 26: ax.EventLogService.Fork:input_type -> ax.ForkRequest+ 3, // 27: ax.AgentService.Connect:output_type -> ax.AgentMessage+ 8, // 28: ax.AgentService.HealthCheck:output_type -> ax.HealthCheckResponse+ 10, // 29: ax.ControllerService.Exec:output_type -> ax.ExecResponse+ 13, // 30: ax.ControllerService.RegisterAgent:output_type -> ax.RegisterAgentResponse+ 15, // 31: ax.EventLogService.List:output_type -> ax.ListResponse+ 17, // 32: ax.EventLogService.Delete:output_type -> ax.DeleteResponse+ 19, // 33: ax.EventLogService.Fork:output_type -> ax.ForkResponse27, // [27:34] is the sub-list for method output_type20, // [20:27] is the sub-list for method input_type20, // [20:20] is the sub-list for extension type_namediff --git a/proto/ax.proto b/proto/ax.protoindex a274d17..c40eb10 100644--- a/proto/ax.proto+++ b/proto/ax.proto@@ -14,7 +14,7 @@syntax = "proto3";-package proto;+package ax;import "google/protobuf/timestamp.proto";import "google/protobuf/any.proto";@@ -90,8 +90,8 @@ message HealthCheckResponse {string message = 2;}-// AXAgentService defines the gRPC service for agent communication-service AXAgentService {+// AgentService defines the gRPC service for agent communication+service AgentService {// Connect is used by agents to connect to the controller.rpc Connect(stream AgentMessage) returns (stream AgentMessage);@@ -141,8 +141,7 @@ message RegisterAgentRequest {// RegisterAgentResponse contains registration resultmessage RegisterAgentResponse {}-// AXService defines the gRPC service for AX operations-service AXService {+service ControllerService {// Exec executes an agentic task or resumes an existing one with streaming responses// If the conversation_id already exists, it will be resumed.rpc Exec(ExecRequest) returns (stream ExecResponse);@@ -170,7 +169,7 @@ message ForkRequest {}message ForkResponse {}-service AXEventLogService {+service EventLogService {// List conversational events.rpc List(ListRequest) returns (ListResponse);diff --git a/proto/ax_grpc.pb.go b/proto/ax_grpc.pb.goindex c018cdf..0ffa560 100644--- a/proto/ax_grpc.pb.go+++ b/proto/ax_grpc.pb.go@@ -33,33 +33,33 @@ import (const _ = grpc.SupportPackageIsVersion9const (- AXAgentService_Connect_FullMethodName = "/proto.AXAgentService/Connect"- AXAgentService_HealthCheck_FullMethodName = "/proto.AXAgentService/HealthCheck"+ AgentService_Connect_FullMethodName = "/ax.AgentService/Connect"+ AgentService_HealthCheck_FullMethodName = "/ax.AgentService/HealthCheck")-// AXAgentServiceClient is the client API for AXAgentService service.+// AgentServiceClient is the client API for AgentService service.//// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.//-// AXAgentService defines the gRPC service for agent communication-type AXAgentServiceClient interface {+// AgentService defines the gRPC service for agent communication+type AgentServiceClient interface {// Connect is used by agents to connect to the controller.Connect(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[AgentMessage, AgentMessage], error)// HealthCheck checks if the agent is healthy and responsiveHealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)}-type aXAgentServiceClient struct {+type agentServiceClient struct {cc grpc.ClientConnInterface}-func NewAXAgentServiceClient(cc grpc.ClientConnInterface) AXAgentServiceClient {- return &aXAgentServiceClient{cc}+func NewAgentServiceClient(cc grpc.ClientConnInterface) AgentServiceClient {+ return &agentServiceClient{cc}}-func (c *aXAgentServiceClient) Connect(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[AgentMessage, AgentMessage], error) {+func (c *agentServiceClient) Connect(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[AgentMessage, AgentMessage], error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)- stream, err := c.cc.NewStream(ctx, &AXAgentService_ServiceDesc.Streams[0], AXAgentService_Connect_FullMethodName, cOpts...)+ stream, err := c.cc.NewStream(ctx, &AgentService_ServiceDesc.Streams[0], AgentService_Connect_FullMethodName, cOpts...)if err != nil {return nil, err}@@ -68,106 +68,106 @@ func (c *aXAgentServiceClient) Connect(ctx context.Context, opts ...grpc.CallOpt}// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.-type AXAgentService_ConnectClient = grpc.BidiStreamingClient[AgentMessage, AgentMessage]+type AgentService_ConnectClient = grpc.BidiStreamingClient[AgentMessage, AgentMessage]-func (c *aXAgentServiceClient) HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) {+func (c *agentServiceClient) HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)out := new(HealthCheckResponse)- err := c.cc.Invoke(ctx, AXAgentService_HealthCheck_FullMethodName, in, out, cOpts...)+ err := c.cc.Invoke(ctx, AgentService_HealthCheck_FullMethodName, in, out, cOpts...)if err != nil {return nil, err}return out, nil}-// AXAgentServiceServer is the server API for AXAgentService service.-// All implementations must embed UnimplementedAXAgentServiceServer+// AgentServiceServer is the server API for AgentService service.+// All implementations must embed UnimplementedAgentServiceServer// for forward compatibility.//-// AXAgentService defines the gRPC service for agent communication-type AXAgentServiceServer interface {+// AgentService defines the gRPC service for agent communication+type AgentServiceServer interface {// Connect is used by agents to connect to the controller.Connect(grpc.BidiStreamingServer[AgentMessage, AgentMessage]) error// HealthCheck checks if the agent is healthy and responsiveHealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)- mustEmbedUnimplementedAXAgentServiceServer()+ mustEmbedUnimplementedAgentServiceServer()}-// UnimplementedAXAgentServiceServer must be embedded to have+// UnimplementedAgentServiceServer must be embedded to have// forward compatible implementations.//// NOTE: this should be embedded by value instead of pointer to avoid a nil// pointer dereference when methods are called.-type UnimplementedAXAgentServiceServer struct{}+type UnimplementedAgentServiceServer struct{}-func (UnimplementedAXAgentServiceServer) Connect(grpc.BidiStreamingServer[AgentMessage, AgentMessage]) error {+func (UnimplementedAgentServiceServer) Connect(grpc.BidiStreamingServer[AgentMessage, AgentMessage]) error {return status.Errorf(codes.Unimplemented, "method Connect not implemented")}-func (UnimplementedAXAgentServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) {+func (UnimplementedAgentServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented")}-func (UnimplementedAXAgentServiceServer) mustEmbedUnimplementedAXAgentServiceServer() {}-func (UnimplementedAXAgentServiceServer) testEmbeddedByValue() {}+func (UnimplementedAgentServiceServer) mustEmbedUnimplementedAgentServiceServer() {}+func (UnimplementedAgentServiceServer) testEmbeddedByValue() {}-// UnsafeAXAgentServiceServer may be embedded to opt out of forward compatibility for this service.-// Use of this interface is not recommended, as added methods to AXAgentServiceServer will+// UnsafeAgentServiceServer may be embedded to opt out of forward compatibility for this service.+// Use of this interface is not recommended, as added methods to AgentServiceServer will// result in compilation errors.-type UnsafeAXAgentServiceServer interface {- mustEmbedUnimplementedAXAgentServiceServer()+type UnsafeAgentServiceServer interface {+ mustEmbedUnimplementedAgentServiceServer()}-func RegisterAXAgentServiceServer(s grpc.ServiceRegistrar, srv AXAgentServiceServer) {- // If the following call pancis, it indicates UnimplementedAXAgentServiceServer was+func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer) {+ // 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.if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {t.testEmbeddedByValue()}- s.RegisterService(&AXAgentService_ServiceDesc, srv)+ s.RegisterService(&AgentService_ServiceDesc, srv)}-func _AXAgentService_Connect_Handler(srv interface{}, stream grpc.ServerStream) error {- return srv.(AXAgentServiceServer).Connect(&grpc.GenericServerStream[AgentMessage, AgentMessage]{ServerStream: stream})+func _AgentService_Connect_Handler(srv interface{}, stream grpc.ServerStream) error {+ return srv.(AgentServiceServer).Connect(&grpc.GenericServerStream[AgentMessage, AgentMessage]{ServerStream: stream})}// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.-type AXAgentService_ConnectServer = grpc.BidiStreamingServer[AgentMessage, AgentMessage]+type AgentService_ConnectServer = grpc.BidiStreamingServer[AgentMessage, AgentMessage]-func _AXAgentService_HealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+func _AgentService_HealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(HealthCheckRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(AXAgentServiceServer).HealthCheck(ctx, in)+ return srv.(AgentServiceServer).HealthCheck(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: AXAgentService_HealthCheck_FullMethodName,+ FullMethod: AgentService_HealthCheck_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(AXAgentServiceServer).HealthCheck(ctx, req.(*HealthCheckRequest))+ return srv.(AgentServiceServer).HealthCheck(ctx, req.(*HealthCheckRequest))}return interceptor(ctx, in, info, handler)}-// AXAgentService_ServiceDesc is the grpc.ServiceDesc for AXAgentService service.+// AgentService_ServiceDesc is the grpc.ServiceDesc for AgentService service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)-var AXAgentService_ServiceDesc = grpc.ServiceDesc{- ServiceName: "proto.AXAgentService",- HandlerType: (*AXAgentServiceServer)(nil),+var AgentService_ServiceDesc = grpc.ServiceDesc{+ ServiceName: "ax.AgentService",+ HandlerType: (*AgentServiceServer)(nil),Methods: []grpc.MethodDesc{{MethodName: "HealthCheck",- Handler: _AXAgentService_HealthCheck_Handler,+ Handler: _AgentService_HealthCheck_Handler,},},Streams: []grpc.StreamDesc{{StreamName: "Connect",- Handler: _AXAgentService_Connect_Handler,+ Handler: _AgentService_Connect_Handler,ServerStreams: true,ClientStreams: true,},@@ -176,16 +176,14 @@ var AXAgentService_ServiceDesc = grpc.ServiceDesc{}const (- AXService_Exec_FullMethodName = "/proto.AXService/Exec"- AXService_RegisterAgent_FullMethodName = "/proto.AXService/RegisterAgent"+ ControllerService_Exec_FullMethodName = "/ax.ControllerService/Exec"+ ControllerService_RegisterAgent_FullMethodName = "/ax.ControllerService/RegisterAgent")-// AXServiceClient is the client API for AXService service.+// ControllerServiceClient is the client API for ControllerService service.//// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.-//-// AXService defines the gRPC service for AX operations-type AXServiceClient interface {+type ControllerServiceClient interface {// Exec executes an agentic task or resumes an existing one with streaming responses// If the conversation_id already exists, it will be resumed.Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecResponse], error)@@ -193,17 +191,17 @@ type AXServiceClient interface {RegisterAgent(ctx context.Context, in *RegisterAgentRequest, opts ...grpc.CallOption) (*RegisterAgentResponse, error)}-type aXServiceClient struct {+type controllerServiceClient struct {cc grpc.ClientConnInterface}-func NewAXServiceClient(cc grpc.ClientConnInterface) AXServiceClient {- return &aXServiceClient{cc}+func NewControllerServiceClient(cc grpc.ClientConnInterface) ControllerServiceClient {+ return &controllerServiceClient{cc}}-func (c *aXServiceClient) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecResponse], error) {+func (c *controllerServiceClient) 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, &AXService_ServiceDesc.Streams[0], AXService_Exec_FullMethodName, cOpts...)+ stream, err := c.cc.NewStream(ctx, &ControllerService_ServiceDesc.Streams[0], ControllerService_Exec_FullMethodName, cOpts...)if err != nil {return nil, err}@@ -218,111 +216,109 @@ func (c *aXServiceClient) Exec(ctx context.Context, in *ExecRequest, opts ...grp}// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.-type AXService_ExecClient = grpc.ServerStreamingClient[ExecResponse]+type ControllerService_ExecClient = grpc.ServerStreamingClient[ExecResponse]-func (c *aXServiceClient) RegisterAgent(ctx context.Context, in *RegisterAgentRequest, opts ...grpc.CallOption) (*RegisterAgentResponse, error) {+func (c *controllerServiceClient) RegisterAgent(ctx context.Context, in *RegisterAgentRequest, opts ...grpc.CallOption) (*RegisterAgentResponse, error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)out := new(RegisterAgentResponse)- err := c.cc.Invoke(ctx, AXService_RegisterAgent_FullMethodName, in, out, cOpts...)+ err := c.cc.Invoke(ctx, ControllerService_RegisterAgent_FullMethodName, in, out, cOpts...)if err != nil {return nil, err}return out, nil}-// AXServiceServer is the server API for AXService service.-// All implementations must embed UnimplementedAXServiceServer+// ControllerServiceServer is the server API for ControllerService service.+// All implementations must embed UnimplementedControllerServiceServer// for forward compatibility.-//-// AXService defines the gRPC service for AX operations-type AXServiceServer interface {+type ControllerServiceServer interface {// Exec executes an agentic task or resumes an existing one with streaming responses// If the conversation_id already exists, it will be resumed.Exec(*ExecRequest, grpc.ServerStreamingServer[ExecResponse]) error// RegisterAgent registers a new agent with the controllerRegisterAgent(context.Context, *RegisterAgentRequest) (*RegisterAgentResponse, error)- mustEmbedUnimplementedAXServiceServer()+ mustEmbedUnimplementedControllerServiceServer()}-// UnimplementedAXServiceServer must be embedded to have+// UnimplementedControllerServiceServer must be embedded to have// forward compatible implementations.//// NOTE: this should be embedded by value instead of pointer to avoid a nil// pointer dereference when methods are called.-type UnimplementedAXServiceServer struct{}+type UnimplementedControllerServiceServer struct{}-func (UnimplementedAXServiceServer) Exec(*ExecRequest, grpc.ServerStreamingServer[ExecResponse]) error {+func (UnimplementedControllerServiceServer) Exec(*ExecRequest, grpc.ServerStreamingServer[ExecResponse]) error {return status.Errorf(codes.Unimplemented, "method Exec not implemented")}-func (UnimplementedAXServiceServer) RegisterAgent(context.Context, *RegisterAgentRequest) (*RegisterAgentResponse, error) {+func (UnimplementedControllerServiceServer) RegisterAgent(context.Context, *RegisterAgentRequest) (*RegisterAgentResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method RegisterAgent not implemented")}-func (UnimplementedAXServiceServer) mustEmbedUnimplementedAXServiceServer() {}-func (UnimplementedAXServiceServer) testEmbeddedByValue() {}+func (UnimplementedControllerServiceServer) mustEmbedUnimplementedControllerServiceServer() {}+func (UnimplementedControllerServiceServer) testEmbeddedByValue() {}-// UnsafeAXServiceServer may be embedded to opt out of forward compatibility for this service.-// Use of this interface is not recommended, as added methods to AXServiceServer will+// UnsafeControllerServiceServer may be embedded to opt out of forward compatibility for this service.+// Use of this interface is not recommended, as added methods to ControllerServiceServer will// result in compilation errors.-type UnsafeAXServiceServer interface {- mustEmbedUnimplementedAXServiceServer()+type UnsafeControllerServiceServer interface {+ mustEmbedUnimplementedControllerServiceServer()}-func RegisterAXServiceServer(s grpc.ServiceRegistrar, srv AXServiceServer) {- // If the following call pancis, it indicates UnimplementedAXServiceServer was+func RegisterControllerServiceServer(s grpc.ServiceRegistrar, srv ControllerServiceServer) {+ // If the following call pancis, it indicates UnimplementedControllerServiceServer 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.if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {t.testEmbeddedByValue()}- s.RegisterService(&AXService_ServiceDesc, srv)+ s.RegisterService(&ControllerService_ServiceDesc, srv)}-func _AXService_Exec_Handler(srv interface{}, stream grpc.ServerStream) error {+func _ControllerService_Exec_Handler(srv interface{}, stream grpc.ServerStream) error {m := new(ExecRequest)if err := stream.RecvMsg(m); err != nil {return err}- return srv.(AXServiceServer).Exec(m, &grpc.GenericServerStream[ExecRequest, ExecResponse]{ServerStream: stream})+ return srv.(ControllerServiceServer).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 AXService_ExecServer = grpc.ServerStreamingServer[ExecResponse]+type ControllerService_ExecServer = grpc.ServerStreamingServer[ExecResponse]-func _AXService_RegisterAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+func _ControllerService_RegisterAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(RegisterAgentRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(AXServiceServer).RegisterAgent(ctx, in)+ return srv.(ControllerServiceServer).RegisterAgent(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: AXService_RegisterAgent_FullMethodName,+ FullMethod: ControllerService_RegisterAgent_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(AXServiceServer).RegisterAgent(ctx, req.(*RegisterAgentRequest))+ return srv.(ControllerServiceServer).RegisterAgent(ctx, req.(*RegisterAgentRequest))}return interceptor(ctx, in, info, handler)}-// AXService_ServiceDesc is the grpc.ServiceDesc for AXService service.+// ControllerService_ServiceDesc is the grpc.ServiceDesc for ControllerService service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)-var AXService_ServiceDesc = grpc.ServiceDesc{- ServiceName: "proto.AXService",- HandlerType: (*AXServiceServer)(nil),+var ControllerService_ServiceDesc = grpc.ServiceDesc{+ ServiceName: "ax.ControllerService",+ HandlerType: (*ControllerServiceServer)(nil),Methods: []grpc.MethodDesc{{MethodName: "RegisterAgent",- Handler: _AXService_RegisterAgent_Handler,+ Handler: _ControllerService_RegisterAgent_Handler,},},Streams: []grpc.StreamDesc{{StreamName: "Exec",- Handler: _AXService_Exec_Handler,+ Handler: _ControllerService_Exec_Handler,ServerStreams: true,},},@@ -330,15 +326,15 @@ var AXService_ServiceDesc = grpc.ServiceDesc{}const (- AXEventLogService_List_FullMethodName = "/proto.AXEventLogService/List"- AXEventLogService_Delete_FullMethodName = "/proto.AXEventLogService/Delete"- AXEventLogService_Fork_FullMethodName = "/proto.AXEventLogService/Fork"+ EventLogService_List_FullMethodName = "/ax.EventLogService/List"+ EventLogService_Delete_FullMethodName = "/ax.EventLogService/Delete"+ EventLogService_Fork_FullMethodName = "/ax.EventLogService/Fork")-// AXEventLogServiceClient is the client API for AXEventLogService service.+// EventLogServiceClient is the client API for EventLogService service.//// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.-type AXEventLogServiceClient interface {+type EventLogServiceClient interface {// List conversational events.List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)// Deletes conversational events and all event log resources@@ -348,48 +344,48 @@ type AXEventLogServiceClient interface {Fork(ctx context.Context, in *ForkRequest, opts ...grpc.CallOption) (*ForkResponse, error)}-type aXEventLogServiceClient struct {+type eventLogServiceClient struct {cc grpc.ClientConnInterface}-func NewAXEventLogServiceClient(cc grpc.ClientConnInterface) AXEventLogServiceClient {- return &aXEventLogServiceClient{cc}+func NewEventLogServiceClient(cc grpc.ClientConnInterface) EventLogServiceClient {+ return &eventLogServiceClient{cc}}-func (c *aXEventLogServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {+func (c *eventLogServiceClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)out := new(ListResponse)- err := c.cc.Invoke(ctx, AXEventLogService_List_FullMethodName, in, out, cOpts...)+ err := c.cc.Invoke(ctx, EventLogService_List_FullMethodName, in, out, cOpts...)if err != nil {return nil, err}return out, nil}-func (c *aXEventLogServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {+func (c *eventLogServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)out := new(DeleteResponse)- err := c.cc.Invoke(ctx, AXEventLogService_Delete_FullMethodName, in, out, cOpts...)+ err := c.cc.Invoke(ctx, EventLogService_Delete_FullMethodName, in, out, cOpts...)if err != nil {return nil, err}return out, nil}-func (c *aXEventLogServiceClient) Fork(ctx context.Context, in *ForkRequest, opts ...grpc.CallOption) (*ForkResponse, error) {+func (c *eventLogServiceClient) Fork(ctx context.Context, in *ForkRequest, opts ...grpc.CallOption) (*ForkResponse, error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)out := new(ForkResponse)- err := c.cc.Invoke(ctx, AXEventLogService_Fork_FullMethodName, in, out, cOpts...)+ err := c.cc.Invoke(ctx, EventLogService_Fork_FullMethodName, in, out, cOpts...)if err != nil {return nil, err}return out, nil}-// AXEventLogServiceServer is the server API for AXEventLogService service.-// All implementations must embed UnimplementedAXEventLogServiceServer+// EventLogServiceServer is the server API for EventLogService service.+// All implementations must embed UnimplementedEventLogServiceServer// for forward compatibility.-type AXEventLogServiceServer interface {+type EventLogServiceServer interface {// List conversational events.List(context.Context, *ListRequest) (*ListResponse, error)// Deletes conversational events and all event log resources@@ -397,118 +393,118 @@ type AXEventLogServiceServer interface {Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)// Fork forks an event log from a specific conversation.Fork(context.Context, *ForkRequest) (*ForkResponse, error)- mustEmbedUnimplementedAXEventLogServiceServer()+ mustEmbedUnimplementedEventLogServiceServer()}-// UnimplementedAXEventLogServiceServer must be embedded to have+// UnimplementedEventLogServiceServer must be embedded to have// forward compatible implementations.//// NOTE: this should be embedded by value instead of pointer to avoid a nil// pointer dereference when methods are called.-type UnimplementedAXEventLogServiceServer struct{}+type UnimplementedEventLogServiceServer struct{}-func (UnimplementedAXEventLogServiceServer) List(context.Context, *ListRequest) (*ListResponse, error) {+func (UnimplementedEventLogServiceServer) List(context.Context, *ListRequest) (*ListResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method List not implemented")}-func (UnimplementedAXEventLogServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) {+func (UnimplementedEventLogServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")}-func (UnimplementedAXEventLogServiceServer) Fork(context.Context, *ForkRequest) (*ForkResponse, error) {+func (UnimplementedEventLogServiceServer) Fork(context.Context, *ForkRequest) (*ForkResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method Fork not implemented")}-func (UnimplementedAXEventLogServiceServer) mustEmbedUnimplementedAXEventLogServiceServer() {}-func (UnimplementedAXEventLogServiceServer) testEmbeddedByValue() {}+func (UnimplementedEventLogServiceServer) mustEmbedUnimplementedEventLogServiceServer() {}+func (UnimplementedEventLogServiceServer) testEmbeddedByValue() {}-// UnsafeAXEventLogServiceServer may be embedded to opt out of forward compatibility for this service.-// Use of this interface is not recommended, as added methods to AXEventLogServiceServer will+// UnsafeEventLogServiceServer may be embedded to opt out of forward compatibility for this service.+// Use of this interface is not recommended, as added methods to EventLogServiceServer will// result in compilation errors.-type UnsafeAXEventLogServiceServer interface {- mustEmbedUnimplementedAXEventLogServiceServer()+type UnsafeEventLogServiceServer interface {+ mustEmbedUnimplementedEventLogServiceServer()}-func RegisterAXEventLogServiceServer(s grpc.ServiceRegistrar, srv AXEventLogServiceServer) {- // If the following call pancis, it indicates UnimplementedAXEventLogServiceServer was+func RegisterEventLogServiceServer(s grpc.ServiceRegistrar, srv EventLogServiceServer) {+ // If the following call pancis, it indicates UnimplementedEventLogServiceServer 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.if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {t.testEmbeddedByValue()}- s.RegisterService(&AXEventLogService_ServiceDesc, srv)+ s.RegisterService(&EventLogService_ServiceDesc, srv)}-func _AXEventLogService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+func _EventLogService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(ListRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(AXEventLogServiceServer).List(ctx, in)+ return srv.(EventLogServiceServer).List(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: AXEventLogService_List_FullMethodName,+ FullMethod: EventLogService_List_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(AXEventLogServiceServer).List(ctx, req.(*ListRequest))+ return srv.(EventLogServiceServer).List(ctx, req.(*ListRequest))}return interceptor(ctx, in, info, handler)}-func _AXEventLogService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+func _EventLogService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(DeleteRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(AXEventLogServiceServer).Delete(ctx, in)+ return srv.(EventLogServiceServer).Delete(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: AXEventLogService_Delete_FullMethodName,+ FullMethod: EventLogService_Delete_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(AXEventLogServiceServer).Delete(ctx, req.(*DeleteRequest))+ return srv.(EventLogServiceServer).Delete(ctx, req.(*DeleteRequest))}return interceptor(ctx, in, info, handler)}-func _AXEventLogService_Fork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+func _EventLogService_Fork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(ForkRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(AXEventLogServiceServer).Fork(ctx, in)+ return srv.(EventLogServiceServer).Fork(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: AXEventLogService_Fork_FullMethodName,+ FullMethod: EventLogService_Fork_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(AXEventLogServiceServer).Fork(ctx, req.(*ForkRequest))+ return srv.(EventLogServiceServer).Fork(ctx, req.(*ForkRequest))}return interceptor(ctx, in, info, handler)}-// AXEventLogService_ServiceDesc is the grpc.ServiceDesc for AXEventLogService service.+// EventLogService_ServiceDesc is the grpc.ServiceDesc for EventLogService service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)-var AXEventLogService_ServiceDesc = grpc.ServiceDesc{- ServiceName: "proto.AXEventLogService",- HandlerType: (*AXEventLogServiceServer)(nil),+var EventLogService_ServiceDesc = grpc.ServiceDesc{+ ServiceName: "ax.EventLogService",+ HandlerType: (*EventLogServiceServer)(nil),Methods: []grpc.MethodDesc{{MethodName: "List",- Handler: _AXEventLogService_List_Handler,+ Handler: _EventLogService_List_Handler,},{MethodName: "Delete",- Handler: _AXEventLogService_Delete_Handler,+ Handler: _EventLogService_Delete_Handler,},{MethodName: "Fork",- Handler: _AXEventLogService_Fork_Handler,+ Handler: _EventLogService_Fork_Handler,},},Streams: []grpc.StreamDesc{},diff --git a/proto/content.pb.go b/proto/content.pb.goindex 386adcb..fe7679c 100644--- a/proto/content.pb.go+++ b/proto/content.pb.go@@ -676,29 +676,29 @@ var File_proto_content_proto protoreflect.FileDescriptorconst file_proto_content_proto_rawDesc = "" +"\n" +- "\x13proto/content.proto\x12\x05proto\x1a\x1cgoogle/protobuf/struct.proto\"3\n" ++ "\x13proto/content.proto\x12\x02ax\x1a\x1cgoogle/protobuf/struct.proto\"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" ++ "\bdeclined\x18\x01 \x01(\bR\bdeclinedJ\x04\b\x02\x10\x03R\x06reason\"\xc4\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" ++ "\bquestion\x18\x04 \x01(\tR\bquestion\x122\n" ++ "\bapproval\x18\x05 \x01(\v2\x14.ax.ApprovalDecisionH\x00R\bapproval\x12/\n" ++ "\adecline\x18\x06 \x01(\v2\x13.ax.DeclineDecisionH\x00R\adeclineB\n" +"\n" +- "\bdecisionJ\x04\b\x01\x10\x02J\x04\b\x02\x10\x03R\x04type\"\x8a\x01\n" ++ "\bdecisionJ\x04\b\x01\x10\x02J\x04\b\x02\x10\x03R\x04type\"\x87\x01\n" +"\x0fToolCallContent\x12\x0e\n" +"\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n" +- "\tsignature\x18\t \x01(\fR\tsignature\x12A\n" +- "\rfunction_call\x18\x02 \x01(\v2\x1a.proto.FunctionCallContentH\x00R\ffunctionCallB\x06\n" +- "\x04type\"\xa1\x01\n" ++ "\tsignature\x18\t \x01(\fR\tsignature\x12>\n" ++ "\rfunction_call\x18\x02 \x01(\v2\x17.ax.FunctionCallContentH\x00R\ffunctionCallB\x06\n" ++ "\x04type\"\x9e\x01\n" +"\x11ToolResultContent\x12\x17\n" +"\acall_id\x18\b \x01(\tR\x06callId\x12\x1c\n" +- "\tsignature\x18\t \x01(\fR\tsignature\x12G\n" +- "\x0ffunction_result\x18\x02 \x01(\v2\x1c.proto.FunctionResultContentH\x00R\x0efunctionResultB\x06\n" ++ "\tsignature\x18\t \x01(\fR\tsignature\x12D\n" ++ "\x0ffunction_result\x18\x02 \x01(\v2\x19.ax.FunctionResultContentH\x00R\x0efunctionResultB\x06\n" +"\x04typeJ\x04\b\x01\x10\x02\"l\n" +"\x13FunctionCallContent\x12\x12\n" +"\x04name\x18\x03 \x01(\tR\x04name\x125\n" +@@ -706,13 +706,13 @@ const file_proto_content_proto_rawDesc = "" +"\x15FunctionResultContent\x12\x12\n" +"\x04name\x18\b \x01(\tR\x04name\x125\n" +"\bresponse\x18\x03 \x01(\v2\x17.google.protobuf.StructH\x00R\bresponseB\b\n" +- "\x06resultJ\x04\b\x01\x10\x02J\x04\b\x04\x10\x05R\x04type\"\x83\x02\n" +- "\aContent\x12(\n" ++ "\x06resultJ\x04\b\x01\x10\x02J\x04\b\x04\x10\x05R\x04type\"\xf7\x01\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\x125\n" +- "\ttool_call\x18\x18 \x01(\v2\x16.proto.ToolCallContentH\x00R\btoolCall\x12;\n" +- "\vtool_result\x18\x19 \x01(\v2\x18.proto.ToolResultContentH\x00R\n" ++ " \x01(\v2\x0f.ax.TextContentH\x00R\x04text\x12=\n" ++ "\fconfirmation\x18\x1a \x01(\v2\x17.ax.ConfirmationContentH\x00R\fconfirmation\x122\n" ++ "\ttool_call\x18\x18 \x01(\v2\x13.ax.ToolCallContentH\x00R\btoolCall\x128\n" ++ "\vtool_result\x18\x19 \x01(\v2\x15.ax.ToolResultContentH\x00R\n" +"toolResultB\x06\n" +"\x04typeJ\x04\b\x01\x10\x05J\x04\b\x06\x10\n" +"J\x04\b\v\x10\x18B\x1cZ\x1agithub.com/google/ax/protob\x06proto3"@@ -731,28 +731,28 @@ func file_proto_content_proto_rawDescGZIP() []byte {var file_proto_content_proto_msgTypes = make([]protoimpl.MessageInfo, 9)var file_proto_content_proto_goTypes = []any{- (*TextContent)(nil), // 0: proto.TextContent- (*ApprovalDecision)(nil), // 1: proto.ApprovalDecision- (*DeclineDecision)(nil), // 2: proto.DeclineDecision- (*ConfirmationContent)(nil), // 3: proto.ConfirmationContent- (*ToolCallContent)(nil), // 4: proto.ToolCallContent- (*ToolResultContent)(nil), // 5: proto.ToolResultContent- (*FunctionCallContent)(nil), // 6: proto.FunctionCallContent- (*FunctionResultContent)(nil), // 7: proto.FunctionResultContent- (*Content)(nil), // 8: proto.Content+ (*TextContent)(nil), // 0: ax.TextContent+ (*ApprovalDecision)(nil), // 1: ax.ApprovalDecision+ (*DeclineDecision)(nil), // 2: ax.DeclineDecision+ (*ConfirmationContent)(nil), // 3: ax.ConfirmationContent+ (*ToolCallContent)(nil), // 4: ax.ToolCallContent+ (*ToolResultContent)(nil), // 5: ax.ToolResultContent+ (*FunctionCallContent)(nil), // 6: ax.FunctionCallContent+ (*FunctionResultContent)(nil), // 7: ax.FunctionResultContent+ (*Content)(nil), // 8: ax.Content(*structpb.Struct)(nil), // 9: google.protobuf.Struct}var file_proto_content_proto_depIdxs = []int32{- 1, // 0: proto.ConfirmationContent.approval:type_name -> proto.ApprovalDecision- 2, // 1: proto.ConfirmationContent.decline:type_name -> proto.DeclineDecision- 6, // 2: proto.ToolCallContent.function_call:type_name -> proto.FunctionCallContent- 7, // 3: proto.ToolResultContent.function_result:type_name -> proto.FunctionResultContent- 9, // 4: proto.FunctionCallContent.arguments:type_name -> google.protobuf.Struct- 9, // 5: proto.FunctionResultContent.response:type_name -> google.protobuf.Struct- 0, // 6: proto.Content.text:type_name -> proto.TextContent- 3, // 7: proto.Content.confirmation:type_name -> proto.ConfirmationContent- 4, // 8: proto.Content.tool_call:type_name -> proto.ToolCallContent- 5, // 9: proto.Content.tool_result:type_name -> proto.ToolResultContent+ 1, // 0: ax.ConfirmationContent.approval:type_name -> ax.ApprovalDecision+ 2, // 1: ax.ConfirmationContent.decline:type_name -> ax.DeclineDecision+ 6, // 2: ax.ToolCallContent.function_call:type_name -> ax.FunctionCallContent+ 7, // 3: ax.ToolResultContent.function_result:type_name -> ax.FunctionResultContent+ 9, // 4: ax.FunctionCallContent.arguments:type_name -> google.protobuf.Struct+ 9, // 5: ax.FunctionResultContent.response:type_name -> google.protobuf.Struct+ 0, // 6: ax.Content.text:type_name -> ax.TextContent+ 3, // 7: ax.Content.confirmation:type_name -> ax.ConfirmationContent+ 4, // 8: ax.Content.tool_call:type_name -> ax.ToolCallContent+ 5, // 9: ax.Content.tool_result:type_name -> ax.ToolResultContent10, // [10:10] is the sub-list for method output_type10, // [10:10] is the sub-list for method input_type10, // [10:10] is the sub-list for extension type_namediff --git a/proto/content.proto b/proto/content.protoindex 467475d..fef9e29 100644--- a/proto/content.proto+++ b/proto/content.proto@@ -14,7 +14,7 @@syntax = "proto3";-package proto;+package ax;import "google/protobuf/struct.proto";