Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Use bytes for agent_config (#248)
Jaana Dogane8491a1c272a
diff --git a/internal/controller/controller.go b/internal/controller/controller.goindex 5f93ded..a5f8fa2 100644--- a/internal/controller/controller.go+++ b/internal/controller/controller.go@@ -28,7 +28,6 @@ import ("github.com/google/ax/internal/testagent""github.com/google/ax/proto""github.com/google/uuid"- "google.golang.org/protobuf/types/known/anypb")const plannerAgentID = "__planner"@@ -205,7 +204,7 @@ func (d *Controller) Exec(ctx context.Context, req *proto.ExecRequest, handler E)}-func (d *Controller) execute(ctx context.Context, conversationID string, execID string, agentID string, agentConfig *anypb.Any, history []*proto.Message, newInputs []*proto.Message, registry map[string]agent.Agent, handler ExecHandler) error {+func (d *Controller) execute(ctx context.Context, conversationID string, execID string, agentID string, agentConfig []byte, history []*proto.Message, newInputs []*proto.Message, registry map[string]agent.Agent, handler ExecHandler) error {e := executor.DefaultExecutor(d.eventLog, registry)outputCapturer := func(outgoing *proto.AgentOutputs) error {if outgoing.InternalOnly {@@ -236,7 +235,7 @@ func (d *Controller) execute(ctx context.Context, conversationID string, execID}state, err := e.Exec(ctx, conversationID, execID, &proto.AgentStart{AgentId: agentID,- Config: agentConfig,+ AgentConfig: agentConfig,Messages: append(history, newInputs...),}, outputCapturer)if err != nil {diff --git a/internal/controller/executor/executor.go b/internal/controller/executor/executor.goindex c5f5a26..6844725 100644--- a/internal/controller/executor/executor.go+++ b/internal/controller/executor/executor.go@@ -170,7 +170,7 @@ func logPending(ctx context.Context, el EventLog, execID string, start *proto.AgTimestamp: timestamppb.Now(),ExecId: execID,AgentId: start.AgentId,- AgentConfig: start.Config,+ AgentConfig: start.AgentConfig,Inputs: start.Messages,State: proto.State_STATE_PENDING,})diff --git a/internal/controller/gemini.go b/internal/controller/gemini.goindex c05e5a8..4b2d131 100644--- a/internal/controller/gemini.go+++ b/internal/controller/gemini.go@@ -27,6 +27,7 @@ import ("github.com/google/ax/internal/skills""github.com/google/ax/proto""google.golang.org/genai"+ pb "google.golang.org/protobuf/proto""google.golang.org/protobuf/types/known/structpb")@@ -40,7 +41,7 @@ func NewGeminiAgent() *GeminiAgent {}func (a *GeminiAgent) config(start *proto.AgentStart) (*proto.GeminiConfig, error) {- if start.Config == nil {+ if len(start.AgentConfig) == 0 {return &proto.GeminiConfig{Model: "gemini-3-flash-preview",Timeout: &duration.Duration{Seconds: 30},@@ -48,7 +49,7 @@ func (a *GeminiAgent) config(start *proto.AgentStart) (*proto.GeminiConfig, erro}var cfg proto.GeminiConfig- if err := start.Config.UnmarshalTo(&cfg); err != nil {+ if err := pb.Unmarshal(start.AgentConfig, &cfg); err != nil {return nil, fmt.Errorf("failed to unmarshal Gemini config: %w", err)}return &cfg, nildiff --git a/internal/testagent/agent.go b/internal/testagent/agent.goindex 3a797fe..0714f57 100644--- a/internal/testagent/agent.go+++ b/internal/testagent/agent.go@@ -27,7 +27,7 @@ import (testagentpb "github.com/google/ax/internal/testagent/proto""github.com/google/ax/proto""github.com/google/uuid"- "google.golang.org/protobuf/types/known/anypb"+ pb "google.golang.org/protobuf/proto")// Please note that this is not production code. testagent is only for testing ax.@@ -86,7 +86,7 @@ func (a *CodingAgent) Connect(ctx context.Context, conversationID string, execID}{- config, err := anypb.New(&testagentpb.KubernetesDeployAgentConfig{+ config, err := pb.Marshal(&testagentpb.KubernetesDeployAgentConfig{Regions: []string{"us-central1"},})if err != nil {@@ -95,7 +95,7 @@ func (a *CodingAgent) Connect(ctx context.Context, conversationID string, execIDoutputs, err := exec.Exec(ctx, conversationID, "deploy", &proto.AgentStart{AgentId: "kubernetes-deploy",Messages: history,- Config: config,+ AgentConfig: config,})if err != nil {return err@@ -109,7 +109,7 @@ func (a *CodingAgent) Connect(ctx context.Context, conversationID string, execID}{- config, err := anypb.New(&testagentpb.KubernetesDeployAgentConfig{+ config, err := pb.Marshal(&testagentpb.KubernetesDeployAgentConfig{Regions: []string{"europe-north1", "asia-east1", "us-west2"},})if err != nil {@@ -118,7 +118,7 @@ func (a *CodingAgent) Connect(ctx context.Context, conversationID string, execIDoutputs, err := exec.Exec(ctx, conversationID, "deploy-more", &proto.AgentStart{AgentId: "kubernetes-deploy",Messages: history,- Config: config,+ AgentConfig: config,})if err != nil {return err@@ -271,11 +271,11 @@ func (a *KubernetesDeployAgent) Connect(ctx context.Context, conversationID strireturn nil}- if start.Config == nil {+ if start.AgentConfig == nil {return fmt.Errorf("no config for id=%v", execID)}var config testagentpb.KubernetesDeployAgentConfig- if err := start.Config.UnmarshalTo(&config); err != nil {+ if err := pb.Unmarshal(start.AgentConfig, &config); err != nil {return err}if len(config.Regions) == 0 {diff --git a/internal/testagent/proto/testagent.pb.go b/internal/testagent/proto/testagent.pb.goindex c699cb9..78ae1ea 100644--- a/internal/testagent/proto/testagent.pb.go+++ b/internal/testagent/proto/testagent.pb.go@@ -15,18 +15,17 @@// Code generated by protoc-gen-go. DO NOT EDIT.// versions:// protoc-gen-go v1.36.11-// protoc v7.34.0+// protoc v5.28.2// source: internal/testagent/proto/testagent.protopackage protoimport (+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"reflect "reflect"sync "sync"unsafe "unsafe"-- protoreflect "google.golang.org/protobuf/reflect/protoreflect"- protoimpl "google.golang.org/protobuf/runtime/protoimpl")const (diff --git a/proto/ax.pb.go b/proto/ax.pb.goindex 72fa7fd..f2c467b 100644--- a/proto/ax.pb.go+++ b/proto/ax.pb.go@@ -15,21 +15,19 @@// Code generated by protoc-gen-go. DO NOT EDIT.// versions:// protoc-gen-go v1.36.11-// protoc v7.34.0+// protoc v5.28.2// source: proto/ax.protopackage protoimport (- reflect "reflect"- sync "sync"- unsafe "unsafe"-protoreflect "google.golang.org/protobuf/reflect/protoreflect"protoimpl "google.golang.org/protobuf/runtime/protoimpl"- anypb "google.golang.org/protobuf/types/known/anypb"durationpb "google.golang.org/protobuf/types/known/durationpb"timestamppb "google.golang.org/protobuf/types/known/timestamppb"+ reflect "reflect"+ sync "sync"+ unsafe "unsafe")const (@@ -95,7 +93,7 @@ func (State) EnumDescriptor() ([]byte, []int) {type AgentStart struct {state protoimpl.MessageState `protogen:"open.v1"`AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`- Config *anypb.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`+ AgentConfig []byte `protobuf:"bytes,2,opt,name=agent_config,json=agentConfig,proto3" json:"agent_config,omitempty"`Messages []*Message `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache@@ -138,9 +136,9 @@ func (x *AgentStart) GetAgentId() string {return ""}-func (x *AgentStart) GetConfig() *anypb.Any {+func (x *AgentStart) GetAgentConfig() []byte {if x != nil {- return x.Config+ return x.AgentConfig}return nil}@@ -496,7 +494,7 @@ type ExecutionEvent struct {state protoimpl.MessageState `protogen:"open.v1"`ExecId string `protobuf:"bytes,1,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`- AgentConfig *anypb.Any `protobuf:"bytes,3,opt,name=agent_config,json=agentConfig,proto3" json:"agent_config,omitempty"`+ AgentConfig []byte `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=ax.State" json:"state,omitempty"`@@ -549,7 +547,7 @@ func (x *ExecutionEvent) GetAgentId() string {return ""}-func (x *ExecutionEvent) GetAgentConfig() *anypb.Any {+func (x *ExecutionEvent) GetAgentConfig() []byte {if x != nil {return x.AgentConfig}@@ -681,7 +679,7 @@ type ExecRequest struct {Inputs []*Message `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` // New inputsLastSeq int32 `protobuf:"varint,3,opt,name=last_seq,json=lastSeq,proto3" json:"last_seq,omitempty"` // Last sequence number seen by the clientAgentId string `protobuf:"bytes,4,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` // Agent ID, if empty planner is used- AgentConfig *anypb.Any `protobuf:"bytes,5,opt,name=agent_config,json=agentConfig,proto3" json:"agent_config,omitempty"` // Agent configuration if any+ AgentConfig []byte `protobuf:"bytes,5,opt,name=agent_config,json=agentConfig,proto3" json:"agent_config,omitempty"` // Agent configuration if anyunknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -744,7 +742,7 @@ func (x *ExecRequest) GetAgentId() string {return ""}-func (x *ExecRequest) GetAgentConfig() *anypb.Any {+func (x *ExecRequest) GetAgentConfig() []byte {if x != nil {return x.AgentConfig}@@ -1342,11 +1340,11 @@ var File_proto_ax_proto protoreflect.FileDescriptorconst file_proto_ax_proto_rawDesc = "" +"\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" ++ "\x0eproto/ax.proto\x12\x02ax\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x13proto/content.proto\"s\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" ++ "\bagent_id\x18\x01 \x01(\tR\aagentId\x12!\n" ++ "\fagent_config\x18\x02 \x01(\fR\vagentConfig\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" +@@ -1368,11 +1366,11 @@ const file_proto_ax_proto_rawDesc = "" +"\x03seq\x18\x02 \x01(\x05R\x03seq\x12\x17\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" ++ "\x05state\x18\x05 \x01(\x0e2\t.ax.StateR\x05state\"\x8e\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" ++ "\bagent_id\x18\x02 \x01(\tR\aagentId\x12!\n" ++ "\fagent_config\x18\x03 \x01(\fR\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" +@@ -1380,13 +1378,13 @@ 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\"\xca\x01\n" ++ "\amessage\x18\x02 \x01(\tR\amessage\"\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" +"\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\"G\n" ++ "\bagent_id\x18\x04 \x01(\tR\aagentId\x12!\n" ++ "\fagent_config\x18\x05 \x01(\fR\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" +@@ -1477,52 +1475,48 @@ var file_proto_ax_proto_goTypes = []any{(*ForkResponse)(nil), // 20: ax.ForkResponse(*GeminiConfig)(nil), // 21: ax.GeminiConfignil, // 22: ax.RegisterAgentRequest.MetadataEntry- (*anypb.Any)(nil), // 23: google.protobuf.Any- (*Content)(nil), // 24: ax.Content- (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp- (*durationpb.Duration)(nil), // 26: google.protobuf.Duration+ (*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{- 23, // 0: ax.AgentStart.config:type_name -> google.protobuf.Any- 5, // 1: ax.AgentStart.messages:type_name -> ax.Message- 5, // 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- 3, // 5: ax.AgentMessage.end:type_name -> ax.AgentEnd- 24, // 6: ax.Message.content:type_name -> ax.Content- 5, // 7: ax.ConversationEvent.messages:type_name -> ax.Message- 0, // 8: ax.ConversationEvent.state:type_name -> ax.State- 23, // 9: ax.ExecutionEvent.agent_config:type_name -> google.protobuf.Any- 5, // 10: ax.ExecutionEvent.inputs:type_name -> ax.Message- 5, // 11: ax.ExecutionEvent.outputs:type_name -> ax.Message- 0, // 12: ax.ExecutionEvent.state:type_name -> ax.State- 25, // 13: ax.ExecutionEvent.timestamp:type_name -> google.protobuf.Timestamp- 5, // 14: ax.ExecRequest.inputs:type_name -> ax.Message- 23, // 15: ax.ExecRequest.agent_config:type_name -> google.protobuf.Any- 5, // 16: ax.ExecResponse.outputs:type_name -> ax.Message- 22, // 17: ax.RegisterAgentRequest.metadata:type_name -> ax.RegisterAgentRequest.MetadataEntry- 12, // 18: ax.RegisterAgentRequest.remote:type_name -> ax.RemoteAgentConfig- 6, // 19: ax.ListResponse.events:type_name -> ax.ConversationEvent- 26, // 20: ax.GeminiConfig.timeout:type_name -> google.protobuf.Duration- 4, // 21: ax.AgentService.Connect:input_type -> ax.AgentMessage- 8, // 22: ax.AgentService.HealthCheck:input_type -> ax.HealthCheckRequest- 10, // 23: ax.ControllerService.Exec:input_type -> ax.ExecRequest- 13, // 24: ax.ControllerService.RegisterAgent:input_type -> ax.RegisterAgentRequest- 15, // 25: ax.EventLogService.List:input_type -> ax.ListRequest- 17, // 26: ax.EventLogService.Delete:input_type -> ax.DeleteRequest- 19, // 27: ax.EventLogService.Fork:input_type -> ax.ForkRequest- 4, // 28: ax.AgentService.Connect:output_type -> ax.AgentMessage- 9, // 29: ax.AgentService.HealthCheck:output_type -> ax.HealthCheckResponse- 11, // 30: ax.ControllerService.Exec:output_type -> ax.ExecResponse- 14, // 31: ax.ControllerService.RegisterAgent:output_type -> ax.RegisterAgentResponse- 16, // 32: ax.EventLogService.List:output_type -> ax.ListResponse- 18, // 33: ax.EventLogService.Delete:output_type -> ax.DeleteResponse- 20, // 34: ax.EventLogService.Fork:output_type -> ax.ForkResponse- 28, // [28:35] is the sub-list for method output_type- 21, // [21:28] is the sub-list for method input_type- 21, // [21:21] is the sub-list for extension type_name- 21, // [21:21] is the sub-list for extension extendee- 0, // [0:21] is the sub-list for field type_name+ 5, // 0: ax.AgentStart.messages:type_name -> ax.Message+ 5, // 1: ax.AgentOutputs.messages:type_name -> ax.Message+ 1, // 2: ax.AgentMessage.start:type_name -> ax.AgentStart+ 2, // 3: ax.AgentMessage.outputs:type_name -> ax.AgentOutputs+ 3, // 4: ax.AgentMessage.end:type_name -> ax.AgentEnd+ 23, // 5: ax.Message.content:type_name -> ax.Content+ 5, // 6: ax.ConversationEvent.messages:type_name -> ax.Message+ 0, // 7: ax.ConversationEvent.state:type_name -> ax.State+ 5, // 8: ax.ExecutionEvent.inputs:type_name -> ax.Message+ 5, // 9: ax.ExecutionEvent.outputs:type_name -> ax.Message+ 0, // 10: ax.ExecutionEvent.state:type_name -> ax.State+ 24, // 11: ax.ExecutionEvent.timestamp:type_name -> google.protobuf.Timestamp+ 5, // 12: ax.ExecRequest.inputs:type_name -> ax.Message+ 5, // 13: ax.ExecResponse.outputs:type_name -> ax.Message+ 22, // 14: ax.RegisterAgentRequest.metadata:type_name -> ax.RegisterAgentRequest.MetadataEntry+ 12, // 15: ax.RegisterAgentRequest.remote:type_name -> ax.RemoteAgentConfig+ 6, // 16: ax.ListResponse.events:type_name -> ax.ConversationEvent+ 25, // 17: ax.GeminiConfig.timeout:type_name -> google.protobuf.Duration+ 4, // 18: ax.AgentService.Connect:input_type -> ax.AgentMessage+ 8, // 19: ax.AgentService.HealthCheck:input_type -> ax.HealthCheckRequest+ 10, // 20: ax.ControllerService.Exec:input_type -> ax.ExecRequest+ 13, // 21: ax.ControllerService.RegisterAgent:input_type -> ax.RegisterAgentRequest+ 15, // 22: ax.EventLogService.List:input_type -> ax.ListRequest+ 17, // 23: ax.EventLogService.Delete:input_type -> ax.DeleteRequest+ 19, // 24: ax.EventLogService.Fork:input_type -> ax.ForkRequest+ 4, // 25: ax.AgentService.Connect:output_type -> ax.AgentMessage+ 9, // 26: ax.AgentService.HealthCheck:output_type -> ax.HealthCheckResponse+ 11, // 27: ax.ControllerService.Exec:output_type -> ax.ExecResponse+ 14, // 28: ax.ControllerService.RegisterAgent:output_type -> ax.RegisterAgentResponse+ 16, // 29: ax.EventLogService.List:output_type -> ax.ListResponse+ 18, // 30: ax.EventLogService.Delete:output_type -> ax.DeleteResponse+ 20, // 31: ax.EventLogService.Fork:output_type -> ax.ForkResponse+ 25, // [25:32] is the sub-list for method output_type+ 18, // [18:25] is the sub-list for method input_type+ 18, // [18:18] is the sub-list for extension type_name+ 18, // [18:18] is the sub-list for extension extendee+ 0, // [0:18] is the sub-list for field type_name}func init() { file_proto_ax_proto_init() }diff --git a/proto/ax.proto b/proto/ax.protoindex 0e5c61d..060c725 100644--- a/proto/ax.proto+++ b/proto/ax.proto@@ -17,7 +17,6 @@ syntax = "proto3";package ax;import "google/protobuf/timestamp.proto";-import "google/protobuf/any.proto";import "google/protobuf/duration.proto";import "proto/content.proto";@@ -28,7 +27,7 @@ option go_package = "github.com/google/ax/proto";message AgentStart {string agent_id = 1;- google.protobuf.Any config = 2;+ bytes agent_config = 2;repeated Message messages = 3;}@@ -76,7 +75,7 @@ message ConversationEvent {message ExecutionEvent {string exec_id = 1;string agent_id = 2;- google.protobuf.Any agent_config = 3;+ bytes agent_config = 3;repeated Message inputs = 4;repeated Message outputs = 5;State state = 6;@@ -122,7 +121,7 @@ message ExecRequest {int32 last_seq = 3; // Last sequence number seen by the clientstring agent_id = 4; // Agent ID, if empty planner is used- google.protobuf.Any agent_config = 5; // Agent configuration if any+ bytes agent_config = 5; // Agent configuration if any}// ExecResponse contains the result of an execution.diff --git a/proto/ax_grpc.pb.go b/proto/ax_grpc.pb.goindex 51ee65b..c234866 100644--- a/proto/ax_grpc.pb.go+++ b/proto/ax_grpc.pb.go@@ -14,15 +14,14 @@// Code generated by protoc-gen-go-grpc. DO NOT EDIT.// versions:-// - protoc-gen-go-grpc v1.6.1-// - protoc v7.34.0+// - protoc-gen-go-grpc v1.5.1+// - protoc v5.28.2// source: proto/ax.protopackage protoimport (context "context"-grpc "google.golang.org/grpc"codes "google.golang.org/grpc/codes"status "google.golang.org/grpc/status"diff --git a/proto/content.pb.go b/proto/content.pb.goindex 100ab27..86e5e0b 100644--- a/proto/content.pb.go+++ b/proto/content.pb.go@@ -15,19 +15,18 @@// Code generated by protoc-gen-go. DO NOT EDIT.// versions:// protoc-gen-go v1.36.11-// protoc v7.34.0+// protoc v5.28.2// source: proto/content.protopackage protoimport (- reflect "reflect"- sync "sync"- unsafe "unsafe"-protoreflect "google.golang.org/protobuf/reflect/protoreflect"protoimpl "google.golang.org/protobuf/runtime/protoimpl"structpb "google.golang.org/protobuf/types/known/structpb"+ reflect "reflect"+ sync "sync"+ unsafe "unsafe")const (