Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
remove A2A service
Antonio Ojeae0a4d86c948e
diff --git a/api/sam.pb.go b/api/sam.pb.goindex 8e606e06..8aa9d233 100644--- a/api/sam.pb.go+++ b/api/sam.pb.go@@ -41,7 +41,6 @@ const (ServiceType_SERVICE_TYPE_UNSPECIFIED ServiceType = 0ServiceType_SERVICE_TYPE_MCP ServiceType = 1ServiceType_SERVICE_TYPE_INFERENCE ServiceType = 2- ServiceType_SERVICE_TYPE_A2A ServiceType = 3)// Enum value maps for ServiceType.@@ -50,13 +49,11 @@ var (0: "SERVICE_TYPE_UNSPECIFIED",1: "SERVICE_TYPE_MCP",2: "SERVICE_TYPE_INFERENCE",- 3: "SERVICE_TYPE_A2A",}ServiceType_value = map[string]int32{"SERVICE_TYPE_UNSPECIFIED": 0,"SERVICE_TYPE_MCP": 1,"SERVICE_TYPE_INFERENCE": 2,- "SERVICE_TYPE_A2A": 3,})@@ -828,12 +825,11 @@ const file_api_sam_proto_rawDesc = "" +"oidcIssuer\x12\x1b\n" +"\tclient_id\x18\x02 \x01(\tR\bclientId\x12\x1a\n" +"\baudience\x18\x03 \x01(\tR\baudience\x12#\n" +- "\rhub_addresses\x18\x04 \x03(\tR\fhubAddresses*s\n" ++ "\rhub_addresses\x18\x04 \x03(\tR\fhubAddresses*]\n" +"\vServiceType\x12\x1c\n" +"\x18SERVICE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n" +"\x10SERVICE_TYPE_MCP\x10\x01\x12\x1a\n" +- "\x16SERVICE_TYPE_INFERENCE\x10\x02\x12\x14\n" +- "\x10SERVICE_TYPE_A2A\x10\x03B\x1bZ\x19github.com/google/sam/apib\x06proto3"+ "\x16SERVICE_TYPE_INFERENCE\x10\x02B\x1bZ\x19github.com/google/sam/apib\x06proto3"var (file_api_sam_proto_rawDescOnce sync.Oncediff --git a/api/sam.proto b/api/sam.protoindex 19a89c96..9b49a9af 100644--- a/api/sam.proto+++ b/api/sam.proto@@ -58,7 +58,6 @@ enum ServiceType {SERVICE_TYPE_UNSPECIFIED = 0;SERVICE_TYPE_MCP = 1;SERVICE_TYPE_INFERENCE = 2;- SERVICE_TYPE_A2A = 3;}message ServiceInfo {diff --git a/cmd/sam-node/service.go b/cmd/sam-node/service.goindex 09bc56b9..43fa22fa 100644--- a/cmd/sam-node/service.go+++ b/cmd/sam-node/service.go@@ -117,8 +117,6 @@ func NewServiceFromRequest(req *api.RegisterServiceRequest) (Service, error) {return &MCPService{baseService: baseService{info: info, backend: req.Backend}}, nilcase api.ServiceType_SERVICE_TYPE_INFERENCE:return &InferenceService{baseService: baseService{info: info, backend: req.Backend}}, nil- case api.ServiceType_SERVICE_TYPE_A2A:- return &A2AService{baseService: baseService{info: info, backend: req.Backend}}, nildefault:return nil, fmt.Errorf("unspecified or unsupported service type: %v", info.Type)}@@ -160,8 +158,6 @@ func serviceTypeToString(t api.ServiceType) (string, error) {return "mcp", nilcase api.ServiceType_SERVICE_TYPE_INFERENCE:return "inference", nil- case api.ServiceType_SERVICE_TYPE_A2A:- return "a2a", nildefault:return "", fmt.Errorf("invalid or unspecified service type")}@@ -173,8 +169,6 @@ func parseServiceType(s string) (api.ServiceType, error) {return api.ServiceType_SERVICE_TYPE_MCP, nilcase "inference":return api.ServiceType_SERVICE_TYPE_INFERENCE, nil- case "a2a":- return api.ServiceType_SERVICE_TYPE_A2A, nildefault:return api.ServiceType_SERVICE_TYPE_UNSPECIFIED, fmt.Errorf("invalid service type: %s", s)}diff --git a/cmd/sam-node/service_test.go b/cmd/sam-node/service_test.goindex 512ea021..6a26c1be 100644--- a/cmd/sam-node/service_test.go+++ b/cmd/sam-node/service_test.go@@ -127,20 +127,6 @@ func TestNewServiceFromRequest_ReturnsInferenceService(t *testing.T) {}}-func TestNewServiceFromRequest_ReturnsA2AService(t *testing.T) {- req := &api.RegisterServiceRequest{- Service: &api.ServiceInfo{Type: api.ServiceType_SERVICE_TYPE_A2A, Name: "x"},- Backend: &api.RegisterServiceRequest_TargetUrl{TargetUrl: "http://example.com"},- }- svc, err := NewServiceFromRequest(req)- if err != nil {- t.Fatalf("NewServiceFromRequest: %v", err)- }- if _, ok := svc.(*A2AService); !ok {- t.Fatalf("got %T, want *A2AService", svc)- }-}-func TestNewServiceFromRequest_UnspecifiedTypeFails(t *testing.T) {req := &api.RegisterServiceRequest{Service: &api.ServiceInfo{Type: api.ServiceType_SERVICE_TYPE_UNSPECIFIED, Name: "x"},diff --git a/cmd/sam-node/sidecar_test.go b/cmd/sam-node/sidecar_test.goindex 5c7160a1..d2dec027 100644--- a/cmd/sam-node/sidecar_test.go+++ b/cmd/sam-node/sidecar_test.go@@ -317,7 +317,6 @@ func TestListLocalServices_TypeFilter(t *testing.T) {{"unspecified returns all", api.ServiceType_SERVICE_TYPE_UNSPECIFIED, 3},{"mcp filter", api.ServiceType_SERVICE_TYPE_MCP, 2},{"inference filter", api.ServiceType_SERVICE_TYPE_INFERENCE, 1},- {"a2a filter (none registered)", api.ServiceType_SERVICE_TYPE_A2A, 0},}for _, tc := range cases {t.Run(tc.name, func(t *testing.T) {