Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

Remove the unused state field from ExecResponse (#143)

Jaana Dogan4c14437d1fb5
diff --git a/internal/testagent/proto/testagent.pb.go b/internal/testagent/proto/testagent.pb.go
index e3b569d..78ae1ea 100644
--- a/internal/testagent/proto/testagent.pb.go
+++ b/internal/testagent/proto/testagent.pb.go
@@ -15,7 +15,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
-// protoc v3.21.9
+// protoc v5.28.2
// source: internal/testagent/proto/testagent.proto
package proto
diff --git a/proto/ax.pb.go b/proto/ax.pb.go
index d5c8487..1a257d1 100644
--- a/proto/ax.pb.go
+++ b/proto/ax.pb.go
@@ -15,7 +15,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
-// protoc v3.21.9
+// protoc v5.28.2
// source: proto/ax.proto
package proto
@@ -1025,8 +1025,7 @@ func (x *ExecRequest) GetInputs() []*Content {
// ExecResponse contains the result of an execution.
type ExecResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
- Outputs []*Content `protobuf:"bytes,1,rep,name=outputs,proto3" json:"outputs,omitempty"` // Output content
- State State `protobuf:"varint,2,opt,name=state,proto3,enum=proto.State" json:"state,omitempty"` // Execution state
+ Outputs []*Content `protobuf:"bytes,1,rep,name=outputs,proto3" json:"outputs,omitempty"` // Output content
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -1068,13 +1067,6 @@ func (x *ExecResponse) GetOutputs() []*Content {
return nil
}
-func (x *ExecResponse) GetState() State {
- if x != nil {
- return x.State
- }
- return State_STATE_UNSPECIFIED
-}
-
type ForkRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
SrcId string `protobuf:"bytes,1,opt,name=src_id,json=srcId,proto3" json:"src_id,omitempty"`
@@ -1492,10 +1484,9 @@ const file_proto_ax_proto_rawDesc = "" +
"\x02id\x18\x01 \x01(\tR\x02id\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.ContentR\x06inputs\"\\\n" +
+ "\x06inputs\x18\x04 \x03(\v2\x0e.proto.ContentR\x06inputs\"8\n" +
"\fExecResponse\x12(\n" +
- "\aoutputs\x18\x01 \x03(\v2\x0e.proto.ContentR\aoutputs\x12\"\n" +
- "\x05state\x18\x02 \x01(\x0e2\f.proto.StateR\x05state\"i\n" +
+ "\aoutputs\x18\x01 \x03(\v2\x0e.proto.ContentR\aoutputs\"i\n" +
"\vForkRequest\x12\x15\n" +
"\x06src_id\x18\x01 \x01(\tR\x05srcId\x12*\n" +
"\x11src_checkpoint_id\x18\x02 \x01(\tR\x0fsrcCheckpointId\x12\x17\n" +
@@ -1598,25 +1589,24 @@ var file_proto_ax_proto_depIdxs = []int32{
23, // 17: proto.ExecRequest.agent_config:type_name -> google.protobuf.Any
10, // 18: proto.ExecRequest.inputs:type_name -> proto.Content
10, // 19: proto.ExecResponse.outputs:type_name -> proto.Content
- 0, // 20: proto.ExecResponse.state:type_name -> proto.State
- 22, // 21: proto.RegisterAgentRequest.metadata:type_name -> proto.RegisterAgentRequest.MetadataEntry
- 18, // 22: proto.RegisterAgentRequest.remote:type_name -> proto.RemoteAgentConfig
- 26, // 23: proto.GeminiConfig.timeout:type_name -> google.protobuf.Duration
- 3, // 24: proto.AgentService.Connect:input_type -> proto.AgentMessage
- 12, // 25: proto.AgentService.HealthCheck:input_type -> proto.HealthCheckRequest
- 14, // 26: proto.AXService.Exec:input_type -> proto.ExecRequest
- 16, // 27: proto.AXService.Fork:input_type -> proto.ForkRequest
- 19, // 28: proto.AXService.RegisterAgent:input_type -> proto.RegisterAgentRequest
- 3, // 29: proto.AgentService.Connect:output_type -> proto.AgentMessage
- 13, // 30: proto.AgentService.HealthCheck:output_type -> proto.HealthCheckResponse
- 15, // 31: proto.AXService.Exec:output_type -> proto.ExecResponse
- 17, // 32: proto.AXService.Fork:output_type -> proto.ForkResponse
- 20, // 33: proto.AXService.RegisterAgent:output_type -> proto.RegisterAgentResponse
- 29, // [29:34] is the sub-list for method output_type
- 24, // [24:29] is the sub-list for method input_type
- 24, // [24:24] is the sub-list for extension type_name
- 24, // [24:24] is the sub-list for extension extendee
- 0, // [0:24] is the sub-list for field type_name
+ 22, // 20: proto.RegisterAgentRequest.metadata:type_name -> proto.RegisterAgentRequest.MetadataEntry
+ 18, // 21: proto.RegisterAgentRequest.remote:type_name -> proto.RemoteAgentConfig
+ 26, // 22: proto.GeminiConfig.timeout:type_name -> google.protobuf.Duration
+ 3, // 23: proto.AgentService.Connect:input_type -> proto.AgentMessage
+ 12, // 24: proto.AgentService.HealthCheck:input_type -> proto.HealthCheckRequest
+ 14, // 25: proto.AXService.Exec:input_type -> proto.ExecRequest
+ 16, // 26: proto.AXService.Fork:input_type -> proto.ForkRequest
+ 19, // 27: proto.AXService.RegisterAgent:input_type -> proto.RegisterAgentRequest
+ 3, // 28: proto.AgentService.Connect:output_type -> proto.AgentMessage
+ 13, // 29: proto.AgentService.HealthCheck:output_type -> proto.HealthCheckResponse
+ 15, // 30: proto.AXService.Exec:output_type -> proto.ExecResponse
+ 17, // 31: proto.AXService.Fork:output_type -> proto.ForkResponse
+ 20, // 32: proto.AXService.RegisterAgent:output_type -> proto.RegisterAgentResponse
+ 28, // [28:33] is the sub-list for method output_type
+ 23, // [23:28] is the sub-list for method input_type
+ 23, // [23:23] is the sub-list for extension type_name
+ 23, // [23:23] is the sub-list for extension extendee
+ 0, // [0:23] is the sub-list for field type_name
}
func init() { file_proto_ax_proto_init() }
diff --git a/proto/ax.proto b/proto/ax.proto
index 24db4c2..03f7531 100644
--- a/proto/ax.proto
+++ b/proto/ax.proto
@@ -152,7 +152,6 @@ message ExecRequest {
// ExecResponse contains the result of an execution.
message ExecResponse {
repeated Content outputs = 1; // Output content
- State state = 2; // Execution state
}
message ForkRequest {
diff --git a/proto/ax_grpc.pb.go b/proto/ax_grpc.pb.go
index 4361d3d..ace63ba 100644
--- a/proto/ax_grpc.pb.go
+++ b/proto/ax_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/ax.proto
package proto
@@ -101,10 +101,10 @@ type AgentServiceServer interface {
type UnimplementedAgentServiceServer struct{}
func (UnimplementedAgentServiceServer) Connect(grpc.BidiStreamingServer[AgentMessage, AgentMessage]) error {
- return status.Error(codes.Unimplemented, "method Connect not implemented")
+ return status.Errorf(codes.Unimplemented, "method Connect 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.
@@ -267,13 +267,13 @@ type AXServiceServer interface {
type UnimplementedAXServiceServer struct{}
func (UnimplementedAXServiceServer) Exec(*ExecRequest, grpc.ServerStreamingServer[ExecResponse]) error {
- return status.Error(codes.Unimplemented, "method Exec not implemented")
+ return status.Errorf(codes.Unimplemented, "method Exec not implemented")
}
func (UnimplementedAXServiceServer) Fork(context.Context, *ForkRequest) (*ForkResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method Fork not implemented")
+ return nil, status.Errorf(codes.Unimplemented, "method Fork not implemented")
}
func (UnimplementedAXServiceServer) 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 (UnimplementedAXServiceServer) mustEmbedUnimplementedAXServiceServer() {}
func (UnimplementedAXServiceServer) testEmbeddedByValue() {}
@@ -286,7 +286,7 @@ type UnsafeAXServiceServer interface {
}
func RegisterAXServiceServer(s grpc.ServiceRegistrar, srv AXServiceServer) {
- // If the following call panics, it indicates UnimplementedAXServiceServer was
+ // If the following call pancis, it indicates UnimplementedAXServiceServer 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.