sapiopycommons 2025.4.25a497__py3-none-any.whl → 2025.4.30a499__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.
Potentially problematic release.
This version of sapiopycommons might be problematic. Click here for more details.
- sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2.py +43 -0
- sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2.pyi +31 -0
- sapiopycommons/ai/api/fielddefinitions/proto/fields_pb2_grpc.py +24 -0
- sapiopycommons/ai/api/fielddefinitions/proto/velox_field_def_pb2.py +89 -89
- sapiopycommons/ai/api/fielddefinitions/proto/velox_field_def_pb2.pyi +174 -174
- sapiopycommons/ai/api/plan/proto/step_output_pb2.py +11 -11
- sapiopycommons/ai/api/plan/proto/step_output_pb2.pyi +27 -27
- sapiopycommons/ai/api/plan/proto/step_pb2.py +9 -9
- sapiopycommons/ai/api/plan/proto/step_pb2.pyi +10 -10
- sapiopycommons/ai/api/plan/script/proto/script_pb2.py +13 -13
- sapiopycommons/ai/api/plan/script/proto/script_pb2.pyi +39 -39
- sapiopycommons/ai/api/plan/script/proto/script_pb2_grpc.py +12 -12
- sapiopycommons/ai/api/plan/tool/proto/entry_pb2.py +23 -23
- sapiopycommons/ai/api/plan/tool/proto/entry_pb2.pyi +63 -63
- sapiopycommons/ai/api/plan/tool/proto/tool_pb2.py +25 -31
- sapiopycommons/ai/api/plan/tool/proto/tool_pb2.pyi +136 -158
- sapiopycommons/ai/api/plan/tool/proto/tool_pb2_grpc.py +12 -12
- sapiopycommons/ai/api/session/proto/sapio_conn_info_pb2.py +5 -5
- sapiopycommons/ai/api/session/proto/sapio_conn_info_pb2.pyi +8 -8
- sapiopycommons/ai/protobuf_utils.py +452 -0
- sapiopycommons/ai/tool_service_base.py +288 -162
- {sapiopycommons-2025.4.25a497.dist-info → sapiopycommons-2025.4.30a499.dist-info}/METADATA +1 -1
- {sapiopycommons-2025.4.25a497.dist-info → sapiopycommons-2025.4.30a499.dist-info}/RECORD +25 -22
- sapiopycommons/ai/tool_of_tools.py +0 -917
- {sapiopycommons-2025.4.25a497.dist-info → sapiopycommons-2025.4.30a499.dist-info}/WHEEL +0 -0
- {sapiopycommons-2025.4.25a497.dist-info → sapiopycommons-2025.4.30a499.dist-info}/licenses/LICENSE +0 -0
|
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2sapiopycommons/ai/api/plan/proto/step_output.proto\"
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2sapiopycommons/ai/api/plan/proto/step_output.proto\"(\n\x18StepJsonSingletonItemPbo\x12\x0c\n\x04item\x18\x01 \x01(\t\"(\n\x18StepTextSingletonItemPbo\x12\x0c\n\x04item\x18\x01 \x01(\t\"(\n\x17StepCsvSingletonItemPbo\x12\r\n\x05\x63\x65lls\x18\x01 \x03(\t\"*\n\x1aStepBinarySingletonItemPbo\x12\x0c\n\x04item\x18\x01 \x01(\x0c\"\xf6\x01\n\x14StepSingletonItemPbo\x12\x33\n\x0ejson_singleton\x18\x01 \x01(\x0b\x32\x19.StepJsonSingletonItemPboH\x00\x12\x33\n\x0etext_singleton\x18\x02 \x01(\x0b\x32\x19.StepTextSingletonItemPboH\x00\x12\x31\n\rcsv_singleton\x18\x03 \x01(\x0b\x32\x18.StepCsvSingletonItemPboH\x00\x12\x37\n\x10\x62inary_singleton\x18\x04 \x01(\x0b\x32\x1b.StepBinarySingletonItemPboH\x00\x42\x08\n\x06outputB\x1c\n\x18\x63om.velox.api.plan.protoP\x01\x62\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -32,14 +32,14 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sapiopycommons.ai.api.plan.
|
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
34
|
_globals['DESCRIPTOR']._serialized_options = b'\n\030com.velox.api.plan.protoP\001'
|
|
35
|
-
_globals['
|
|
36
|
-
_globals['
|
|
37
|
-
_globals['
|
|
38
|
-
_globals['
|
|
39
|
-
_globals['
|
|
40
|
-
_globals['
|
|
41
|
-
_globals['
|
|
42
|
-
_globals['
|
|
43
|
-
_globals['
|
|
44
|
-
_globals['
|
|
35
|
+
_globals['_STEPJSONSINGLETONITEMPBO']._serialized_start=54
|
|
36
|
+
_globals['_STEPJSONSINGLETONITEMPBO']._serialized_end=94
|
|
37
|
+
_globals['_STEPTEXTSINGLETONITEMPBO']._serialized_start=96
|
|
38
|
+
_globals['_STEPTEXTSINGLETONITEMPBO']._serialized_end=136
|
|
39
|
+
_globals['_STEPCSVSINGLETONITEMPBO']._serialized_start=138
|
|
40
|
+
_globals['_STEPCSVSINGLETONITEMPBO']._serialized_end=178
|
|
41
|
+
_globals['_STEPBINARYSINGLETONITEMPBO']._serialized_start=180
|
|
42
|
+
_globals['_STEPBINARYSINGLETONITEMPBO']._serialized_end=222
|
|
43
|
+
_globals['_STEPSINGLETONITEMPBO']._serialized_start=225
|
|
44
|
+
_globals['_STEPSINGLETONITEMPBO']._serialized_end=471
|
|
45
45
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -5,38 +5,38 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
|
|
|
5
5
|
|
|
6
6
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
7
|
|
|
8
|
-
class
|
|
9
|
-
__slots__ = ("
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
def __init__(self,
|
|
8
|
+
class StepJsonSingletonItemPbo(_message.Message):
|
|
9
|
+
__slots__ = ("item",)
|
|
10
|
+
ITEM_FIELD_NUMBER: _ClassVar[int]
|
|
11
|
+
item: str
|
|
12
|
+
def __init__(self, item: _Optional[str] = ...) -> None: ...
|
|
13
13
|
|
|
14
|
-
class
|
|
15
|
-
__slots__ = ("
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def __init__(self,
|
|
14
|
+
class StepTextSingletonItemPbo(_message.Message):
|
|
15
|
+
__slots__ = ("item",)
|
|
16
|
+
ITEM_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
item: str
|
|
18
|
+
def __init__(self, item: _Optional[str] = ...) -> None: ...
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class StepCsvSingletonItemPbo(_message.Message):
|
|
21
21
|
__slots__ = ("cells",)
|
|
22
22
|
CELLS_FIELD_NUMBER: _ClassVar[int]
|
|
23
23
|
cells: _containers.RepeatedScalarFieldContainer[str]
|
|
24
24
|
def __init__(self, cells: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
25
25
|
|
|
26
|
-
class
|
|
27
|
-
__slots__ = ("
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
def __init__(self,
|
|
26
|
+
class StepBinarySingletonItemPbo(_message.Message):
|
|
27
|
+
__slots__ = ("item",)
|
|
28
|
+
ITEM_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
item: bytes
|
|
30
|
+
def __init__(self, item: _Optional[bytes] = ...) -> None: ...
|
|
31
31
|
|
|
32
|
-
class
|
|
33
|
-
__slots__ = ("
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
def __init__(self,
|
|
32
|
+
class StepSingletonItemPbo(_message.Message):
|
|
33
|
+
__slots__ = ("json_singleton", "text_singleton", "csv_singleton", "binary_singleton")
|
|
34
|
+
JSON_SINGLETON_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
TEXT_SINGLETON_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
CSV_SINGLETON_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
BINARY_SINGLETON_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
json_singleton: StepJsonSingletonItemPbo
|
|
39
|
+
text_singleton: StepTextSingletonItemPbo
|
|
40
|
+
csv_singleton: StepCsvSingletonItemPbo
|
|
41
|
+
binary_singleton: StepBinarySingletonItemPbo
|
|
42
|
+
def __init__(self, json_singleton: _Optional[_Union[StepJsonSingletonItemPbo, _Mapping]] = ..., text_singleton: _Optional[_Union[StepTextSingletonItemPbo, _Mapping]] = ..., csv_singleton: _Optional[_Union[StepCsvSingletonItemPbo, _Mapping]] = ..., binary_singleton: _Optional[_Union[StepBinarySingletonItemPbo, _Mapping]] = ...) -> None: ...
|
|
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+sapiopycommons/ai/api/plan/proto/step.proto\"
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+sapiopycommons/ai/api/plan/proto/step.proto\"N\n\rStepIoInfoPbo\x12\x16\n\x0estep_io_number\x18\x01 \x01(\x05\x12\x14\n\x0c\x63ontent_type\x18\x02 \x01(\t\x12\x0f\n\x07io_name\x18\x03 \x01(\t\"r\n\x10StepIoDetailsPbo\x12$\n\x0cstep_io_info\x18\x01 \x01(\x0b\x32\x0e.StepIoInfoPbo\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07\x65xample\x18\x03 \x01(\t\x12\x12\n\nvalidation\x18\x04 \x01(\t\"p\n\x13StepInputDetailsPbo\x12*\n\x0fstep_io_details\x18\x01 \x01(\x0b\x32\x11.StepIoDetailsPbo\x12\x18\n\x10paging_supported\x18\x02 \x01(\x08\x12\x13\n\x0bmax_entries\x18\x03 \x01(\x05\"B\n\x14StepOutputDetailsPbo\x12*\n\x0fstep_io_details\x18\x01 \x01(\x0b\x32\x11.StepIoDetailsPboB\x1c\n\x18\x63om.velox.api.plan.protoP\x01\x62\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -32,12 +32,12 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sapiopycommons.ai.api.plan.
|
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
34
|
_globals['DESCRIPTOR']._serialized_options = b'\n\030com.velox.api.plan.protoP\001'
|
|
35
|
-
_globals['
|
|
36
|
-
_globals['
|
|
37
|
-
_globals['
|
|
38
|
-
_globals['
|
|
39
|
-
_globals['
|
|
40
|
-
_globals['
|
|
41
|
-
_globals['
|
|
42
|
-
_globals['
|
|
35
|
+
_globals['_STEPIOINFOPBO']._serialized_start=47
|
|
36
|
+
_globals['_STEPIOINFOPBO']._serialized_end=125
|
|
37
|
+
_globals['_STEPIODETAILSPBO']._serialized_start=127
|
|
38
|
+
_globals['_STEPIODETAILSPBO']._serialized_end=241
|
|
39
|
+
_globals['_STEPINPUTDETAILSPBO']._serialized_start=243
|
|
40
|
+
_globals['_STEPINPUTDETAILSPBO']._serialized_end=355
|
|
41
|
+
_globals['_STEPOUTPUTDETAILSPBO']._serialized_start=357
|
|
42
|
+
_globals['_STEPOUTPUTDETAILSPBO']._serialized_end=423
|
|
43
43
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -4,7 +4,7 @@ from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Opti
|
|
|
4
4
|
|
|
5
5
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
6
6
|
|
|
7
|
-
class
|
|
7
|
+
class StepIoInfoPbo(_message.Message):
|
|
8
8
|
__slots__ = ("step_io_number", "content_type", "io_name")
|
|
9
9
|
STEP_IO_NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
10
10
|
CONTENT_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -14,30 +14,30 @@ class StepIoInfo(_message.Message):
|
|
|
14
14
|
io_name: str
|
|
15
15
|
def __init__(self, step_io_number: _Optional[int] = ..., content_type: _Optional[str] = ..., io_name: _Optional[str] = ...) -> None: ...
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class StepIoDetailsPbo(_message.Message):
|
|
18
18
|
__slots__ = ("step_io_info", "description", "example", "validation")
|
|
19
19
|
STEP_IO_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
20
20
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
21
21
|
EXAMPLE_FIELD_NUMBER: _ClassVar[int]
|
|
22
22
|
VALIDATION_FIELD_NUMBER: _ClassVar[int]
|
|
23
|
-
step_io_info:
|
|
23
|
+
step_io_info: StepIoInfoPbo
|
|
24
24
|
description: str
|
|
25
25
|
example: str
|
|
26
26
|
validation: str
|
|
27
|
-
def __init__(self, step_io_info: _Optional[_Union[
|
|
27
|
+
def __init__(self, step_io_info: _Optional[_Union[StepIoInfoPbo, _Mapping]] = ..., description: _Optional[str] = ..., example: _Optional[str] = ..., validation: _Optional[str] = ...) -> None: ...
|
|
28
28
|
|
|
29
|
-
class
|
|
29
|
+
class StepInputDetailsPbo(_message.Message):
|
|
30
30
|
__slots__ = ("step_io_details", "paging_supported", "max_entries")
|
|
31
31
|
STEP_IO_DETAILS_FIELD_NUMBER: _ClassVar[int]
|
|
32
32
|
PAGING_SUPPORTED_FIELD_NUMBER: _ClassVar[int]
|
|
33
33
|
MAX_ENTRIES_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
-
step_io_details:
|
|
34
|
+
step_io_details: StepIoDetailsPbo
|
|
35
35
|
paging_supported: bool
|
|
36
36
|
max_entries: int
|
|
37
|
-
def __init__(self, step_io_details: _Optional[_Union[
|
|
37
|
+
def __init__(self, step_io_details: _Optional[_Union[StepIoDetailsPbo, _Mapping]] = ..., paging_supported: bool = ..., max_entries: _Optional[int] = ...) -> None: ...
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class StepOutputDetailsPbo(_message.Message):
|
|
40
40
|
__slots__ = ("step_io_details",)
|
|
41
41
|
STEP_IO_DETAILS_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
-
step_io_details:
|
|
43
|
-
def __init__(self, step_io_details: _Optional[_Union[
|
|
42
|
+
step_io_details: StepIoDetailsPbo
|
|
43
|
+
def __init__(self, step_io_details: _Optional[_Union[StepIoDetailsPbo, _Mapping]] = ...) -> None: ...
|
|
@@ -30,7 +30,7 @@ from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import *
|
|
|
30
30
|
from sapiopycommons.ai.api.plan.proto.step_pb2 import *
|
|
31
31
|
from sapiopycommons.ai.api.session.proto.sapio_conn_info_pb2 import *
|
|
32
32
|
|
|
33
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4sapiopycommons/ai/api/plan/script/proto/script.proto\x1a\x31sapiopycommons/ai/api/plan/tool/proto/entry.proto\x1a+sapiopycommons/ai/api/plan/proto/step.proto\x1a\x39sapiopycommons/ai/api/session/proto/sapio_conn_info.proto\"\
|
|
33
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4sapiopycommons/ai/api/plan/script/proto/script.proto\x1a\x31sapiopycommons/ai/api/plan/tool/proto/entry.proto\x1a+sapiopycommons/ai/api/plan/proto/step.proto\x1a\x39sapiopycommons/ai/api/session/proto/sapio_conn_info.proto\"\xf6\x02\n\x19\x43reateScriptJobRequestPbo\x12+\n\nsapio_user\x18\x01 \x01(\x0b\x32\x17.SapioConnectionInfoPbo\x12\x17\n\x0fscript_language\x18\x02 \x01(\t\x12\x18\n\x10plan_instance_id\x18\x03 \x01(\x03\x12\x18\n\x10step_instance_id\x18\x04 \x01(\x03\x12\x15\n\rinvocation_id\x18\x05 \x01(\x03\x12%\n\rinput_configs\x18\x06 \x03(\x0b\x32\x0e.StepIoInfoPbo\x12&\n\x0eoutput_configs\x18\x07 \x03(\x0b\x32\x0e.StepIoInfoPbo\x12\x0f\n\x06script\x18\x80\x08 \x01(\t\x12\x10\n\x07timeout\x18\x81\x08 \x01(\x05\x12\x16\n\rmax_memory_mb\x18\x82\x08 \x01(\x05\x12\x1a\n\x11working_directory\x18\x83\x08 \x01(\t\x12\"\n\x05input\x18\xff\x0f \x03(\x0b\x32\x12.StepInputBatchPbo\",\n\x1a\x43reateScriptJobResponsePbo\x12\x0e\n\x06job_id\x18\x01 \x01(\t\"6\n\x10GetJobRequestPbo\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x12\n\nlog_offset\x18\x02 \x01(\x05\"u\n\x11GetJobResponsePbo\x12\x1a\n\x06status\x18\x01 \x01(\x0e\x32\n.JobStatus\x12\x0b\n\x03log\x18\x02 \x01(\t\x12\x11\n\texception\x18\x03 \x01(\t\x12$\n\x06output\x18\xff\x0f \x03(\x0b\x32\x13.StepOutputBatchPbo*@\n\tJobStatus\x12\x0b\n\x07PENDING\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x32\x8c\x01\n\rScriptService\x12J\n\x0f\x43reateScriptJob\x12\x1a.CreateScriptJobRequestPbo\x1a\x1b.CreateScriptJobResponsePbo\x12/\n\x06GetJob\x12\x11.GetJobRequestPbo\x1a\x12.GetJobResponsePboB!\n\x1f\x63om.velox.api.plan.script.protoP\x00P\x01P\x02\x62\x06proto3')
|
|
34
34
|
|
|
35
35
|
_globals = globals()
|
|
36
36
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -38,16 +38,16 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sapiopycommons.ai.api.plan.
|
|
|
38
38
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
39
39
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
40
40
|
_globals['DESCRIPTOR']._serialized_options = b'\n\037com.velox.api.plan.script.proto'
|
|
41
|
-
_globals['_JOBSTATUS']._serialized_start=
|
|
42
|
-
_globals['_JOBSTATUS']._serialized_end=
|
|
43
|
-
_globals['
|
|
44
|
-
_globals['
|
|
45
|
-
_globals['
|
|
46
|
-
_globals['
|
|
47
|
-
_globals['
|
|
48
|
-
_globals['
|
|
49
|
-
_globals['
|
|
50
|
-
_globals['
|
|
51
|
-
_globals['_SCRIPTSERVICE']._serialized_start=
|
|
52
|
-
_globals['_SCRIPTSERVICE']._serialized_end=
|
|
41
|
+
_globals['_JOBSTATUS']._serialized_start=809
|
|
42
|
+
_globals['_JOBSTATUS']._serialized_end=873
|
|
43
|
+
_globals['_CREATESCRIPTJOBREQUESTPBO']._serialized_start=212
|
|
44
|
+
_globals['_CREATESCRIPTJOBREQUESTPBO']._serialized_end=586
|
|
45
|
+
_globals['_CREATESCRIPTJOBRESPONSEPBO']._serialized_start=588
|
|
46
|
+
_globals['_CREATESCRIPTJOBRESPONSEPBO']._serialized_end=632
|
|
47
|
+
_globals['_GETJOBREQUESTPBO']._serialized_start=634
|
|
48
|
+
_globals['_GETJOBREQUESTPBO']._serialized_end=688
|
|
49
|
+
_globals['_GETJOBRESPONSEPBO']._serialized_start=690
|
|
50
|
+
_globals['_GETJOBRESPONSEPBO']._serialized_end=807
|
|
51
|
+
_globals['_SCRIPTSERVICE']._serialized_start=876
|
|
52
|
+
_globals['_SCRIPTSERVICE']._serialized_end=1016
|
|
53
53
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -6,32 +6,32 @@ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
|
6
6
|
from google.protobuf import descriptor as _descriptor
|
|
7
7
|
from google.protobuf import message as _message
|
|
8
8
|
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
9
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
10
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
11
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
12
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
13
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
14
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
15
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
16
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
17
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
18
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
19
|
-
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import
|
|
20
|
-
from sapiopycommons.ai.api.plan.proto.step_pb2 import
|
|
21
|
-
from sapiopycommons.ai.api.plan.proto.step_pb2 import
|
|
22
|
-
from sapiopycommons.ai.api.plan.proto.step_pb2 import
|
|
23
|
-
from sapiopycommons.ai.api.plan.proto.step_pb2 import
|
|
24
|
-
from sapiopycommons.ai.api.session.proto.sapio_conn_info_pb2 import
|
|
25
|
-
from sapiopycommons.ai.api.session.proto.sapio_conn_info_pb2 import
|
|
9
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepCsvHeaderRowPbo as StepCsvHeaderRowPbo
|
|
10
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepCsvRowPbo as StepCsvRowPbo
|
|
11
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepCsvContainerPbo as StepCsvContainerPbo
|
|
12
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepJsonContainerPbo as StepJsonContainerPbo
|
|
13
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepTextContainerPbo as StepTextContainerPbo
|
|
14
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepBinaryContainerPbo as StepBinaryContainerPbo
|
|
15
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepImageContainerPbo as StepImageContainerPbo
|
|
16
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepItemContainerPbo as StepItemContainerPbo
|
|
17
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepInputBatchPbo as StepInputBatchPbo
|
|
18
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import StepOutputBatchPbo as StepOutputBatchPbo
|
|
19
|
+
from sapiopycommons.ai.api.plan.tool.proto.entry_pb2 import DataTypePbo as DataTypePbo
|
|
20
|
+
from sapiopycommons.ai.api.plan.proto.step_pb2 import StepIoInfoPbo as StepIoInfoPbo
|
|
21
|
+
from sapiopycommons.ai.api.plan.proto.step_pb2 import StepIoDetailsPbo as StepIoDetailsPbo
|
|
22
|
+
from sapiopycommons.ai.api.plan.proto.step_pb2 import StepInputDetailsPbo as StepInputDetailsPbo
|
|
23
|
+
from sapiopycommons.ai.api.plan.proto.step_pb2 import StepOutputDetailsPbo as StepOutputDetailsPbo
|
|
24
|
+
from sapiopycommons.ai.api.session.proto.sapio_conn_info_pb2 import SapioConnectionInfoPbo as SapioConnectionInfoPbo
|
|
25
|
+
from sapiopycommons.ai.api.session.proto.sapio_conn_info_pb2 import SapioUserSecretTypePbo as SapioUserSecretTypePbo
|
|
26
26
|
|
|
27
27
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
28
|
-
BINARY: _entry_pb2.
|
|
29
|
-
JSON: _entry_pb2.
|
|
30
|
-
CSV: _entry_pb2.
|
|
31
|
-
TEXT: _entry_pb2.
|
|
32
|
-
IMAGE: _entry_pb2.
|
|
33
|
-
SESSION_TOKEN: _sapio_conn_info_pb2.
|
|
34
|
-
PASSWORD: _sapio_conn_info_pb2.
|
|
28
|
+
BINARY: _entry_pb2.DataTypePbo
|
|
29
|
+
JSON: _entry_pb2.DataTypePbo
|
|
30
|
+
CSV: _entry_pb2.DataTypePbo
|
|
31
|
+
TEXT: _entry_pb2.DataTypePbo
|
|
32
|
+
IMAGE: _entry_pb2.DataTypePbo
|
|
33
|
+
SESSION_TOKEN: _sapio_conn_info_pb2.SapioUserSecretTypePbo
|
|
34
|
+
PASSWORD: _sapio_conn_info_pb2.SapioUserSecretTypePbo
|
|
35
35
|
|
|
36
36
|
class JobStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
37
37
|
__slots__ = ()
|
|
@@ -44,8 +44,8 @@ RUNNING: JobStatus
|
|
|
44
44
|
COMPLETED: JobStatus
|
|
45
45
|
FAILED: JobStatus
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
__slots__ = ("sapio_user", "script_language", "plan_instance_id", "step_instance_id", "invocation_id", "input_configs", "output_configs", "script", "timeout", "max_memory_mb", "working_directory", "
|
|
47
|
+
class CreateScriptJobRequestPbo(_message.Message):
|
|
48
|
+
__slots__ = ("sapio_user", "script_language", "plan_instance_id", "step_instance_id", "invocation_id", "input_configs", "output_configs", "script", "timeout", "max_memory_mb", "working_directory", "input")
|
|
49
49
|
SAPIO_USER_FIELD_NUMBER: _ClassVar[int]
|
|
50
50
|
SCRIPT_LANGUAGE_FIELD_NUMBER: _ClassVar[int]
|
|
51
51
|
PLAN_INSTANCE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -57,28 +57,28 @@ class CreateScriptJobRequest(_message.Message):
|
|
|
57
57
|
TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
58
58
|
MAX_MEMORY_MB_FIELD_NUMBER: _ClassVar[int]
|
|
59
59
|
WORKING_DIRECTORY_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
-
|
|
61
|
-
sapio_user: _sapio_conn_info_pb2.
|
|
60
|
+
INPUT_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
sapio_user: _sapio_conn_info_pb2.SapioConnectionInfoPbo
|
|
62
62
|
script_language: str
|
|
63
63
|
plan_instance_id: int
|
|
64
64
|
step_instance_id: int
|
|
65
65
|
invocation_id: int
|
|
66
|
-
input_configs: _containers.RepeatedCompositeFieldContainer[_step_pb2.
|
|
67
|
-
output_configs: _containers.RepeatedCompositeFieldContainer[_step_pb2.
|
|
66
|
+
input_configs: _containers.RepeatedCompositeFieldContainer[_step_pb2.StepIoInfoPbo]
|
|
67
|
+
output_configs: _containers.RepeatedCompositeFieldContainer[_step_pb2.StepIoInfoPbo]
|
|
68
68
|
script: str
|
|
69
69
|
timeout: int
|
|
70
70
|
max_memory_mb: int
|
|
71
71
|
working_directory: str
|
|
72
|
-
|
|
73
|
-
def __init__(self, sapio_user: _Optional[_Union[_sapio_conn_info_pb2.
|
|
72
|
+
input: _containers.RepeatedCompositeFieldContainer[_entry_pb2.StepInputBatchPbo]
|
|
73
|
+
def __init__(self, sapio_user: _Optional[_Union[_sapio_conn_info_pb2.SapioConnectionInfoPbo, _Mapping]] = ..., script_language: _Optional[str] = ..., plan_instance_id: _Optional[int] = ..., step_instance_id: _Optional[int] = ..., invocation_id: _Optional[int] = ..., input_configs: _Optional[_Iterable[_Union[_step_pb2.StepIoInfoPbo, _Mapping]]] = ..., output_configs: _Optional[_Iterable[_Union[_step_pb2.StepIoInfoPbo, _Mapping]]] = ..., script: _Optional[str] = ..., timeout: _Optional[int] = ..., max_memory_mb: _Optional[int] = ..., working_directory: _Optional[str] = ..., input: _Optional[_Iterable[_Union[_entry_pb2.StepInputBatchPbo, _Mapping]]] = ...) -> None: ...
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class CreateScriptJobResponsePbo(_message.Message):
|
|
76
76
|
__slots__ = ("job_id",)
|
|
77
77
|
JOB_ID_FIELD_NUMBER: _ClassVar[int]
|
|
78
78
|
job_id: str
|
|
79
79
|
def __init__(self, job_id: _Optional[str] = ...) -> None: ...
|
|
80
80
|
|
|
81
|
-
class
|
|
81
|
+
class GetJobRequestPbo(_message.Message):
|
|
82
82
|
__slots__ = ("job_id", "log_offset")
|
|
83
83
|
JOB_ID_FIELD_NUMBER: _ClassVar[int]
|
|
84
84
|
LOG_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -86,14 +86,14 @@ class GetJobRequest(_message.Message):
|
|
|
86
86
|
log_offset: int
|
|
87
87
|
def __init__(self, job_id: _Optional[str] = ..., log_offset: _Optional[int] = ...) -> None: ...
|
|
88
88
|
|
|
89
|
-
class
|
|
90
|
-
__slots__ = ("status", "log", "exception", "
|
|
89
|
+
class GetJobResponsePbo(_message.Message):
|
|
90
|
+
__slots__ = ("status", "log", "exception", "output")
|
|
91
91
|
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
92
92
|
LOG_FIELD_NUMBER: _ClassVar[int]
|
|
93
93
|
EXCEPTION_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
-
|
|
94
|
+
OUTPUT_FIELD_NUMBER: _ClassVar[int]
|
|
95
95
|
status: JobStatus
|
|
96
96
|
log: str
|
|
97
97
|
exception: str
|
|
98
|
-
|
|
99
|
-
def __init__(self, status: _Optional[_Union[JobStatus, str]] = ..., log: _Optional[str] = ..., exception: _Optional[str] = ...,
|
|
98
|
+
output: _containers.RepeatedCompositeFieldContainer[_entry_pb2.StepOutputBatchPbo]
|
|
99
|
+
def __init__(self, status: _Optional[_Union[JobStatus, str]] = ..., log: _Optional[str] = ..., exception: _Optional[str] = ..., output: _Optional[_Iterable[_Union[_entry_pb2.StepOutputBatchPbo, _Mapping]]] = ...) -> None: ...
|
|
@@ -40,13 +40,13 @@ class ScriptServiceStub(object):
|
|
|
40
40
|
"""
|
|
41
41
|
self.CreateScriptJob = channel.unary_unary(
|
|
42
42
|
'/ScriptService/CreateScriptJob',
|
|
43
|
-
request_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
44
|
-
response_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
43
|
+
request_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.CreateScriptJobRequestPbo.SerializeToString,
|
|
44
|
+
response_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.CreateScriptJobResponsePbo.FromString,
|
|
45
45
|
_registered_method=True)
|
|
46
46
|
self.GetJob = channel.unary_unary(
|
|
47
47
|
'/ScriptService/GetJob',
|
|
48
|
-
request_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
49
|
-
response_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
48
|
+
request_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.GetJobRequestPbo.SerializeToString,
|
|
49
|
+
response_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.GetJobResponsePbo.FromString,
|
|
50
50
|
_registered_method=True)
|
|
51
51
|
|
|
52
52
|
|
|
@@ -75,13 +75,13 @@ def add_ScriptServiceServicer_to_server(servicer, server):
|
|
|
75
75
|
rpc_method_handlers = {
|
|
76
76
|
'CreateScriptJob': grpc.unary_unary_rpc_method_handler(
|
|
77
77
|
servicer.CreateScriptJob,
|
|
78
|
-
request_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
79
|
-
response_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
78
|
+
request_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.CreateScriptJobRequestPbo.FromString,
|
|
79
|
+
response_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.CreateScriptJobResponsePbo.SerializeToString,
|
|
80
80
|
),
|
|
81
81
|
'GetJob': grpc.unary_unary_rpc_method_handler(
|
|
82
82
|
servicer.GetJob,
|
|
83
|
-
request_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
84
|
-
response_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
83
|
+
request_deserializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.GetJobRequestPbo.FromString,
|
|
84
|
+
response_serializer=sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.GetJobResponsePbo.SerializeToString,
|
|
85
85
|
),
|
|
86
86
|
}
|
|
87
87
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
@@ -113,8 +113,8 @@ class ScriptService(object):
|
|
|
113
113
|
request,
|
|
114
114
|
target,
|
|
115
115
|
'/ScriptService/CreateScriptJob',
|
|
116
|
-
sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
117
|
-
sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
116
|
+
sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.CreateScriptJobRequestPbo.SerializeToString,
|
|
117
|
+
sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.CreateScriptJobResponsePbo.FromString,
|
|
118
118
|
options,
|
|
119
119
|
channel_credentials,
|
|
120
120
|
insecure,
|
|
@@ -140,8 +140,8 @@ class ScriptService(object):
|
|
|
140
140
|
request,
|
|
141
141
|
target,
|
|
142
142
|
'/ScriptService/GetJob',
|
|
143
|
-
sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
144
|
-
sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.
|
|
143
|
+
sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.GetJobRequestPbo.SerializeToString,
|
|
144
|
+
sapiopycommons_dot_ai_dot_api_dot_plan_dot_script_dot_proto_dot_script__pb2.GetJobResponsePbo.FromString,
|
|
145
145
|
options,
|
|
146
146
|
channel_credentials,
|
|
147
147
|
insecure,
|
|
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1sapiopycommons/ai/api/plan/tool/proto/entry.proto\"
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1sapiopycommons/ai/api/plan/tool/proto/entry.proto\"$\n\x13StepCsvHeaderRowPbo\x12\r\n\x05\x63\x65lls\x18\x01 \x03(\t\"\x1e\n\rStepCsvRowPbo\x12\r\n\x05\x63\x65lls\x18\x01 \x03(\t\"Z\n\x13StepCsvContainerPbo\x12$\n\x06header\x18\x0e \x01(\x0b\x32\x14.StepCsvHeaderRowPbo\x12\x1d\n\x05items\x18\x0f \x03(\x0b\x32\x0e.StepCsvRowPbo\"%\n\x14StepJsonContainerPbo\x12\r\n\x05items\x18\x0f \x03(\t\"%\n\x14StepTextContainerPbo\x12\r\n\x05items\x18\x0f \x03(\t\"\'\n\x16StepBinaryContainerPbo\x12\r\n\x05items\x18\x0f \x03(\x0c\"<\n\x15StepImageContainerPbo\x12\x14\n\x0cimage_format\x18\x01 \x01(\t\x12\r\n\x05items\x18\x0f \x03(\x0c\"\xc1\x02\n\x14StepItemContainerPbo\x12\x1e\n\x08\x64\x61taType\x18\x01 \x01(\x0e\x32\x0c.DataTypePbo\x12\x34\n\x10\x62inary_container\x18\xff\x0f \x01(\x0b\x32\x17.StepBinaryContainerPboH\x00\x12.\n\rcsv_container\x18\xfe\x0f \x01(\x0b\x32\x14.StepCsvContainerPboH\x00\x12\x30\n\x0ejson_container\x18\xfd\x0f \x01(\x0b\x32\x15.StepJsonContainerPboH\x00\x12\x30\n\x0etext_container\x18\xfc\x0f \x01(\x0b\x32\x15.StepTextContainerPboH\x00\x12\x32\n\x0fimage_container\x18\xfb\x0f \x01(\x0b\x32\x16.StepImageContainerPboH\x00\x42\x0b\n\tcontainer\"V\n\x11StepInputBatchPbo\x12\x12\n\nis_partial\x18\x02 \x01(\x08\x12-\n\x0eitem_container\x18\x01 \x01(\x0b\x32\x15.StepItemContainerPbo\"C\n\x12StepOutputBatchPbo\x12-\n\x0eitem_container\x18\x01 \x01(\x0b\x32\x15.StepItemContainerPbo*A\n\x0b\x44\x61taTypePbo\x12\n\n\x06\x42INARY\x10\x00\x12\x08\n\x04JSON\x10\x01\x12\x07\n\x03\x43SV\x10\x02\x12\x08\n\x04TEXT\x10\x03\x12\t\n\x05IMAGE\x10\x04\x42!\n\x1d\x63om.velox.api.plan.tool.protoP\x01\x62\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -32,26 +32,26 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sapiopycommons.ai.api.plan.
|
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
34
|
_globals['DESCRIPTOR']._serialized_options = b'\n\035com.velox.api.plan.tool.protoP\001'
|
|
35
|
-
_globals['
|
|
36
|
-
_globals['
|
|
37
|
-
_globals['
|
|
38
|
-
_globals['
|
|
39
|
-
_globals['
|
|
40
|
-
_globals['
|
|
41
|
-
_globals['
|
|
42
|
-
_globals['
|
|
43
|
-
_globals['
|
|
44
|
-
_globals['
|
|
45
|
-
_globals['
|
|
46
|
-
_globals['
|
|
47
|
-
_globals['
|
|
48
|
-
_globals['
|
|
49
|
-
_globals['
|
|
50
|
-
_globals['
|
|
51
|
-
_globals['
|
|
52
|
-
_globals['
|
|
53
|
-
_globals['
|
|
54
|
-
_globals['
|
|
55
|
-
_globals['
|
|
56
|
-
_globals['
|
|
35
|
+
_globals['_DATATYPEPBO']._serialized_start=877
|
|
36
|
+
_globals['_DATATYPEPBO']._serialized_end=942
|
|
37
|
+
_globals['_STEPCSVHEADERROWPBO']._serialized_start=53
|
|
38
|
+
_globals['_STEPCSVHEADERROWPBO']._serialized_end=89
|
|
39
|
+
_globals['_STEPCSVROWPBO']._serialized_start=91
|
|
40
|
+
_globals['_STEPCSVROWPBO']._serialized_end=121
|
|
41
|
+
_globals['_STEPCSVCONTAINERPBO']._serialized_start=123
|
|
42
|
+
_globals['_STEPCSVCONTAINERPBO']._serialized_end=213
|
|
43
|
+
_globals['_STEPJSONCONTAINERPBO']._serialized_start=215
|
|
44
|
+
_globals['_STEPJSONCONTAINERPBO']._serialized_end=252
|
|
45
|
+
_globals['_STEPTEXTCONTAINERPBO']._serialized_start=254
|
|
46
|
+
_globals['_STEPTEXTCONTAINERPBO']._serialized_end=291
|
|
47
|
+
_globals['_STEPBINARYCONTAINERPBO']._serialized_start=293
|
|
48
|
+
_globals['_STEPBINARYCONTAINERPBO']._serialized_end=332
|
|
49
|
+
_globals['_STEPIMAGECONTAINERPBO']._serialized_start=334
|
|
50
|
+
_globals['_STEPIMAGECONTAINERPBO']._serialized_end=394
|
|
51
|
+
_globals['_STEPITEMCONTAINERPBO']._serialized_start=397
|
|
52
|
+
_globals['_STEPITEMCONTAINERPBO']._serialized_end=718
|
|
53
|
+
_globals['_STEPINPUTBATCHPBO']._serialized_start=720
|
|
54
|
+
_globals['_STEPINPUTBATCHPBO']._serialized_end=806
|
|
55
|
+
_globals['_STEPOUTPUTBATCHPBO']._serialized_start=808
|
|
56
|
+
_globals['_STEPOUTPUTBATCHPBO']._serialized_end=875
|
|
57
57
|
# @@protoc_insertion_point(module_scope)
|