Skip to content

armgit / ax

Public Imported from GitHub
0

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

Go

Include harness ID and configuration in HarnessMessage (#43)

Jaana Dogan2a9e3bd70d1c
diff --git a/proto/ax.pb.go b/proto/ax.pb.go
index 344adb1..d0eb689 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 v5.28.2
+// protoc v7.34.1
// source: proto/ax.proto
package proto
@@ -719,7 +719,9 @@ type HarnessMessage struct {
state protoimpl.MessageState `protogen:"open.v1"`
// TODO(jbd): This is a placeholder message
// and will be replaced with the actual protocol.
- Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
+ HarnessId string `protobuf:"bytes,1,opt,name=harness_id,json=harnessId,proto3" json:"harness_id,omitempty"` // The unique identifier of the harness.
+ HarnessConfig []byte `protobuf:"bytes,2,opt,name=harness_config,json=harnessConfig,proto3" json:"harness_config,omitempty"` // The configuration for the harness.
+ Messages []*Message `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"` // The messages associated with the call.
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -754,6 +756,20 @@ func (*HarnessMessage) Descriptor() ([]byte, []int) {
return file_proto_ax_proto_rawDescGZIP(), []int{10}
}
+func (x *HarnessMessage) GetHarnessId() string {
+ if x != nil {
+ return x.HarnessId
+ }
+ return ""
+}
+
+func (x *HarnessMessage) GetHarnessConfig() []byte {
+ if x != nil {
+ return x.HarnessConfig
+ }
+ return nil
+}
+
func (x *HarnessMessage) GetMessages() []*Message {
if x != nil {
return x.Messages
@@ -1125,9 +1141,12 @@ const file_proto_ax_proto_rawDesc = "" +
"\x12HealthCheckRequest\"I\n" +
"\x13HealthCheckResponse\x12\x18\n" +
"\ahealthy\x18\x01 \x01(\bR\ahealthy\x12\x18\n" +
- "\amessage\x18\x02 \x01(\tR\amessage\"9\n" +
- "\x0eHarnessMessage\x12'\n" +
- "\bmessages\x18\x01 \x03(\v2\v.ax.MessageR\bmessages\"\xb4\x01\n" +
+ "\amessage\x18\x02 \x01(\tR\amessage\"\x7f\n" +
+ "\x0eHarnessMessage\x12\x1d\n" +
+ "\n" +
+ "harness_id\x18\x01 \x01(\tR\tharnessId\x12%\n" +
+ "\x0eharness_config\x18\x02 \x01(\fR\rharnessConfig\x12'\n" +
+ "\bmessages\x18\x03 \x03(\v2\v.ax.MessageR\bmessages\"\xb4\x01\n" +
"\vExecRequest\x12'\n" +
"\x0fconversation_id\x18\x01 \x01(\tR\x0econversationId\x12#\n" +
"\x06inputs\x18\x02 \x03(\v2\v.ax.MessageR\x06inputs\x12\x19\n" +
diff --git a/proto/ax.proto b/proto/ax.proto
index dc4a563..62d68e9 100644
--- a/proto/ax.proto
+++ b/proto/ax.proto
@@ -112,7 +112,9 @@ service AgentService {
message HarnessMessage {
// TODO(jbd): This is a placeholder message
// and will be replaced with the actual protocol.
- repeated Message messages = 1;
+ string harness_id = 1; // The unique identifier of the harness.
+ bytes harness_config = 2; // The configuration for the harness.
+ repeated Message messages = 3; // The input/output messages.
}
service HarnessService {
diff --git a/proto/ax_grpc.pb.go b/proto/ax_grpc.pb.go
index 9f68557..d2786db 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.5.1
-// - protoc v5.28.2
+// - protoc-gen-go-grpc v1.6.0
+// - protoc v7.34.1
// source: proto/ax.proto
package proto
@@ -119,10 +119,10 @@ type AgentServiceServer interface {
type UnimplementedAgentServiceServer struct{}
func (UnimplementedAgentServiceServer) Connect(*AgentRequest, grpc.ServerStreamingServer[AgentResponse]) error {
- return status.Errorf(codes.Unimplemented, "method Connect not implemented")
+ return status.Error(codes.Unimplemented, "method Connect not implemented")
}
func (UnimplementedAgentServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented")
+ return nil, status.Error(codes.Unimplemented, "method HealthCheck not implemented")
}
func (UnimplementedAgentServiceServer) mustEmbedUnimplementedAgentServiceServer() {}
func (UnimplementedAgentServiceServer) testEmbeddedByValue() {}
@@ -135,7 +135,7 @@ type UnsafeAgentServiceServer interface {
}
func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer) {
- // If the following call pancis, it indicates UnimplementedAgentServiceServer was
+ // If the following call panics, 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.
@@ -244,7 +244,7 @@ type HarnessServiceServer interface {
type UnimplementedHarnessServiceServer struct{}
func (UnimplementedHarnessServiceServer) Connect(grpc.BidiStreamingServer[HarnessMessage, HarnessMessage]) error {
- return status.Errorf(codes.Unimplemented, "method Connect not implemented")
+ return status.Error(codes.Unimplemented, "method Connect not implemented")
}
func (UnimplementedHarnessServiceServer) mustEmbedUnimplementedHarnessServiceServer() {}
func (UnimplementedHarnessServiceServer) testEmbeddedByValue() {}
@@ -257,7 +257,7 @@ type UnsafeHarnessServiceServer interface {
}
func RegisterHarnessServiceServer(s grpc.ServiceRegistrar, srv HarnessServiceServer) {
- // If the following call pancis, it indicates UnimplementedHarnessServiceServer was
+ // If the following call panics, it indicates UnimplementedHarnessServiceServer 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.
@@ -350,7 +350,7 @@ type ControllerServiceServer interface {
type UnimplementedControllerServiceServer struct{}
func (UnimplementedControllerServiceServer) Exec(*ExecRequest, grpc.ServerStreamingServer[ExecResponse]) error {
- return status.Errorf(codes.Unimplemented, "method Exec not implemented")
+ return status.Error(codes.Unimplemented, "method Exec not implemented")
}
func (UnimplementedControllerServiceServer) mustEmbedUnimplementedControllerServiceServer() {}
func (UnimplementedControllerServiceServer) testEmbeddedByValue() {}
@@ -363,7 +363,7 @@ type UnsafeControllerServiceServer interface {
}
func RegisterControllerServiceServer(s grpc.ServiceRegistrar, srv ControllerServiceServer) {
- // If the following call pancis, it indicates UnimplementedControllerServiceServer was
+ // If the following call panics, 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.
@@ -465,10 +465,10 @@ type ConversationServiceServer interface {
type UnimplementedConversationServiceServer struct{}
func (UnimplementedConversationServiceServer) DeleteConversation(context.Context, *DeleteConversationRequest) (*DeleteConversationResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteConversation not implemented")
+ return nil, status.Error(codes.Unimplemented, "method DeleteConversation not implemented")
}
func (UnimplementedConversationServiceServer) ForkConversation(context.Context, *ForkConversationRequest) (*ForkConversationResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ForkConversation not implemented")
+ return nil, status.Error(codes.Unimplemented, "method ForkConversation not implemented")
}
func (UnimplementedConversationServiceServer) mustEmbedUnimplementedConversationServiceServer() {}
func (UnimplementedConversationServiceServer) testEmbeddedByValue() {}
@@ -481,7 +481,7 @@ type UnsafeConversationServiceServer interface {
}
func RegisterConversationServiceServer(s grpc.ServiceRegistrar, srv ConversationServiceServer) {
- // If the following call pancis, it indicates UnimplementedConversationServiceServer was
+ // If the following call panics, it indicates UnimplementedConversationServiceServer 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.
diff --git a/proto/content.pb.go b/proto/content.pb.go
index 1cae4f6..807eb73 100644
--- a/proto/content.pb.go
+++ b/proto/content.pb.go
@@ -15,7 +15,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
-// protoc v5.28.2
+// protoc v7.34.1
// source: proto/content.proto
package proto