Skip to content

Commit 1f0e144

Browse files
committed
feat: add transport and namespace parameters to Node
1 parent 3186c3e commit 1f0e144

File tree

10 files changed

+296
-97
lines changed

10 files changed

+296
-97
lines changed

src/agentanycast/_generated/agentanycast/v1/a2a_models_pb2.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/agentanycast/_generated/agentanycast/v1/agent_card_pb2.py

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/agentanycast/_generated/agentanycast/v1/common_pb2.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/agentanycast/_generated/agentanycast/v1/federation_pb2.py

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2+
"""Client and server classes corresponding to protobuf-defined services."""
3+
import grpc
4+
5+
from agentanycast.v1 import federation_pb2 as agentanycast_dot_v1_dot_federation__pb2
6+
7+
8+
class FederationServiceStub(object):
9+
"""FederationService enables relay-to-relay skill registry synchronization.
10+
"""
11+
12+
def __init__(self, channel):
13+
"""Constructor.
14+
15+
Args:
16+
channel: A grpc.Channel.
17+
"""
18+
self.SyncRegistrations = channel.unary_unary(
19+
'/agentanycast.v1.FederationService/SyncRegistrations',
20+
request_serializer=agentanycast_dot_v1_dot_federation__pb2.SyncRegistrationsRequest.SerializeToString,
21+
response_deserializer=agentanycast_dot_v1_dot_federation__pb2.SyncRegistrationsResponse.FromString,
22+
_registered_method=True)
23+
self.PushRegistrations = channel.unary_unary(
24+
'/agentanycast.v1.FederationService/PushRegistrations',
25+
request_serializer=agentanycast_dot_v1_dot_federation__pb2.PushRegistrationsRequest.SerializeToString,
26+
response_deserializer=agentanycast_dot_v1_dot_federation__pb2.PushRegistrationsResponse.FromString,
27+
_registered_method=True)
28+
29+
30+
class FederationServiceServicer(object):
31+
"""FederationService enables relay-to-relay skill registry synchronization.
32+
"""
33+
34+
def SyncRegistrations(self, request, context):
35+
"""SyncRegistrations pulls registration updates from a peer relay.
36+
"""
37+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
38+
context.set_details('Method not implemented!')
39+
raise NotImplementedError('Method not implemented!')
40+
41+
def PushRegistrations(self, request, context):
42+
"""PushRegistrations sends local registration changes to a peer relay.
43+
"""
44+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
45+
context.set_details('Method not implemented!')
46+
raise NotImplementedError('Method not implemented!')
47+
48+
49+
def add_FederationServiceServicer_to_server(servicer, server):
50+
rpc_method_handlers = {
51+
'SyncRegistrations': grpc.unary_unary_rpc_method_handler(
52+
servicer.SyncRegistrations,
53+
request_deserializer=agentanycast_dot_v1_dot_federation__pb2.SyncRegistrationsRequest.FromString,
54+
response_serializer=agentanycast_dot_v1_dot_federation__pb2.SyncRegistrationsResponse.SerializeToString,
55+
),
56+
'PushRegistrations': grpc.unary_unary_rpc_method_handler(
57+
servicer.PushRegistrations,
58+
request_deserializer=agentanycast_dot_v1_dot_federation__pb2.PushRegistrationsRequest.FromString,
59+
response_serializer=agentanycast_dot_v1_dot_federation__pb2.PushRegistrationsResponse.SerializeToString,
60+
),
61+
}
62+
generic_handler = grpc.method_handlers_generic_handler(
63+
'agentanycast.v1.FederationService', rpc_method_handlers)
64+
server.add_generic_rpc_handlers((generic_handler,))
65+
server.add_registered_method_handlers('agentanycast.v1.FederationService', rpc_method_handlers)
66+
67+
68+
# This class is part of an EXPERIMENTAL API.
69+
class FederationService(object):
70+
"""FederationService enables relay-to-relay skill registry synchronization.
71+
"""
72+
73+
@staticmethod
74+
def SyncRegistrations(request,
75+
target,
76+
options=(),
77+
channel_credentials=None,
78+
call_credentials=None,
79+
insecure=False,
80+
compression=None,
81+
wait_for_ready=None,
82+
timeout=None,
83+
metadata=None):
84+
return grpc.experimental.unary_unary(
85+
request,
86+
target,
87+
'/agentanycast.v1.FederationService/SyncRegistrations',
88+
agentanycast_dot_v1_dot_federation__pb2.SyncRegistrationsRequest.SerializeToString,
89+
agentanycast_dot_v1_dot_federation__pb2.SyncRegistrationsResponse.FromString,
90+
options,
91+
channel_credentials,
92+
insecure,
93+
call_credentials,
94+
compression,
95+
wait_for_ready,
96+
timeout,
97+
metadata,
98+
_registered_method=True)
99+
100+
@staticmethod
101+
def PushRegistrations(request,
102+
target,
103+
options=(),
104+
channel_credentials=None,
105+
call_credentials=None,
106+
insecure=False,
107+
compression=None,
108+
wait_for_ready=None,
109+
timeout=None,
110+
metadata=None):
111+
return grpc.experimental.unary_unary(
112+
request,
113+
target,
114+
'/agentanycast.v1.FederationService/PushRegistrations',
115+
agentanycast_dot_v1_dot_federation__pb2.PushRegistrationsRequest.SerializeToString,
116+
agentanycast_dot_v1_dot_federation__pb2.PushRegistrationsResponse.FromString,
117+
options,
118+
channel_credentials,
119+
insecure,
120+
call_credentials,
121+
compression,
122+
wait_for_ready,
123+
timeout,
124+
metadata,
125+
_registered_method=True)

0 commit comments

Comments
 (0)