agentic-mesh-protocol 0.2.3.dev4__py3-none-any.whl → 1.0.0.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentic_mesh_protocol/__version__.py +1 -1
- agentic_mesh_protocol/gateway/__init__.py +0 -0
- agentic_mesh_protocol/gateway/v1/__init__.py +0 -0
- agentic_mesh_protocol/gateway/v1/gateway_pb2.py +110 -0
- agentic_mesh_protocol/gateway/v1/gateway_pb2.pyi +216 -0
- agentic_mesh_protocol/gateway/v1/gateway_pb2_grpc.py +4 -0
- agentic_mesh_protocol/gateway/v1/gateway_service_pb2.py +38 -0
- agentic_mesh_protocol/gateway/v1/gateway_service_pb2.pyi +5 -0
- agentic_mesh_protocol/gateway/v1/gateway_service_pb2_grpc.py +248 -0
- {agentic_mesh_protocol-0.2.3.dev4.dist-info → agentic_mesh_protocol-1.0.0.dev0.dist-info}/METADATA +6 -7
- {agentic_mesh_protocol-0.2.3.dev4.dist-info → agentic_mesh_protocol-1.0.0.dev0.dist-info}/RECORD +14 -6
- {agentic_mesh_protocol-0.2.3.dev4.dist-info → agentic_mesh_protocol-1.0.0.dev0.dist-info}/WHEEL +1 -1
- {agentic_mesh_protocol-0.2.3.dev4.dist-info → agentic_mesh_protocol-1.0.0.dev0.dist-info}/licenses/LICENSE +0 -0
- {agentic_mesh_protocol-0.2.3.dev4.dist-info → agentic_mesh_protocol-1.0.0.dev0.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: agentic_mesh_protocol/gateway/v1/gateway.proto
|
|
5
|
+
# Protobuf Python Version: 6.33.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
33,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'agentic_mesh_protocol/gateway/v1/gateway.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
27
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.agentic_mesh_protocol/gateway/v1/gateway.proto\x12 agentic_mesh_protocol.gateway.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd2\x01\n\x12StartStreamRequest\x12\x1f\n\x07task_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x06taskId\x12\x35\n\x05input\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x06\xbaH\x03\xc8\x01\x01R\x05input\x12.\n\x08setup_id\x18\x03 \x01(\tB\x13\xbaH\x10r\x0b\x10\x01:\x07setups:\xc8\x01\x01R\x07setupId\x12\x34\n\nmission_id\x18\x04 \x01(\tB\x15\xbaH\x12r\r\x10\x01:\tmissions:\xc8\x01\x01R\tmissionId\"J\n\x13StartStreamResponse\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\x12\x1a\n\x08\x61\x63\x63\x65pted\x18\x02 \x01(\x08R\x08\x61\x63\x63\x65pted\"\xbd\x01\n\x14ProduceStreamRequest\x12I\n\x04init\x18\x01 \x01(\x0b\x32\x33.agentic_mesh_protocol.gateway.v1.ProduceStreamInitH\x00R\x04init\x12O\n\x06output\x18\x02 \x01(\x0b\x32\x35.agentic_mesh_protocol.gateway.v1.ProduceStreamOutputH\x00R\x06outputB\t\n\x07payload\"4\n\x11ProduceStreamInit\x12\x1f\n\x07task_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x06taskId\"c\n\x13ProduceStreamOutput\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\x12\x33\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x06\xbaH\x03\xc8\x01\x01R\x04\x64\x61ta\"\xb7\x01\n\x15ProduceStreamResponse\x12I\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x33.agentic_mesh_protocol.gateway.v1.ProduceStreamDataH\x00R\x04\x64\x61ta\x12H\n\x06status\x18\x02 \x01(\x0b\x32..agentic_mesh_protocol.gateway.v1.StreamStatusH\x00R\x06statusB\t\n\x07payload\"Y\n\x11ProduceStreamData\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x04\x64\x61ta\"\xb7\x01\n\x14\x43onsumeStreamRequest\x12I\n\x04init\x18\x01 \x01(\x0b\x32\x33.agentic_mesh_protocol.gateway.v1.ConsumeStreamInitH\x00R\x04init\x12I\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x33.agentic_mesh_protocol.gateway.v1.ConsumeStreamDataH\x00R\x04\x64\x61taB\t\n\x07payload\"O\n\x11\x43onsumeStreamInit\x12\x1f\n\x07task_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x06taskId\x12\x19\n\x08\x66rom_seq\x18\x02 \x01(\x04R\x07\x66romSeq\"a\n\x11\x43onsumeStreamData\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\x12\x33\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x06\xbaH\x03\xc8\x01\x01R\x04\x64\x61ta\"\xca\x02\n\x0fGatewayResponse\x12H\n\x06output\x18\x01 \x01(\x0b\x32..agentic_mesh_protocol.gateway.v1.StreamOutputH\x00R\x06output\x12H\n\x06status\x18\x02 \x01(\x0b\x32..agentic_mesh_protocol.gateway.v1.StreamStatusH\x00R\x06status\x12\x45\n\x05\x65rror\x18\x03 \x01(\x0b\x32-.agentic_mesh_protocol.gateway.v1.StreamErrorH\x00R\x05\x65rror\x12Q\n\theartbeat\x18\x04 \x01(\x0b\x32\x31.agentic_mesh_protocol.gateway.v1.ServerHeartbeatH\x00R\theartbeatB\t\n\x07payload\"\x86\x01\n\x13\x43lientSignalRequest\x12\x1f\n\x07task_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x06taskId\x12N\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32..agentic_mesh_protocol.gateway.v1.SignalActionB\x06\xbaH\x03\xc8\x01\x01R\x06\x61\x63tion\"I\n\x14\x43lientSignalResponse\x12\x18\n\x07success\x18\x01 \x01(\x08R\x07success\x12\x17\n\x07task_id\x18\x02 \x01(\tR\x06taskId\"\xbf\x01\n\x0cStreamOutput\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId\x12\x33\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x06\xbaH\x03\xc8\x01\x01R\x04\x64\x61ta\x12\x10\n\x03seq\x18\x04 \x01(\x04R\x03seq\x12\x38\n\ttimestamp\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\"\xae\x01\n\x0cStreamStatus\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId\x12\x43\n\x05state\x18\x03 \x01(\x0e\x32-.agentic_mesh_protocol.gateway.v1.StreamStateR\x05state\x12\x1d\n\x07message\x18\x04 \x01(\tH\x00R\x07message\x88\x01\x01\x42\n\n\x08_message\"{\n\x0bStreamError\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\x12\x1a\n\x06job_id\x18\x02 \x01(\tH\x00R\x05jobId\x88\x01\x01\x12\x12\n\x04\x63ode\x18\x03 \x01(\x05R\x04\x63ode\x12\x18\n\x07message\x18\x04 \x01(\tR\x07messageB\t\n\x07_job_id\"d\n\x0fServerHeartbeat\x12\x17\n\x07task_id\x18\x01 \x01(\tR\x06taskId\x12\x38\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\"\xf9\x02\n\nCheckpoint\x12\x1f\n\x07task_id\x18\x01 \x01(\tB\x06\xbaH\x03\xc8\x01\x01R\x06taskId\x12\x32\n\nmission_id\x18\x02 \x01(\tB\x13\xbaH\x10r\x0b:\tmissions:\xc8\x01\x01R\tmissionId\x12,\n\x08setup_id\x18\x03 \x01(\tB\x11\xbaH\x0er\t:\x07setups:\xc8\x01\x01R\x07setupId\x12\x43\n\x10setup_version_id\x18\x04 \x01(\tB\x19\xbaH\x16r\x11:\x0fsetup_versions:\xc8\x01\x01R\x0esetupVersionId\x12\x16\n\x06status\x18\x05 \x01(\tR\x06status\x12\x19\n\x08last_seq\x18\x06 \x01(\x04R\x07lastSeq\x12-\n\x05state\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructR\x05state\x12\x41\n\ncreated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x06\xbaH\x03\xc8\x01\x01R\tcreatedAt*`\n\x0cSignalAction\x12\x1d\n\x19SIGNAL_ACTION_UNSPECIFIED\x10\x00\x12\x18\n\x14SIGNAL_ACTION_CANCEL\x10\x01\x12\x17\n\x13SIGNAL_ACTION_PAUSE\x10\x02*\xe6\x01\n\x0bStreamState\x12\x1c\n\x18STREAM_STATE_UNSPECIFIED\x10\x00\x12\x19\n\x15STREAM_STATE_STARTING\x10\x01\x12\x18\n\x14STREAM_STATE_RUNNING\x10\x02\x12\x18\n\x14STREAM_STATE_PAUSING\x10\x03\x12\x19\n\x15STREAM_STATE_STOPPING\x10\x04\x12\x1a\n\x16STREAM_STATE_COMPLETED\x10\x05\x12\x17\n\x13STREAM_STATE_FAILED\x10\x06\x12\x1a\n\x16STREAM_STATE_CANCELLED\x10\x07\x42\xce\x01\n$com.agentic_mesh_protocol.gateway.v1B\x0cGatewayProtoP\x01\xa2\x02\x03\x41GX\xaa\x02\x1e\x41genticMeshProtocol.Gateway.V1\xca\x02\x1e\x41genticMeshProtocol\\Gateway\\V1\xe2\x02*AgenticMeshProtocol\\Gateway\\V1\\GPBMetadata\xea\x02 AgenticMeshProtocol::Gateway::V1b\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'agentic_mesh_protocol.gateway.v1.gateway_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n$com.agentic_mesh_protocol.gateway.v1B\014GatewayProtoP\001\242\002\003AGX\252\002\036AgenticMeshProtocol.Gateway.V1\312\002\036AgenticMeshProtocol\\Gateway\\V1\342\002*AgenticMeshProtocol\\Gateway\\V1\\GPBMetadata\352\002 AgenticMeshProtocol::Gateway::V1'
|
|
38
|
+
_globals['_STARTSTREAMREQUEST'].fields_by_name['task_id']._loaded_options = None
|
|
39
|
+
_globals['_STARTSTREAMREQUEST'].fields_by_name['task_id']._serialized_options = b'\272H\003\310\001\001'
|
|
40
|
+
_globals['_STARTSTREAMREQUEST'].fields_by_name['input']._loaded_options = None
|
|
41
|
+
_globals['_STARTSTREAMREQUEST'].fields_by_name['input']._serialized_options = b'\272H\003\310\001\001'
|
|
42
|
+
_globals['_STARTSTREAMREQUEST'].fields_by_name['setup_id']._loaded_options = None
|
|
43
|
+
_globals['_STARTSTREAMREQUEST'].fields_by_name['setup_id']._serialized_options = b'\272H\020r\013\020\001:\007setups:\310\001\001'
|
|
44
|
+
_globals['_STARTSTREAMREQUEST'].fields_by_name['mission_id']._loaded_options = None
|
|
45
|
+
_globals['_STARTSTREAMREQUEST'].fields_by_name['mission_id']._serialized_options = b'\272H\022r\r\020\001:\tmissions:\310\001\001'
|
|
46
|
+
_globals['_PRODUCESTREAMINIT'].fields_by_name['task_id']._loaded_options = None
|
|
47
|
+
_globals['_PRODUCESTREAMINIT'].fields_by_name['task_id']._serialized_options = b'\272H\003\310\001\001'
|
|
48
|
+
_globals['_PRODUCESTREAMOUTPUT'].fields_by_name['data']._loaded_options = None
|
|
49
|
+
_globals['_PRODUCESTREAMOUTPUT'].fields_by_name['data']._serialized_options = b'\272H\003\310\001\001'
|
|
50
|
+
_globals['_CONSUMESTREAMINIT'].fields_by_name['task_id']._loaded_options = None
|
|
51
|
+
_globals['_CONSUMESTREAMINIT'].fields_by_name['task_id']._serialized_options = b'\272H\003\310\001\001'
|
|
52
|
+
_globals['_CONSUMESTREAMDATA'].fields_by_name['data']._loaded_options = None
|
|
53
|
+
_globals['_CONSUMESTREAMDATA'].fields_by_name['data']._serialized_options = b'\272H\003\310\001\001'
|
|
54
|
+
_globals['_CLIENTSIGNALREQUEST'].fields_by_name['task_id']._loaded_options = None
|
|
55
|
+
_globals['_CLIENTSIGNALREQUEST'].fields_by_name['task_id']._serialized_options = b'\272H\003\310\001\001'
|
|
56
|
+
_globals['_CLIENTSIGNALREQUEST'].fields_by_name['action']._loaded_options = None
|
|
57
|
+
_globals['_CLIENTSIGNALREQUEST'].fields_by_name['action']._serialized_options = b'\272H\003\310\001\001'
|
|
58
|
+
_globals['_STREAMOUTPUT'].fields_by_name['data']._loaded_options = None
|
|
59
|
+
_globals['_STREAMOUTPUT'].fields_by_name['data']._serialized_options = b'\272H\003\310\001\001'
|
|
60
|
+
_globals['_CHECKPOINT'].fields_by_name['task_id']._loaded_options = None
|
|
61
|
+
_globals['_CHECKPOINT'].fields_by_name['task_id']._serialized_options = b'\272H\003\310\001\001'
|
|
62
|
+
_globals['_CHECKPOINT'].fields_by_name['mission_id']._loaded_options = None
|
|
63
|
+
_globals['_CHECKPOINT'].fields_by_name['mission_id']._serialized_options = b'\272H\020r\013:\tmissions:\310\001\001'
|
|
64
|
+
_globals['_CHECKPOINT'].fields_by_name['setup_id']._loaded_options = None
|
|
65
|
+
_globals['_CHECKPOINT'].fields_by_name['setup_id']._serialized_options = b'\272H\016r\t:\007setups:\310\001\001'
|
|
66
|
+
_globals['_CHECKPOINT'].fields_by_name['setup_version_id']._loaded_options = None
|
|
67
|
+
_globals['_CHECKPOINT'].fields_by_name['setup_version_id']._serialized_options = b'\272H\026r\021:\017setup_versions:\310\001\001'
|
|
68
|
+
_globals['_CHECKPOINT'].fields_by_name['created_at']._loaded_options = None
|
|
69
|
+
_globals['_CHECKPOINT'].fields_by_name['created_at']._serialized_options = b'\272H\003\310\001\001'
|
|
70
|
+
_globals['_SIGNALACTION']._serialized_start=2978
|
|
71
|
+
_globals['_SIGNALACTION']._serialized_end=3074
|
|
72
|
+
_globals['_STREAMSTATE']._serialized_start=3077
|
|
73
|
+
_globals['_STREAMSTATE']._serialized_end=3307
|
|
74
|
+
_globals['_STARTSTREAMREQUEST']._serialized_start=177
|
|
75
|
+
_globals['_STARTSTREAMREQUEST']._serialized_end=387
|
|
76
|
+
_globals['_STARTSTREAMRESPONSE']._serialized_start=389
|
|
77
|
+
_globals['_STARTSTREAMRESPONSE']._serialized_end=463
|
|
78
|
+
_globals['_PRODUCESTREAMREQUEST']._serialized_start=466
|
|
79
|
+
_globals['_PRODUCESTREAMREQUEST']._serialized_end=655
|
|
80
|
+
_globals['_PRODUCESTREAMINIT']._serialized_start=657
|
|
81
|
+
_globals['_PRODUCESTREAMINIT']._serialized_end=709
|
|
82
|
+
_globals['_PRODUCESTREAMOUTPUT']._serialized_start=711
|
|
83
|
+
_globals['_PRODUCESTREAMOUTPUT']._serialized_end=810
|
|
84
|
+
_globals['_PRODUCESTREAMRESPONSE']._serialized_start=813
|
|
85
|
+
_globals['_PRODUCESTREAMRESPONSE']._serialized_end=996
|
|
86
|
+
_globals['_PRODUCESTREAMDATA']._serialized_start=998
|
|
87
|
+
_globals['_PRODUCESTREAMDATA']._serialized_end=1087
|
|
88
|
+
_globals['_CONSUMESTREAMREQUEST']._serialized_start=1090
|
|
89
|
+
_globals['_CONSUMESTREAMREQUEST']._serialized_end=1273
|
|
90
|
+
_globals['_CONSUMESTREAMINIT']._serialized_start=1275
|
|
91
|
+
_globals['_CONSUMESTREAMINIT']._serialized_end=1354
|
|
92
|
+
_globals['_CONSUMESTREAMDATA']._serialized_start=1356
|
|
93
|
+
_globals['_CONSUMESTREAMDATA']._serialized_end=1453
|
|
94
|
+
_globals['_GATEWAYRESPONSE']._serialized_start=1456
|
|
95
|
+
_globals['_GATEWAYRESPONSE']._serialized_end=1786
|
|
96
|
+
_globals['_CLIENTSIGNALREQUEST']._serialized_start=1789
|
|
97
|
+
_globals['_CLIENTSIGNALREQUEST']._serialized_end=1923
|
|
98
|
+
_globals['_CLIENTSIGNALRESPONSE']._serialized_start=1925
|
|
99
|
+
_globals['_CLIENTSIGNALRESPONSE']._serialized_end=1998
|
|
100
|
+
_globals['_STREAMOUTPUT']._serialized_start=2001
|
|
101
|
+
_globals['_STREAMOUTPUT']._serialized_end=2192
|
|
102
|
+
_globals['_STREAMSTATUS']._serialized_start=2195
|
|
103
|
+
_globals['_STREAMSTATUS']._serialized_end=2369
|
|
104
|
+
_globals['_STREAMERROR']._serialized_start=2371
|
|
105
|
+
_globals['_STREAMERROR']._serialized_end=2494
|
|
106
|
+
_globals['_SERVERHEARTBEAT']._serialized_start=2496
|
|
107
|
+
_globals['_SERVERHEARTBEAT']._serialized_end=2596
|
|
108
|
+
_globals['_CHECKPOINT']._serialized_start=2599
|
|
109
|
+
_globals['_CHECKPOINT']._serialized_end=2976
|
|
110
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
4
|
+
from google.protobuf import struct_pb2 as _struct_pb2
|
|
5
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
6
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import message as _message
|
|
9
|
+
from collections.abc import Mapping as _Mapping
|
|
10
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
11
|
+
|
|
12
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
13
|
+
|
|
14
|
+
class SignalAction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
15
|
+
__slots__ = ()
|
|
16
|
+
SIGNAL_ACTION_UNSPECIFIED: _ClassVar[SignalAction]
|
|
17
|
+
SIGNAL_ACTION_CANCEL: _ClassVar[SignalAction]
|
|
18
|
+
SIGNAL_ACTION_PAUSE: _ClassVar[SignalAction]
|
|
19
|
+
|
|
20
|
+
class StreamState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
21
|
+
__slots__ = ()
|
|
22
|
+
STREAM_STATE_UNSPECIFIED: _ClassVar[StreamState]
|
|
23
|
+
STREAM_STATE_STARTING: _ClassVar[StreamState]
|
|
24
|
+
STREAM_STATE_RUNNING: _ClassVar[StreamState]
|
|
25
|
+
STREAM_STATE_PAUSING: _ClassVar[StreamState]
|
|
26
|
+
STREAM_STATE_STOPPING: _ClassVar[StreamState]
|
|
27
|
+
STREAM_STATE_COMPLETED: _ClassVar[StreamState]
|
|
28
|
+
STREAM_STATE_FAILED: _ClassVar[StreamState]
|
|
29
|
+
STREAM_STATE_CANCELLED: _ClassVar[StreamState]
|
|
30
|
+
SIGNAL_ACTION_UNSPECIFIED: SignalAction
|
|
31
|
+
SIGNAL_ACTION_CANCEL: SignalAction
|
|
32
|
+
SIGNAL_ACTION_PAUSE: SignalAction
|
|
33
|
+
STREAM_STATE_UNSPECIFIED: StreamState
|
|
34
|
+
STREAM_STATE_STARTING: StreamState
|
|
35
|
+
STREAM_STATE_RUNNING: StreamState
|
|
36
|
+
STREAM_STATE_PAUSING: StreamState
|
|
37
|
+
STREAM_STATE_STOPPING: StreamState
|
|
38
|
+
STREAM_STATE_COMPLETED: StreamState
|
|
39
|
+
STREAM_STATE_FAILED: StreamState
|
|
40
|
+
STREAM_STATE_CANCELLED: StreamState
|
|
41
|
+
|
|
42
|
+
class StartStreamRequest(_message.Message):
|
|
43
|
+
__slots__ = ()
|
|
44
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
INPUT_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
SETUP_ID_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
MISSION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
task_id: str
|
|
49
|
+
input: _struct_pb2.Struct
|
|
50
|
+
setup_id: str
|
|
51
|
+
mission_id: str
|
|
52
|
+
def __init__(self, task_id: _Optional[str] = ..., input: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., setup_id: _Optional[str] = ..., mission_id: _Optional[str] = ...) -> None: ...
|
|
53
|
+
|
|
54
|
+
class StartStreamResponse(_message.Message):
|
|
55
|
+
__slots__ = ()
|
|
56
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
ACCEPTED_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
task_id: str
|
|
59
|
+
accepted: bool
|
|
60
|
+
def __init__(self, task_id: _Optional[str] = ..., accepted: _Optional[bool] = ...) -> None: ...
|
|
61
|
+
|
|
62
|
+
class ProduceStreamRequest(_message.Message):
|
|
63
|
+
__slots__ = ()
|
|
64
|
+
INIT_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
OUTPUT_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
init: ProduceStreamInit
|
|
67
|
+
output: ProduceStreamOutput
|
|
68
|
+
def __init__(self, init: _Optional[_Union[ProduceStreamInit, _Mapping]] = ..., output: _Optional[_Union[ProduceStreamOutput, _Mapping]] = ...) -> None: ...
|
|
69
|
+
|
|
70
|
+
class ProduceStreamInit(_message.Message):
|
|
71
|
+
__slots__ = ()
|
|
72
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
task_id: str
|
|
74
|
+
def __init__(self, task_id: _Optional[str] = ...) -> None: ...
|
|
75
|
+
|
|
76
|
+
class ProduceStreamOutput(_message.Message):
|
|
77
|
+
__slots__ = ()
|
|
78
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
79
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
task_id: str
|
|
81
|
+
data: _struct_pb2.Struct
|
|
82
|
+
def __init__(self, task_id: _Optional[str] = ..., data: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ...
|
|
83
|
+
|
|
84
|
+
class ProduceStreamResponse(_message.Message):
|
|
85
|
+
__slots__ = ()
|
|
86
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
87
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
88
|
+
data: ProduceStreamData
|
|
89
|
+
status: StreamStatus
|
|
90
|
+
def __init__(self, data: _Optional[_Union[ProduceStreamData, _Mapping]] = ..., status: _Optional[_Union[StreamStatus, _Mapping]] = ...) -> None: ...
|
|
91
|
+
|
|
92
|
+
class ProduceStreamData(_message.Message):
|
|
93
|
+
__slots__ = ()
|
|
94
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
95
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
+
task_id: str
|
|
97
|
+
data: _struct_pb2.Struct
|
|
98
|
+
def __init__(self, task_id: _Optional[str] = ..., data: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ...
|
|
99
|
+
|
|
100
|
+
class ConsumeStreamRequest(_message.Message):
|
|
101
|
+
__slots__ = ()
|
|
102
|
+
INIT_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
init: ConsumeStreamInit
|
|
105
|
+
data: ConsumeStreamData
|
|
106
|
+
def __init__(self, init: _Optional[_Union[ConsumeStreamInit, _Mapping]] = ..., data: _Optional[_Union[ConsumeStreamData, _Mapping]] = ...) -> None: ...
|
|
107
|
+
|
|
108
|
+
class ConsumeStreamInit(_message.Message):
|
|
109
|
+
__slots__ = ()
|
|
110
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
FROM_SEQ_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
task_id: str
|
|
113
|
+
from_seq: int
|
|
114
|
+
def __init__(self, task_id: _Optional[str] = ..., from_seq: _Optional[int] = ...) -> None: ...
|
|
115
|
+
|
|
116
|
+
class ConsumeStreamData(_message.Message):
|
|
117
|
+
__slots__ = ()
|
|
118
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
119
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
120
|
+
task_id: str
|
|
121
|
+
data: _struct_pb2.Struct
|
|
122
|
+
def __init__(self, task_id: _Optional[str] = ..., data: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ...
|
|
123
|
+
|
|
124
|
+
class GatewayResponse(_message.Message):
|
|
125
|
+
__slots__ = ()
|
|
126
|
+
OUTPUT_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
128
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
129
|
+
HEARTBEAT_FIELD_NUMBER: _ClassVar[int]
|
|
130
|
+
output: StreamOutput
|
|
131
|
+
status: StreamStatus
|
|
132
|
+
error: StreamError
|
|
133
|
+
heartbeat: ServerHeartbeat
|
|
134
|
+
def __init__(self, output: _Optional[_Union[StreamOutput, _Mapping]] = ..., status: _Optional[_Union[StreamStatus, _Mapping]] = ..., error: _Optional[_Union[StreamError, _Mapping]] = ..., heartbeat: _Optional[_Union[ServerHeartbeat, _Mapping]] = ...) -> None: ...
|
|
135
|
+
|
|
136
|
+
class ClientSignalRequest(_message.Message):
|
|
137
|
+
__slots__ = ()
|
|
138
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
139
|
+
ACTION_FIELD_NUMBER: _ClassVar[int]
|
|
140
|
+
task_id: str
|
|
141
|
+
action: SignalAction
|
|
142
|
+
def __init__(self, task_id: _Optional[str] = ..., action: _Optional[_Union[SignalAction, str]] = ...) -> None: ...
|
|
143
|
+
|
|
144
|
+
class ClientSignalResponse(_message.Message):
|
|
145
|
+
__slots__ = ()
|
|
146
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
|
147
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
148
|
+
success: bool
|
|
149
|
+
task_id: str
|
|
150
|
+
def __init__(self, success: _Optional[bool] = ..., task_id: _Optional[str] = ...) -> None: ...
|
|
151
|
+
|
|
152
|
+
class StreamOutput(_message.Message):
|
|
153
|
+
__slots__ = ()
|
|
154
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
155
|
+
JOB_ID_FIELD_NUMBER: _ClassVar[int]
|
|
156
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
157
|
+
SEQ_FIELD_NUMBER: _ClassVar[int]
|
|
158
|
+
TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
159
|
+
task_id: str
|
|
160
|
+
job_id: str
|
|
161
|
+
data: _struct_pb2.Struct
|
|
162
|
+
seq: int
|
|
163
|
+
timestamp: _timestamp_pb2.Timestamp
|
|
164
|
+
def __init__(self, task_id: _Optional[str] = ..., job_id: _Optional[str] = ..., data: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., seq: _Optional[int] = ..., timestamp: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
165
|
+
|
|
166
|
+
class StreamStatus(_message.Message):
|
|
167
|
+
__slots__ = ()
|
|
168
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
169
|
+
JOB_ID_FIELD_NUMBER: _ClassVar[int]
|
|
170
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
171
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
172
|
+
task_id: str
|
|
173
|
+
job_id: str
|
|
174
|
+
state: StreamState
|
|
175
|
+
message: str
|
|
176
|
+
def __init__(self, task_id: _Optional[str] = ..., job_id: _Optional[str] = ..., state: _Optional[_Union[StreamState, str]] = ..., message: _Optional[str] = ...) -> None: ...
|
|
177
|
+
|
|
178
|
+
class StreamError(_message.Message):
|
|
179
|
+
__slots__ = ()
|
|
180
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
181
|
+
JOB_ID_FIELD_NUMBER: _ClassVar[int]
|
|
182
|
+
CODE_FIELD_NUMBER: _ClassVar[int]
|
|
183
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
184
|
+
task_id: str
|
|
185
|
+
job_id: str
|
|
186
|
+
code: int
|
|
187
|
+
message: str
|
|
188
|
+
def __init__(self, task_id: _Optional[str] = ..., job_id: _Optional[str] = ..., code: _Optional[int] = ..., message: _Optional[str] = ...) -> None: ...
|
|
189
|
+
|
|
190
|
+
class ServerHeartbeat(_message.Message):
|
|
191
|
+
__slots__ = ()
|
|
192
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
193
|
+
TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
194
|
+
task_id: str
|
|
195
|
+
timestamp: _timestamp_pb2.Timestamp
|
|
196
|
+
def __init__(self, task_id: _Optional[str] = ..., timestamp: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
197
|
+
|
|
198
|
+
class Checkpoint(_message.Message):
|
|
199
|
+
__slots__ = ()
|
|
200
|
+
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
|
201
|
+
MISSION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
202
|
+
SETUP_ID_FIELD_NUMBER: _ClassVar[int]
|
|
203
|
+
SETUP_VERSION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
204
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
205
|
+
LAST_SEQ_FIELD_NUMBER: _ClassVar[int]
|
|
206
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
207
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
208
|
+
task_id: str
|
|
209
|
+
mission_id: str
|
|
210
|
+
setup_id: str
|
|
211
|
+
setup_version_id: str
|
|
212
|
+
status: str
|
|
213
|
+
last_seq: int
|
|
214
|
+
state: _struct_pb2.Struct
|
|
215
|
+
created_at: _timestamp_pb2.Timestamp
|
|
216
|
+
def __init__(self, task_id: _Optional[str] = ..., mission_id: _Optional[str] = ..., setup_id: _Optional[str] = ..., setup_version_id: _Optional[str] = ..., status: _Optional[str] = ..., last_seq: _Optional[int] = ..., state: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: agentic_mesh_protocol/gateway/v1/gateway_service.proto
|
|
5
|
+
# Protobuf Python Version: 6.33.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
33,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'agentic_mesh_protocol/gateway/v1/gateway_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from agentic_mesh_protocol.gateway.v1 import gateway_pb2 as agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6agentic_mesh_protocol/gateway/v1/gateway_service.proto\x12 agentic_mesh_protocol.gateway.v1\x1a.agentic_mesh_protocol/gateway/v1/gateway.proto2\x90\x04\n\x0eGatewayService\x12z\n\x0bStartStream\x12\x34.agentic_mesh_protocol.gateway.v1.StartStreamRequest\x1a\x35.agentic_mesh_protocol.gateway.v1.StartStreamResponse\x12\x84\x01\n\rProduceStream\x12\x36.agentic_mesh_protocol.gateway.v1.ProduceStreamRequest\x1a\x37.agentic_mesh_protocol.gateway.v1.ProduceStreamResponse(\x01\x30\x01\x12~\n\rConsumeStream\x12\x36.agentic_mesh_protocol.gateway.v1.ConsumeStreamRequest\x1a\x31.agentic_mesh_protocol.gateway.v1.GatewayResponse(\x01\x30\x01\x12{\n\nSendSignal\x12\x35.agentic_mesh_protocol.gateway.v1.ClientSignalRequest\x1a\x36.agentic_mesh_protocol.gateway.v1.ClientSignalResponseB\xd5\x01\n$com.agentic_mesh_protocol.gateway.v1B\x13GatewayServiceProtoP\x01\xa2\x02\x03\x41GX\xaa\x02\x1e\x41genticMeshProtocol.Gateway.V1\xca\x02\x1e\x41genticMeshProtocol\\Gateway\\V1\xe2\x02*AgenticMeshProtocol\\Gateway\\V1\\GPBMetadata\xea\x02 AgenticMeshProtocol::Gateway::V1b\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'agentic_mesh_protocol.gateway.v1.gateway_service_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n$com.agentic_mesh_protocol.gateway.v1B\023GatewayServiceProtoP\001\242\002\003AGX\252\002\036AgenticMeshProtocol.Gateway.V1\312\002\036AgenticMeshProtocol\\Gateway\\V1\342\002*AgenticMeshProtocol\\Gateway\\V1\\GPBMetadata\352\002 AgenticMeshProtocol::Gateway::V1'
|
|
36
|
+
_globals['_GATEWAYSERVICE']._serialized_start=141
|
|
37
|
+
_globals['_GATEWAYSERVICE']._serialized_end=669
|
|
38
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,248 @@
|
|
|
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 agentic_mesh_protocol.gateway.v1 import gateway_pb2 as agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GatewayServiceStub(object):
|
|
9
|
+
"""GatewayService
|
|
10
|
+
Central broker for module-to-module communication with full isolation.
|
|
11
|
+
Modules only talk to the Gateway + Redis — never to each other directly.
|
|
12
|
+
|
|
13
|
+
Flow:
|
|
14
|
+
1. Module B → StartStream → Gateway routes to Module A → ACK
|
|
15
|
+
2. Module A → ProduceStream (BiDi) → Gateway → output to Redis
|
|
16
|
+
3. Module B → ConsumeStream (BiDi) → Gateway → reads from Redis, sends data back
|
|
17
|
+
4. SendSignal → Redis pub/sub → Module A (out of band)
|
|
18
|
+
|
|
19
|
+
Gateway injects ModuleStartInfo as first entry in the Redis output stream.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
def __init__(self, channel):
|
|
23
|
+
"""Constructor.
|
|
24
|
+
|
|
25
|
+
Args:
|
|
26
|
+
channel: A grpc.Channel.
|
|
27
|
+
"""
|
|
28
|
+
self.StartStream = channel.unary_unary(
|
|
29
|
+
'/agentic_mesh_protocol.gateway.v1.GatewayService/StartStream',
|
|
30
|
+
request_serializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.StartStreamRequest.SerializeToString,
|
|
31
|
+
response_deserializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.StartStreamResponse.FromString,
|
|
32
|
+
_registered_method=True)
|
|
33
|
+
self.ProduceStream = channel.stream_stream(
|
|
34
|
+
'/agentic_mesh_protocol.gateway.v1.GatewayService/ProduceStream',
|
|
35
|
+
request_serializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ProduceStreamRequest.SerializeToString,
|
|
36
|
+
response_deserializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ProduceStreamResponse.FromString,
|
|
37
|
+
_registered_method=True)
|
|
38
|
+
self.ConsumeStream = channel.stream_stream(
|
|
39
|
+
'/agentic_mesh_protocol.gateway.v1.GatewayService/ConsumeStream',
|
|
40
|
+
request_serializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ConsumeStreamRequest.SerializeToString,
|
|
41
|
+
response_deserializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.GatewayResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
self.SendSignal = channel.unary_unary(
|
|
44
|
+
'/agentic_mesh_protocol.gateway.v1.GatewayService/SendSignal',
|
|
45
|
+
request_serializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ClientSignalRequest.SerializeToString,
|
|
46
|
+
response_deserializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ClientSignalResponse.FromString,
|
|
47
|
+
_registered_method=True)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class GatewayServiceServicer(object):
|
|
51
|
+
"""GatewayService
|
|
52
|
+
Central broker for module-to-module communication with full isolation.
|
|
53
|
+
Modules only talk to the Gateway + Redis — never to each other directly.
|
|
54
|
+
|
|
55
|
+
Flow:
|
|
56
|
+
1. Module B → StartStream → Gateway routes to Module A → ACK
|
|
57
|
+
2. Module A → ProduceStream (BiDi) → Gateway → output to Redis
|
|
58
|
+
3. Module B → ConsumeStream (BiDi) → Gateway → reads from Redis, sends data back
|
|
59
|
+
4. SendSignal → Redis pub/sub → Module A (out of band)
|
|
60
|
+
|
|
61
|
+
Gateway injects ModuleStartInfo as first entry in the Redis output stream.
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
def StartStream(self, request, context):
|
|
65
|
+
"""StartStream: Module B requests execution of Module A.
|
|
66
|
+
Returns ACK + task_id immediately. Module A starts in background.
|
|
67
|
+
"""
|
|
68
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
69
|
+
context.set_details('Method not implemented!')
|
|
70
|
+
raise NotImplementedError('Method not implemented!')
|
|
71
|
+
|
|
72
|
+
def ProduceStream(self, request_iterator, context):
|
|
73
|
+
"""ProduceStream: Module A connects BiDi to send output and receive input.
|
|
74
|
+
Module A sends output chunks. Gateway persists to Redis Streams.
|
|
75
|
+
Gateway can forward Module B's data to Module A via this stream.
|
|
76
|
+
"""
|
|
77
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
78
|
+
context.set_details('Method not implemented!')
|
|
79
|
+
raise NotImplementedError('Method not implemented!')
|
|
80
|
+
|
|
81
|
+
def ConsumeStream(self, request_iterator, context):
|
|
82
|
+
"""ConsumeStream: Module B connects BiDi to read output and send data.
|
|
83
|
+
Gateway reads Module A's output from Redis Streams and forwards to B.
|
|
84
|
+
Module B can send data which Gateway persists to Redis for Module A.
|
|
85
|
+
"""
|
|
86
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
87
|
+
context.set_details('Method not implemented!')
|
|
88
|
+
raise NotImplementedError('Method not implemented!')
|
|
89
|
+
|
|
90
|
+
def SendSignal(self, request, context):
|
|
91
|
+
"""SendSignal: Control signal (cancel, pause) delivered via Redis pub/sub.
|
|
92
|
+
"""
|
|
93
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
94
|
+
context.set_details('Method not implemented!')
|
|
95
|
+
raise NotImplementedError('Method not implemented!')
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def add_GatewayServiceServicer_to_server(servicer, server):
|
|
99
|
+
rpc_method_handlers = {
|
|
100
|
+
'StartStream': grpc.unary_unary_rpc_method_handler(
|
|
101
|
+
servicer.StartStream,
|
|
102
|
+
request_deserializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.StartStreamRequest.FromString,
|
|
103
|
+
response_serializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.StartStreamResponse.SerializeToString,
|
|
104
|
+
),
|
|
105
|
+
'ProduceStream': grpc.stream_stream_rpc_method_handler(
|
|
106
|
+
servicer.ProduceStream,
|
|
107
|
+
request_deserializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ProduceStreamRequest.FromString,
|
|
108
|
+
response_serializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ProduceStreamResponse.SerializeToString,
|
|
109
|
+
),
|
|
110
|
+
'ConsumeStream': grpc.stream_stream_rpc_method_handler(
|
|
111
|
+
servicer.ConsumeStream,
|
|
112
|
+
request_deserializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ConsumeStreamRequest.FromString,
|
|
113
|
+
response_serializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.GatewayResponse.SerializeToString,
|
|
114
|
+
),
|
|
115
|
+
'SendSignal': grpc.unary_unary_rpc_method_handler(
|
|
116
|
+
servicer.SendSignal,
|
|
117
|
+
request_deserializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ClientSignalRequest.FromString,
|
|
118
|
+
response_serializer=agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ClientSignalResponse.SerializeToString,
|
|
119
|
+
),
|
|
120
|
+
}
|
|
121
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
122
|
+
'agentic_mesh_protocol.gateway.v1.GatewayService', rpc_method_handlers)
|
|
123
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
124
|
+
server.add_registered_method_handlers('agentic_mesh_protocol.gateway.v1.GatewayService', rpc_method_handlers)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
# This class is part of an EXPERIMENTAL API.
|
|
128
|
+
class GatewayService(object):
|
|
129
|
+
"""GatewayService
|
|
130
|
+
Central broker for module-to-module communication with full isolation.
|
|
131
|
+
Modules only talk to the Gateway + Redis — never to each other directly.
|
|
132
|
+
|
|
133
|
+
Flow:
|
|
134
|
+
1. Module B → StartStream → Gateway routes to Module A → ACK
|
|
135
|
+
2. Module A → ProduceStream (BiDi) → Gateway → output to Redis
|
|
136
|
+
3. Module B → ConsumeStream (BiDi) → Gateway → reads from Redis, sends data back
|
|
137
|
+
4. SendSignal → Redis pub/sub → Module A (out of band)
|
|
138
|
+
|
|
139
|
+
Gateway injects ModuleStartInfo as first entry in the Redis output stream.
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
@staticmethod
|
|
143
|
+
def StartStream(request,
|
|
144
|
+
target,
|
|
145
|
+
options=(),
|
|
146
|
+
channel_credentials=None,
|
|
147
|
+
call_credentials=None,
|
|
148
|
+
insecure=False,
|
|
149
|
+
compression=None,
|
|
150
|
+
wait_for_ready=None,
|
|
151
|
+
timeout=None,
|
|
152
|
+
metadata=None):
|
|
153
|
+
return grpc.experimental.unary_unary(
|
|
154
|
+
request,
|
|
155
|
+
target,
|
|
156
|
+
'/agentic_mesh_protocol.gateway.v1.GatewayService/StartStream',
|
|
157
|
+
agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.StartStreamRequest.SerializeToString,
|
|
158
|
+
agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.StartStreamResponse.FromString,
|
|
159
|
+
options,
|
|
160
|
+
channel_credentials,
|
|
161
|
+
insecure,
|
|
162
|
+
call_credentials,
|
|
163
|
+
compression,
|
|
164
|
+
wait_for_ready,
|
|
165
|
+
timeout,
|
|
166
|
+
metadata,
|
|
167
|
+
_registered_method=True)
|
|
168
|
+
|
|
169
|
+
@staticmethod
|
|
170
|
+
def ProduceStream(request_iterator,
|
|
171
|
+
target,
|
|
172
|
+
options=(),
|
|
173
|
+
channel_credentials=None,
|
|
174
|
+
call_credentials=None,
|
|
175
|
+
insecure=False,
|
|
176
|
+
compression=None,
|
|
177
|
+
wait_for_ready=None,
|
|
178
|
+
timeout=None,
|
|
179
|
+
metadata=None):
|
|
180
|
+
return grpc.experimental.stream_stream(
|
|
181
|
+
request_iterator,
|
|
182
|
+
target,
|
|
183
|
+
'/agentic_mesh_protocol.gateway.v1.GatewayService/ProduceStream',
|
|
184
|
+
agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ProduceStreamRequest.SerializeToString,
|
|
185
|
+
agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ProduceStreamResponse.FromString,
|
|
186
|
+
options,
|
|
187
|
+
channel_credentials,
|
|
188
|
+
insecure,
|
|
189
|
+
call_credentials,
|
|
190
|
+
compression,
|
|
191
|
+
wait_for_ready,
|
|
192
|
+
timeout,
|
|
193
|
+
metadata,
|
|
194
|
+
_registered_method=True)
|
|
195
|
+
|
|
196
|
+
@staticmethod
|
|
197
|
+
def ConsumeStream(request_iterator,
|
|
198
|
+
target,
|
|
199
|
+
options=(),
|
|
200
|
+
channel_credentials=None,
|
|
201
|
+
call_credentials=None,
|
|
202
|
+
insecure=False,
|
|
203
|
+
compression=None,
|
|
204
|
+
wait_for_ready=None,
|
|
205
|
+
timeout=None,
|
|
206
|
+
metadata=None):
|
|
207
|
+
return grpc.experimental.stream_stream(
|
|
208
|
+
request_iterator,
|
|
209
|
+
target,
|
|
210
|
+
'/agentic_mesh_protocol.gateway.v1.GatewayService/ConsumeStream',
|
|
211
|
+
agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ConsumeStreamRequest.SerializeToString,
|
|
212
|
+
agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.GatewayResponse.FromString,
|
|
213
|
+
options,
|
|
214
|
+
channel_credentials,
|
|
215
|
+
insecure,
|
|
216
|
+
call_credentials,
|
|
217
|
+
compression,
|
|
218
|
+
wait_for_ready,
|
|
219
|
+
timeout,
|
|
220
|
+
metadata,
|
|
221
|
+
_registered_method=True)
|
|
222
|
+
|
|
223
|
+
@staticmethod
|
|
224
|
+
def SendSignal(request,
|
|
225
|
+
target,
|
|
226
|
+
options=(),
|
|
227
|
+
channel_credentials=None,
|
|
228
|
+
call_credentials=None,
|
|
229
|
+
insecure=False,
|
|
230
|
+
compression=None,
|
|
231
|
+
wait_for_ready=None,
|
|
232
|
+
timeout=None,
|
|
233
|
+
metadata=None):
|
|
234
|
+
return grpc.experimental.unary_unary(
|
|
235
|
+
request,
|
|
236
|
+
target,
|
|
237
|
+
'/agentic_mesh_protocol.gateway.v1.GatewayService/SendSignal',
|
|
238
|
+
agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ClientSignalRequest.SerializeToString,
|
|
239
|
+
agentic__mesh__protocol_dot_gateway_dot_v1_dot_gateway__pb2.ClientSignalResponse.FromString,
|
|
240
|
+
options,
|
|
241
|
+
channel_credentials,
|
|
242
|
+
insecure,
|
|
243
|
+
call_credentials,
|
|
244
|
+
compression,
|
|
245
|
+
wait_for_ready,
|
|
246
|
+
timeout,
|
|
247
|
+
metadata,
|
|
248
|
+
_registered_method=True)
|
{agentic_mesh_protocol-0.2.3.dev4.dist-info → agentic_mesh_protocol-1.0.0.dev0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentic-mesh-protocol
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0.dev0
|
|
4
4
|
Summary: Python gRPC interfaces for Agentic Mesh Protocol
|
|
5
5
|
Author-email: "DigitalKin.ai" <contact@digitalkin.ai>
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/DigitalKin-ai/service-apis-py/issues
|
|
@@ -22,12 +22,11 @@ Classifier: Typing :: Typed
|
|
|
22
22
|
Requires-Python: >=3.10
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
Requires-Dist:
|
|
27
|
-
Requires-Dist: grpcio
|
|
28
|
-
Requires-Dist:
|
|
29
|
-
Requires-Dist:
|
|
30
|
-
Requires-Dist: protovalidate>=1.1.1
|
|
25
|
+
Requires-Dist: googleapis-common-protos==1.74.0
|
|
26
|
+
Requires-Dist: grpcio-tools==1.80.0
|
|
27
|
+
Requires-Dist: grpcio==1.80.0
|
|
28
|
+
Requires-Dist: protobuf==6.33.6
|
|
29
|
+
Requires-Dist: protovalidate==1.1.2
|
|
31
30
|
Dynamic: license-file
|
|
32
31
|
|
|
33
32
|
# agentic-mesh-protocol
|
{agentic_mesh_protocol-0.2.3.dev4.dist-info → agentic_mesh_protocol-1.0.0.dev0.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
agentic_mesh_protocol/__init__.py,sha256=kAb731TxLudbtt2vZsebF7PP7Z8AaEDOp93TBgy6VUg,140
|
|
2
|
-
agentic_mesh_protocol/__version__.py,sha256=
|
|
2
|
+
agentic_mesh_protocol/__version__.py,sha256=SATqHAAHrWYq0W91LtNqW2m-e1dP2C7I5BOkZiqugeE,240
|
|
3
3
|
agentic_mesh_protocol/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
agentic_mesh_protocol/cost/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
agentic_mesh_protocol/cost/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -17,6 +17,14 @@ agentic_mesh_protocol/filesystem/v1/filesystem_pb2_grpc.py,sha256=1oboBPFxaTEXt9
|
|
|
17
17
|
agentic_mesh_protocol/filesystem/v1/filesystem_service_pb2.py,sha256=os8R_9P8hh7AGYWm_X6pKP6v6anoPafLw23ZvIBefEY,3037
|
|
18
18
|
agentic_mesh_protocol/filesystem/v1/filesystem_service_pb2.pyi,sha256=1D3gG1Fel8LOlNNFxcuKHPq8SgLxcGpvl-RPxn4Aud8,217
|
|
19
19
|
agentic_mesh_protocol/filesystem/v1/filesystem_service_pb2_grpc.py,sha256=2sRBcn83n4xsvAvZjQp2rBLShUllaeo5VWV3rsF_OXg,12689
|
|
20
|
+
agentic_mesh_protocol/gateway/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
+
agentic_mesh_protocol/gateway/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
|
+
agentic_mesh_protocol/gateway/v1/gateway_pb2.py,sha256=uWIOdz6bdCRqOB59YZwl6GiDRIooV66krb8R4TA4bno,12742
|
|
23
|
+
agentic_mesh_protocol/gateway/v1/gateway_pb2.pyi,sha256=lgHiFdKEXlPD9TYm-U415JS7LlFLH08rpmpzzooZUqA,9013
|
|
24
|
+
agentic_mesh_protocol/gateway/v1/gateway_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
25
|
+
agentic_mesh_protocol/gateway/v1/gateway_service_pb2.py,sha256=BugIvKcGZQN5pMZVhIHx-3Zkn0dAuectP9F54svLOss,2815
|
|
26
|
+
agentic_mesh_protocol/gateway/v1/gateway_service_pb2.pyi,sha256=OhuGTz4bX0qHTPR8QmsYejj0vbax2-DQR28Iwzu8q6I,208
|
|
27
|
+
agentic_mesh_protocol/gateway/v1/gateway_service_pb2_grpc.py,sha256=s0bvgXsqrEgag59eoCbnMx7dIztk62AdoYK54M-8nu0,11388
|
|
20
28
|
agentic_mesh_protocol/module/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
29
|
agentic_mesh_protocol/module/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
30
|
agentic_mesh_protocol/module/v1/information_pb2.py,sha256=_FIj7T0U_a8Ez47mEIDQdILXQOAwlvQCeCz5gBXFZyQ,9627
|
|
@@ -97,13 +105,13 @@ agentic_mesh_protocol/user_profile/v1/user_profile_pb2_grpc.py,sha256=1oboBPFxaT
|
|
|
97
105
|
agentic_mesh_protocol/user_profile/v1/user_profile_service_pb2.py,sha256=qurdZOyq40MhilDNSFRlAqJPxE7n4TiBoxXoo6PgzXA,2503
|
|
98
106
|
agentic_mesh_protocol/user_profile/v1/user_profile_service_pb2.pyi,sha256=bYDO6_YCbjKbajOXMcjaWIljSqrtazhaHnAG_ovmsGE,223
|
|
99
107
|
agentic_mesh_protocol/user_profile/v1/user_profile_service_pb2_grpc.py,sha256=ZM4LGHSHGnpNbbW6Q8pp6gdlbFIxPjD5CqASmD7ow7M,3388
|
|
100
|
-
agentic_mesh_protocol-0.
|
|
108
|
+
agentic_mesh_protocol-1.0.0.dev0.dist-info/licenses/LICENSE,sha256=kKsbCnqWVbrrSHAf6NV4-fI3Sdgt9xycjiijGloDW8g,20757
|
|
101
109
|
buf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
102
110
|
buf/validate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
103
111
|
buf/validate/validate_pb2.py,sha256=HFAayUV64KiIENS-1rkSYHaECy9FH6JwdWrRpFN2fvc,158582
|
|
104
112
|
buf/validate/validate_pb2.pyi,sha256=Nki0jMViS5u5iVrHcGyl5ZfUK5YLxZE5McpCp7pXXEU,30537
|
|
105
113
|
buf/validate/validate_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
106
|
-
agentic_mesh_protocol-0.
|
|
107
|
-
agentic_mesh_protocol-0.
|
|
108
|
-
agentic_mesh_protocol-0.
|
|
109
|
-
agentic_mesh_protocol-0.
|
|
114
|
+
agentic_mesh_protocol-1.0.0.dev0.dist-info/METADATA,sha256=e_Nk_NysZwI4rYtsEWnH-8Ie5wEuiTQRmAXj8mnPU84,4737
|
|
115
|
+
agentic_mesh_protocol-1.0.0.dev0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
116
|
+
agentic_mesh_protocol-1.0.0.dev0.dist-info/top_level.txt,sha256=LfSggOPp9FyZa2A__3lnBvgaoamSOtYDwv0jfI5ZGrE,26
|
|
117
|
+
agentic_mesh_protocol-1.0.0.dev0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|