Skip to content

Commit 2828f21

Browse files
feat: regenerate proto
1 parent 6eaf014 commit 2828f21

File tree

171 files changed

+12680
-1441
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+12680
-1441
lines changed

cloudapi

Submodule cloudapi updated 55 files

yandex/cloud/ai/assistants/v1/runs/run_service_pb2.py

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

yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,37 @@ class StreamEvent(google.protobuf.message.Message):
344344
def WhichOneof(self, oneof_group: typing.Literal["EventData", b"EventData"]) -> typing.Literal["error", "partial_message", "completed_message", "tool_call_list"] | None: ...
345345

346346
global___StreamEvent = StreamEvent
347+
348+
@typing.final
349+
class SubmitToRunRequest(google.protobuf.message.Message):
350+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
351+
352+
RUN_ID_FIELD_NUMBER: builtins.int
353+
TOOL_RESULT_LIST_FIELD_NUMBER: builtins.int
354+
run_id: builtins.str
355+
"""ID of the run to submit to."""
356+
@property
357+
def tool_result_list(self) -> yandex.cloud.ai.assistants.v1.common_pb2.ToolResultList:
358+
"""A list of tool results to submit to the run, such as the output of a function call."""
359+
360+
def __init__(
361+
self,
362+
*,
363+
run_id: builtins.str = ...,
364+
tool_result_list: yandex.cloud.ai.assistants.v1.common_pb2.ToolResultList | None = ...,
365+
) -> None: ...
366+
def HasField(self, field_name: typing.Literal["Event", b"Event", "tool_result_list", b"tool_result_list"]) -> builtins.bool: ...
367+
def ClearField(self, field_name: typing.Literal["Event", b"Event", "run_id", b"run_id", "tool_result_list", b"tool_result_list"]) -> None: ...
368+
def WhichOneof(self, oneof_group: typing.Literal["Event", b"Event"]) -> typing.Literal["tool_result_list"] | None: ...
369+
370+
global___SubmitToRunRequest = SubmitToRunRequest
371+
372+
@typing.final
373+
class SubmitToRunResponse(google.protobuf.message.Message):
374+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
375+
376+
def __init__(
377+
self,
378+
) -> None: ...
379+
380+
global___SubmitToRunResponse = SubmitToRunResponse

yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.py

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ def __init__(self, channel):
6666
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__service__pb2.ListRunsRequest.SerializeToString,
6767
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__service__pb2.ListRunsResponse.FromString,
6868
_registered_method=True)
69+
self.Submit = channel.unary_unary(
70+
'/yandex.cloud.ai.assistants.v1.runs.RunService/Submit',
71+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__service__pb2.SubmitToRunRequest.SerializeToString,
72+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__service__pb2.SubmitToRunResponse.FromString,
73+
_registered_method=True)
6974

7075

7176
class RunServiceServicer(object):
@@ -118,6 +123,14 @@ def List(self, request, context):
118123
context.set_details('Method not implemented!')
119124
raise NotImplementedError('Method not implemented!')
120125

126+
def Submit(self, request, context):
127+
"""Submit event to run
128+
For example, submit function call results when the run is waiting for user input.
129+
"""
130+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
131+
context.set_details('Method not implemented!')
132+
raise NotImplementedError('Method not implemented!')
133+
121134

122135
def add_RunServiceServicer_to_server(servicer, server):
123136
rpc_method_handlers = {
@@ -151,6 +164,11 @@ def add_RunServiceServicer_to_server(servicer, server):
151164
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__service__pb2.ListRunsRequest.FromString,
152165
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__service__pb2.ListRunsResponse.SerializeToString,
153166
),
167+
'Submit': grpc.unary_unary_rpc_method_handler(
168+
servicer.Submit,
169+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__service__pb2.SubmitToRunRequest.FromString,
170+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__service__pb2.SubmitToRunResponse.SerializeToString,
171+
),
154172
}
155173
generic_handler = grpc.method_handlers_generic_handler(
156174
'yandex.cloud.ai.assistants.v1.runs.RunService', rpc_method_handlers)
@@ -324,3 +342,30 @@ def List(request,
324342
timeout,
325343
metadata,
326344
_registered_method=True)
345+
346+
@staticmethod
347+
def Submit(request,
348+
target,
349+
options=(),
350+
channel_credentials=None,
351+
call_credentials=None,
352+
insecure=False,
353+
compression=None,
354+
wait_for_ready=None,
355+
timeout=None,
356+
metadata=None):
357+
return grpc.experimental.unary_unary(
358+
request,
359+
target,
360+
'/yandex.cloud.ai.assistants.v1.runs.RunService/Submit',
361+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__service__pb2.SubmitToRunRequest.SerializeToString,
362+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_runs_dot_run__service__pb2.SubmitToRunResponse.FromString,
363+
options,
364+
channel_credentials,
365+
insecure,
366+
call_credentials,
367+
compression,
368+
wait_for_ready,
369+
timeout,
370+
metadata,
371+
_registered_method=True)

yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.pyi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ class RunServiceStub:
6464
]
6565
"""List runs in a specific folder."""
6666

67+
Submit: grpc.UnaryUnaryMultiCallable[
68+
yandex.cloud.ai.assistants.v1.runs.run_service_pb2.SubmitToRunRequest,
69+
yandex.cloud.ai.assistants.v1.runs.run_service_pb2.SubmitToRunResponse,
70+
]
71+
"""Submit event to run
72+
For example, submit function call results when the run is waiting for user input.
73+
"""
74+
6775
class RunServiceAsyncStub:
6876
"""RunService provides operations for managing runs."""
6977

@@ -109,6 +117,14 @@ class RunServiceAsyncStub:
109117
]
110118
"""List runs in a specific folder."""
111119

120+
Submit: grpc.aio.UnaryUnaryMultiCallable[
121+
yandex.cloud.ai.assistants.v1.runs.run_service_pb2.SubmitToRunRequest,
122+
yandex.cloud.ai.assistants.v1.runs.run_service_pb2.SubmitToRunResponse,
123+
]
124+
"""Submit event to run
125+
For example, submit function call results when the run is waiting for user input.
126+
"""
127+
112128
class RunServiceServicer(metaclass=abc.ABCMeta):
113129
"""RunService provides operations for managing runs."""
114130

@@ -166,4 +182,14 @@ class RunServiceServicer(metaclass=abc.ABCMeta):
166182
) -> typing.Union[yandex.cloud.ai.assistants.v1.runs.run_service_pb2.ListRunsResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.runs.run_service_pb2.ListRunsResponse]]:
167183
"""List runs in a specific folder."""
168184

185+
@abc.abstractmethod
186+
def Submit(
187+
self,
188+
request: yandex.cloud.ai.assistants.v1.runs.run_service_pb2.SubmitToRunRequest,
189+
context: _ServicerContext,
190+
) -> typing.Union[yandex.cloud.ai.assistants.v1.runs.run_service_pb2.SubmitToRunResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.runs.run_service_pb2.SubmitToRunResponse]]:
191+
"""Submit event to run
192+
For example, submit function call results when the run is waiting for user input.
193+
"""
194+
169195
def add_RunServiceServicer_to_server(servicer: RunServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...

0 commit comments

Comments
 (0)