ecom-agent-grpc 0.1.0__tar.gz

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.
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.3
2
+ Name: ecom-agent-grpc
3
+ Version: 0.1.0
4
+ Summary: Generated gRPC/protobuf stubs for ecom_agent.v1.AgentService
5
+ Author: MikBark
6
+ Author-email: MikBark <mikhail.barkov.2002@gmail.com>
7
+ Requires-Dist: grpcio>=1.81.1
8
+ Requires-Dist: protobuf>=6.33.6
9
+ Requires-Python: >=3.14, <3.15
10
+ Description-Content-Type: text/markdown
11
+
12
+ # ecom-agent-grpc
13
+
14
+ Generated `ecom_agent.v1` gRPC/protobuf stubs for `AgentService.Run`, published from
15
+ [`ecom-agent`](https://github.com/) on version tags. Do not hand-edit; regenerate with
16
+ `make proto-stubs` in the parent repo from `proto/ecom_agent/v1/agent.proto`.
@@ -0,0 +1,5 @@
1
+ # ecom-agent-grpc
2
+
3
+ Generated `ecom_agent.v1` gRPC/protobuf stubs for `AgentService.Run`, published from
4
+ [`ecom-agent`](https://github.com/) on version tags. Do not hand-edit; regenerate with
5
+ `make proto-stubs` in the parent repo from `proto/ecom_agent/v1/agent.proto`.
@@ -0,0 +1,20 @@
1
+ [project]
2
+ name = "ecom-agent-grpc"
3
+ version = "0.1.0"
4
+ description = "Generated gRPC/protobuf stubs for ecom_agent.v1.AgentService"
5
+ readme = "README.md"
6
+ authors = [
7
+ { name = "MikBark", email = "mikhail.barkov.2002@gmail.com" }
8
+ ]
9
+ requires-python = ">=3.14,<3.15"
10
+ dependencies = [
11
+ "grpcio>=1.81.1",
12
+ "protobuf>=6.33.6",
13
+ ]
14
+
15
+ [build-system]
16
+ requires = ["uv_build>=0.10.2,<0.11.0"]
17
+ build-backend = "uv_build"
18
+
19
+ [tool.uv.build-backend]
20
+ module-name = "ecom_agent"
File without changes
File without changes
@@ -0,0 +1,65 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: ecom_agent/v1/agent.proto
5
+ # Protobuf Python Version: 6.33.5
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
+ 5,
17
+ '',
18
+ 'ecom_agent/v1/agent.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x65\x63om_agent/v1/agent.proto\x12\recom_agent.v1\"\xb9\x01\n\nRunRequest\x12\x0e\n\x06prompt\x18\x01 \x01(\t\x12\x13\n\x0bharness_url\x18\x03 \x01(\t\x12\x35\n\x06\x63onfig\x18\x05 \x03(\x0b\x32%.ecom_agent.v1.RunRequest.ConfigEntry\x1a-\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01J\x04\x08\x02\x10\x03J\x04\x08\x04\x10\x05R\rplayground_idR\x05model\"F\n\tToolTrace\x12\x0c\n\x04tool\x18\x01 \x01(\t\x12\x14\n\x0crequest_json\x18\x02 \x01(\t\x12\x15\n\rresponse_json\x18\x03 \x01(\t\"\x1d\n\x0cStageStarted\x12\r\n\x05stage\x18\x01 \x01(\t\"(\n\tReasoning\x12\r\n\x05stage\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\"=\n\x08ToolCall\x12\r\n\x05stage\x18\x01 \x01(\t\x12\x0c\n\x04tool\x18\x02 \x01(\t\x12\x14\n\x0crequest_json\x18\x03 \x01(\t\"@\n\nToolResult\x12\r\n\x05stage\x18\x01 \x01(\t\x12\x0c\n\x04tool\x18\x02 \x01(\t\x12\x15\n\rresponse_json\x18\x03 \x01(\t\"H\n\rSchemaEmitted\x12\r\n\x05stage\x18\x01 \x01(\t\x12\x13\n\x0bschema_name\x18\x02 \x01(\t\x12\x13\n\x0bschema_json\x18\x03 \x01(\t\"\x16\n\x03Log\x12\x0f\n\x07message\x18\x01 \x01(\t\"\x18\n\x05\x45rror\x12\x0f\n\x07message\x18\x01 \x01(\t\"\x97\x01\n\x0b\x46inalAnswer\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\'\n\x07outcome\x18\x02 \x01(\x0e\x32\x16.ecom_agent.v1.Outcome\x12\x0c\n\x04refs\x18\x03 \x03(\t\x12,\n\ntool_trace\x18\x05 \x03(\x0b\x32\x18.ecom_agent.v1.ToolTraceJ\x04\x08\x04\x10\x05R\x0csafety_flags\"\x8e\x03\n\x08RunEvent\x12\x34\n\rstage_started\x18\x01 \x01(\x0b\x32\x1b.ecom_agent.v1.StageStartedH\x00\x12-\n\treasoning\x18\x02 \x01(\x0b\x32\x18.ecom_agent.v1.ReasoningH\x00\x12,\n\ttool_call\x18\x03 \x01(\x0b\x32\x17.ecom_agent.v1.ToolCallH\x00\x12\x30\n\x0btool_result\x18\x04 \x01(\x0b\x32\x19.ecom_agent.v1.ToolResultH\x00\x12\x36\n\x0eschema_emitted\x18\x05 \x01(\x0b\x32\x1c.ecom_agent.v1.SchemaEmittedH\x00\x12!\n\x03log\x18\x06 \x01(\x0b\x32\x12.ecom_agent.v1.LogH\x00\x12%\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x14.ecom_agent.v1.ErrorH\x00\x12\x32\n\x0c\x66inal_answer\x18\x08 \x01(\x0b\x32\x1a.ecom_agent.v1.FinalAnswerH\x00\x42\x07\n\x05\x65vent*\xa7\x01\n\x07Outcome\x12\x17\n\x13OUTCOME_UNSPECIFIED\x10\x00\x12\x0e\n\nOUTCOME_OK\x10\x01\x12\x1b\n\x17OUTCOME_DENIED_SECURITY\x10\x02\x12\x1e\n\x1aOUTCOME_NONE_CLARIFICATION\x10\x03\x12\x1c\n\x18OUTCOME_NONE_UNSUPPORTED\x10\x04\x12\x18\n\x14OUTCOME_ERR_INTERNAL\x10\x05\x32K\n\x0c\x41gentService\x12;\n\x03Run\x12\x19.ecom_agent.v1.RunRequest\x1a\x17.ecom_agent.v1.RunEvent0\x01\x42\x1cZ\x1a\x65\x63om_agent/v1;ecom_agentv1b\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ecom_agent.v1.agent_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'Z\032ecom_agent/v1;ecom_agentv1'
35
+ _globals['_RUNREQUEST_CONFIGENTRY']._loaded_options = None
36
+ _globals['_RUNREQUEST_CONFIGENTRY']._serialized_options = b'8\001'
37
+ _globals['_OUTCOME']._serialized_start=1186
38
+ _globals['_OUTCOME']._serialized_end=1353
39
+ _globals['_RUNREQUEST']._serialized_start=45
40
+ _globals['_RUNREQUEST']._serialized_end=230
41
+ _globals['_RUNREQUEST_CONFIGENTRY']._serialized_start=151
42
+ _globals['_RUNREQUEST_CONFIGENTRY']._serialized_end=196
43
+ _globals['_TOOLTRACE']._serialized_start=232
44
+ _globals['_TOOLTRACE']._serialized_end=302
45
+ _globals['_STAGESTARTED']._serialized_start=304
46
+ _globals['_STAGESTARTED']._serialized_end=333
47
+ _globals['_REASONING']._serialized_start=335
48
+ _globals['_REASONING']._serialized_end=375
49
+ _globals['_TOOLCALL']._serialized_start=377
50
+ _globals['_TOOLCALL']._serialized_end=438
51
+ _globals['_TOOLRESULT']._serialized_start=440
52
+ _globals['_TOOLRESULT']._serialized_end=504
53
+ _globals['_SCHEMAEMITTED']._serialized_start=506
54
+ _globals['_SCHEMAEMITTED']._serialized_end=578
55
+ _globals['_LOG']._serialized_start=580
56
+ _globals['_LOG']._serialized_end=602
57
+ _globals['_ERROR']._serialized_start=604
58
+ _globals['_ERROR']._serialized_end=628
59
+ _globals['_FINALANSWER']._serialized_start=631
60
+ _globals['_FINALANSWER']._serialized_end=782
61
+ _globals['_RUNEVENT']._serialized_start=785
62
+ _globals['_RUNEVENT']._serialized_end=1183
63
+ _globals['_AGENTSERVICE']._serialized_start=1355
64
+ _globals['_AGENTSERVICE']._serialized_end=1430
65
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,138 @@
1
+ from google.protobuf.internal import containers as _containers
2
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
3
+ from google.protobuf import descriptor as _descriptor
4
+ from google.protobuf import message as _message
5
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
6
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
7
+
8
+ DESCRIPTOR: _descriptor.FileDescriptor
9
+
10
+ class Outcome(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
11
+ __slots__ = ()
12
+ OUTCOME_UNSPECIFIED: _ClassVar[Outcome]
13
+ OUTCOME_OK: _ClassVar[Outcome]
14
+ OUTCOME_DENIED_SECURITY: _ClassVar[Outcome]
15
+ OUTCOME_NONE_CLARIFICATION: _ClassVar[Outcome]
16
+ OUTCOME_NONE_UNSUPPORTED: _ClassVar[Outcome]
17
+ OUTCOME_ERR_INTERNAL: _ClassVar[Outcome]
18
+ OUTCOME_UNSPECIFIED: Outcome
19
+ OUTCOME_OK: Outcome
20
+ OUTCOME_DENIED_SECURITY: Outcome
21
+ OUTCOME_NONE_CLARIFICATION: Outcome
22
+ OUTCOME_NONE_UNSUPPORTED: Outcome
23
+ OUTCOME_ERR_INTERNAL: Outcome
24
+
25
+ class RunRequest(_message.Message):
26
+ __slots__ = ("prompt", "harness_url", "config")
27
+ class ConfigEntry(_message.Message):
28
+ __slots__ = ("key", "value")
29
+ KEY_FIELD_NUMBER: _ClassVar[int]
30
+ VALUE_FIELD_NUMBER: _ClassVar[int]
31
+ key: str
32
+ value: str
33
+ def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
34
+ PROMPT_FIELD_NUMBER: _ClassVar[int]
35
+ HARNESS_URL_FIELD_NUMBER: _ClassVar[int]
36
+ CONFIG_FIELD_NUMBER: _ClassVar[int]
37
+ prompt: str
38
+ harness_url: str
39
+ config: _containers.ScalarMap[str, str]
40
+ def __init__(self, prompt: _Optional[str] = ..., harness_url: _Optional[str] = ..., config: _Optional[_Mapping[str, str]] = ...) -> None: ...
41
+
42
+ class ToolTrace(_message.Message):
43
+ __slots__ = ("tool", "request_json", "response_json")
44
+ TOOL_FIELD_NUMBER: _ClassVar[int]
45
+ REQUEST_JSON_FIELD_NUMBER: _ClassVar[int]
46
+ RESPONSE_JSON_FIELD_NUMBER: _ClassVar[int]
47
+ tool: str
48
+ request_json: str
49
+ response_json: str
50
+ def __init__(self, tool: _Optional[str] = ..., request_json: _Optional[str] = ..., response_json: _Optional[str] = ...) -> None: ...
51
+
52
+ class StageStarted(_message.Message):
53
+ __slots__ = ("stage",)
54
+ STAGE_FIELD_NUMBER: _ClassVar[int]
55
+ stage: str
56
+ def __init__(self, stage: _Optional[str] = ...) -> None: ...
57
+
58
+ class Reasoning(_message.Message):
59
+ __slots__ = ("stage", "text")
60
+ STAGE_FIELD_NUMBER: _ClassVar[int]
61
+ TEXT_FIELD_NUMBER: _ClassVar[int]
62
+ stage: str
63
+ text: str
64
+ def __init__(self, stage: _Optional[str] = ..., text: _Optional[str] = ...) -> None: ...
65
+
66
+ class ToolCall(_message.Message):
67
+ __slots__ = ("stage", "tool", "request_json")
68
+ STAGE_FIELD_NUMBER: _ClassVar[int]
69
+ TOOL_FIELD_NUMBER: _ClassVar[int]
70
+ REQUEST_JSON_FIELD_NUMBER: _ClassVar[int]
71
+ stage: str
72
+ tool: str
73
+ request_json: str
74
+ def __init__(self, stage: _Optional[str] = ..., tool: _Optional[str] = ..., request_json: _Optional[str] = ...) -> None: ...
75
+
76
+ class ToolResult(_message.Message):
77
+ __slots__ = ("stage", "tool", "response_json")
78
+ STAGE_FIELD_NUMBER: _ClassVar[int]
79
+ TOOL_FIELD_NUMBER: _ClassVar[int]
80
+ RESPONSE_JSON_FIELD_NUMBER: _ClassVar[int]
81
+ stage: str
82
+ tool: str
83
+ response_json: str
84
+ def __init__(self, stage: _Optional[str] = ..., tool: _Optional[str] = ..., response_json: _Optional[str] = ...) -> None: ...
85
+
86
+ class SchemaEmitted(_message.Message):
87
+ __slots__ = ("stage", "schema_name", "schema_json")
88
+ STAGE_FIELD_NUMBER: _ClassVar[int]
89
+ SCHEMA_NAME_FIELD_NUMBER: _ClassVar[int]
90
+ SCHEMA_JSON_FIELD_NUMBER: _ClassVar[int]
91
+ stage: str
92
+ schema_name: str
93
+ schema_json: str
94
+ def __init__(self, stage: _Optional[str] = ..., schema_name: _Optional[str] = ..., schema_json: _Optional[str] = ...) -> None: ...
95
+
96
+ class Log(_message.Message):
97
+ __slots__ = ("message",)
98
+ MESSAGE_FIELD_NUMBER: _ClassVar[int]
99
+ message: str
100
+ def __init__(self, message: _Optional[str] = ...) -> None: ...
101
+
102
+ class Error(_message.Message):
103
+ __slots__ = ("message",)
104
+ MESSAGE_FIELD_NUMBER: _ClassVar[int]
105
+ message: str
106
+ def __init__(self, message: _Optional[str] = ...) -> None: ...
107
+
108
+ class FinalAnswer(_message.Message):
109
+ __slots__ = ("message", "outcome", "refs", "tool_trace")
110
+ MESSAGE_FIELD_NUMBER: _ClassVar[int]
111
+ OUTCOME_FIELD_NUMBER: _ClassVar[int]
112
+ REFS_FIELD_NUMBER: _ClassVar[int]
113
+ TOOL_TRACE_FIELD_NUMBER: _ClassVar[int]
114
+ message: str
115
+ outcome: Outcome
116
+ refs: _containers.RepeatedScalarFieldContainer[str]
117
+ tool_trace: _containers.RepeatedCompositeFieldContainer[ToolTrace]
118
+ def __init__(self, message: _Optional[str] = ..., outcome: _Optional[_Union[Outcome, str]] = ..., refs: _Optional[_Iterable[str]] = ..., tool_trace: _Optional[_Iterable[_Union[ToolTrace, _Mapping]]] = ...) -> None: ...
119
+
120
+ class RunEvent(_message.Message):
121
+ __slots__ = ("stage_started", "reasoning", "tool_call", "tool_result", "schema_emitted", "log", "error", "final_answer")
122
+ STAGE_STARTED_FIELD_NUMBER: _ClassVar[int]
123
+ REASONING_FIELD_NUMBER: _ClassVar[int]
124
+ TOOL_CALL_FIELD_NUMBER: _ClassVar[int]
125
+ TOOL_RESULT_FIELD_NUMBER: _ClassVar[int]
126
+ SCHEMA_EMITTED_FIELD_NUMBER: _ClassVar[int]
127
+ LOG_FIELD_NUMBER: _ClassVar[int]
128
+ ERROR_FIELD_NUMBER: _ClassVar[int]
129
+ FINAL_ANSWER_FIELD_NUMBER: _ClassVar[int]
130
+ stage_started: StageStarted
131
+ reasoning: Reasoning
132
+ tool_call: ToolCall
133
+ tool_result: ToolResult
134
+ schema_emitted: SchemaEmitted
135
+ log: Log
136
+ error: Error
137
+ final_answer: FinalAnswer
138
+ def __init__(self, stage_started: _Optional[_Union[StageStarted, _Mapping]] = ..., reasoning: _Optional[_Union[Reasoning, _Mapping]] = ..., tool_call: _Optional[_Union[ToolCall, _Mapping]] = ..., tool_result: _Optional[_Union[ToolResult, _Mapping]] = ..., schema_emitted: _Optional[_Union[SchemaEmitted, _Mapping]] = ..., log: _Optional[_Union[Log, _Mapping]] = ..., error: _Optional[_Union[Error, _Mapping]] = ..., final_answer: _Optional[_Union[FinalAnswer, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,103 @@
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
+ import warnings
5
+
6
+ from ecom_agent.v1 import agent_pb2 as ecom__agent_dot_v1_dot_agent__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.81.1'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + ' but the generated code in ecom_agent/v1/agent_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class AgentServiceStub:
29
+ """AgentService runs the agent workflow against a Playground and streams the
30
+ working process back to the caller.
31
+ """
32
+
33
+ def __init__(self, channel):
34
+ """Constructor.
35
+
36
+ Args:
37
+ channel: A grpc.Channel.
38
+ """
39
+ self.Run = channel.unary_stream(
40
+ '/ecom_agent.v1.AgentService/Run',
41
+ request_serializer=ecom__agent_dot_v1_dot_agent__pb2.RunRequest.SerializeToString,
42
+ response_deserializer=ecom__agent_dot_v1_dot_agent__pb2.RunEvent.FromString,
43
+ _registered_method=True)
44
+
45
+
46
+ class AgentServiceServicer:
47
+ """AgentService runs the agent workflow against a Playground and streams the
48
+ working process back to the caller.
49
+ """
50
+
51
+ def Run(self, request, context):
52
+ """Missing associated documentation comment in .proto file."""
53
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
54
+ context.set_details('Method not implemented!')
55
+ raise NotImplementedError('Method not implemented!')
56
+
57
+
58
+ def add_AgentServiceServicer_to_server(servicer, server):
59
+ rpc_method_handlers = {
60
+ 'Run': grpc.unary_stream_rpc_method_handler(
61
+ servicer.Run,
62
+ request_deserializer=ecom__agent_dot_v1_dot_agent__pb2.RunRequest.FromString,
63
+ response_serializer=ecom__agent_dot_v1_dot_agent__pb2.RunEvent.SerializeToString,
64
+ ),
65
+ }
66
+ generic_handler = grpc.method_handlers_generic_handler(
67
+ 'ecom_agent.v1.AgentService', rpc_method_handlers)
68
+ server.add_generic_rpc_handlers((generic_handler,))
69
+ server.add_registered_method_handlers('ecom_agent.v1.AgentService', rpc_method_handlers)
70
+
71
+
72
+ # This class is part of an EXPERIMENTAL API.
73
+ class AgentService:
74
+ """AgentService runs the agent workflow against a Playground and streams the
75
+ working process back to the caller.
76
+ """
77
+
78
+ @staticmethod
79
+ def Run(request,
80
+ target,
81
+ options=(),
82
+ channel_credentials=None,
83
+ call_credentials=None,
84
+ insecure=False,
85
+ compression=None,
86
+ wait_for_ready=None,
87
+ timeout=None,
88
+ metadata=None):
89
+ return grpc.experimental.unary_stream(
90
+ request,
91
+ target,
92
+ '/ecom_agent.v1.AgentService/Run',
93
+ ecom__agent_dot_v1_dot_agent__pb2.RunRequest.SerializeToString,
94
+ ecom__agent_dot_v1_dot_agent__pb2.RunEvent.FromString,
95
+ options,
96
+ channel_credentials,
97
+ insecure,
98
+ call_credentials,
99
+ compression,
100
+ wait_for_ready,
101
+ timeout,
102
+ metadata,
103
+ _registered_method=True)