rapida-python 0.1.17__tar.gz → 0.1.18__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.
- {rapida_python-0.1.17 → rapida_python-0.1.18}/PKG-INFO +1 -1
- {rapida_python-0.1.17 → rapida_python-0.1.18}/pyproject.toml +1 -1
- rapida_python-0.1.18/rapida/clients/__init__.py +21 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/assistant.py +21 -0
- rapida_python-0.1.18/rapida/clients/call.py +55 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/endpoint.py +21 -0
- rapida_python-0.1.18/rapida/clients/invoke.py +41 -0
- rapida_python-0.1.18/rapida/clients/protos/agent_kit_pb2.py +56 -0
- rapida_python-0.1.18/rapida/clients/protos/agent_kit_pb2.pyi +71 -0
- rapida_python-0.1.18/rapida/clients/protos/agent_kit_pb2_grpc.py +177 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_analysis_pb2.py +5 -5
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_analysis_pb2.pyi +3 -1
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_analysis_pb2_grpc.py +1 -1
- rapida_python-0.1.18/rapida/clients/protos/assistant_api_pb2.py +107 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_api_pb2.pyi +41 -104
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_api_pb2_grpc.py +74 -30
- rapida_python-0.1.18/rapida/clients/protos/assistant_deployment_pb2.py +119 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_deployment_pb2.pyi +58 -38
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_deployment_pb2_grpc.py +1 -1
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_knowledge_pb2.py +5 -5
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_knowledge_pb2.pyi +3 -1
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_knowledge_pb2_grpc.py +1 -1
- rapida_python-0.1.18/rapida/clients/protos/assistant_provider_pb2.py +111 -0
- rapida_python-0.1.18/rapida/clients/protos/assistant_provider_pb2.pyi +243 -0
- rapida_python-0.1.18/rapida/clients/protos/assistant_provider_pb2_grpc.py +24 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_tool_pb2.py +5 -5
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_tool_pb2.pyi +4 -2
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_tool_pb2_grpc.py +1 -1
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_webhook_pb2.py +5 -5
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_webhook_pb2.pyi +4 -2
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_webhook_pb2_grpc.py +1 -1
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/audit_logging_api_pb2.py +5 -5
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/audit_logging_api_pb2.pyi +3 -1
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/audit_logging_api_pb2_grpc.py +1 -1
- rapida_python-0.1.18/rapida/clients/protos/common_pb2.py +226 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/common_pb2.pyi +234 -57
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/common_pb2_grpc.py +1 -1
- rapida_python-0.1.18/rapida/clients/protos/connect_api_pb2.py +51 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/connect_api_pb2.pyi +8 -60
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/connect_api_pb2_grpc.py +1 -87
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/document_api_pb2.py +5 -5
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/document_api_pb2_grpc.py +1 -1
- rapida_python-0.1.18/rapida/clients/protos/endpoint_api_pb2.py +189 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/endpoint_api_pb2.pyi +9 -11
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/endpoint_api_pb2_grpc.py +1 -1
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/integration_api_pb2.py +27 -25
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/integration_api_pb2_grpc.py +216 -15
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/invoker_api_pb2.py +5 -5
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/invoker_api_pb2_grpc.py +1 -1
- rapida_python-0.1.18/rapida/clients/protos/knowledge_api_pb2.py +142 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/knowledge_api_pb2.pyi +6 -6
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/knowledge_api_pb2_grpc.py +1 -1
- rapida_python-0.1.18/rapida/clients/protos/notification_api_pb2.py +49 -0
- rapida_python-0.1.18/rapida/clients/protos/notification_api_pb2.pyi +53 -0
- rapida_python-0.1.17/rapida/clients/protos/provider_api_pb2_grpc.py → rapida_python-0.1.18/rapida/clients/protos/notification_api_pb2_grpc.py +35 -35
- rapida_python-0.1.18/rapida/clients/protos/talk_api_pb2.py +79 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/talk_api_pb2.pyi +14 -103
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/talk_api_pb2_grpc.py +2 -3
- rapida_python-0.1.18/rapida/clients/protos/vault_api_pb2.py +62 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/vault_api_pb2.pyi +12 -36
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/vault_api_pb2_grpc.py +1 -87
- rapida_python-0.1.18/rapida/clients/protos/web_api_pb2.py +189 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/web_api_pb2.pyi +36 -36
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/web_api_pb2_grpc.py +44 -1
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida_python.egg-info/PKG-INFO +1 -1
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida_python.egg-info/SOURCES.txt +13 -10
- rapida_python-0.1.18/tests/test_configs.py +106 -0
- rapida_python-0.1.18/tests/test_connections.py +270 -0
- rapida_python-0.1.18/tests/test_version.py +70 -0
- rapida_python-0.1.17/rapida/clients/call.py +0 -34
- rapida_python-0.1.17/rapida/clients/invoke.py +0 -20
- rapida_python-0.1.17/rapida/clients/protos/assistant_api_pb2.py +0 -136
- rapida_python-0.1.17/rapida/clients/protos/assistant_deployment_pb2.py +0 -95
- rapida_python-0.1.17/rapida/clients/protos/common_pb2.py +0 -173
- rapida_python-0.1.17/rapida/clients/protos/connect_api_pb2.py +0 -67
- rapida_python-0.1.17/rapida/clients/protos/endpoint_api_pb2.py +0 -193
- rapida_python-0.1.17/rapida/clients/protos/knowledge_api_pb2.py +0 -144
- rapida_python-0.1.17/rapida/clients/protos/marketplace_api_pb2.py +0 -48
- rapida_python-0.1.17/rapida/clients/protos/marketplace_api_pb2.pyi +0 -72
- rapida_python-0.1.17/rapida/clients/protos/marketplace_api_pb2_grpc.py +0 -97
- rapida_python-0.1.17/rapida/clients/protos/provider_api_pb2.py +0 -54
- rapida_python-0.1.17/rapida/clients/protos/provider_api_pb2.pyi +0 -71
- rapida_python-0.1.17/rapida/clients/protos/sendgrid_api_pb2.py +0 -51
- rapida_python-0.1.17/rapida/clients/protos/sendgrid_api_pb2.pyi +0 -70
- rapida_python-0.1.17/rapida/clients/protos/sendgrid_api_pb2_grpc.py +0 -183
- rapida_python-0.1.17/rapida/clients/protos/talk_api_pb2.py +0 -108
- rapida_python-0.1.17/rapida/clients/protos/vault_api_pb2.py +0 -76
- rapida_python-0.1.17/rapida/clients/protos/web_api_pb2.py +0 -193
- rapida_python-0.1.17/rapida/utils/__init__.py +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/README.md +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/__init__.py +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/document_api_pb2.pyi +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/integration_api_pb2.pyi +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/invoker_api_pb2.pyi +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/configs/__init__.py +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/connections/__init__.py +0 -0
- {rapida_python-0.1.17/rapida/clients → rapida_python-0.1.18/rapida/utils}/__init__.py +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/utils/rapida_environment.py +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/utils/rapida_header.py +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/utils/rapida_region.py +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/utils/rapida_source.py +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/utils/rapida_value.py +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/version.py +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida_python.egg-info/dependency_links.txt +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida_python.egg-info/requires.txt +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/rapida_python.egg-info/top_level.txt +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/setup.cfg +0 -0
- {rapida_python-0.1.17 → rapida_python-0.1.18}/setup.py +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Copyright (c) 2024. Rapida
|
|
2
|
+
#
|
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
# furnished to do so, subject to the following conditions:
|
|
9
|
+
#
|
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
|
11
|
+
# all copies or substantial portions of the Software.
|
|
12
|
+
#
|
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
# THE SOFTWARE.
|
|
20
|
+
#
|
|
21
|
+
# Author: Prashant <prashant@rapida.ai>
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# Copyright (c) 2024. Rapida
|
|
2
|
+
#
|
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
# furnished to do so, subject to the following conditions:
|
|
9
|
+
#
|
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
|
11
|
+
# all copies or substantial portions of the Software.
|
|
12
|
+
#
|
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
# THE SOFTWARE.
|
|
20
|
+
#
|
|
21
|
+
# Author: Prashant <prashant@rapida.ai>
|
|
1
22
|
from typing import Union
|
|
2
23
|
from rapida.clients.protos.assistant_knowledge_pb2 import (
|
|
3
24
|
GetAllAssistantKnowledgeRequest,
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Copyright (c) 2024. Rapida
|
|
2
|
+
#
|
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
# furnished to do so, subject to the following conditions:
|
|
9
|
+
#
|
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
|
11
|
+
# all copies or substantial portions of the Software.
|
|
12
|
+
#
|
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
# THE SOFTWARE.
|
|
20
|
+
#
|
|
21
|
+
# Author: Prashant <prashant@rapida.ai>
|
|
22
|
+
from typing import Union
|
|
23
|
+
from rapida.clients.protos.talk_api_pb2 import (
|
|
24
|
+
CreateBulkPhoneCallRequest,
|
|
25
|
+
CreateBulkPhoneCallResponse,
|
|
26
|
+
CreatePhoneCallRequest,
|
|
27
|
+
CreatePhoneCallResponse,
|
|
28
|
+
)
|
|
29
|
+
from rapida.connections import ConnectionConfig, UserAuthInfo, ClientAuthInfo
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def create_phone_call(
|
|
33
|
+
client_cfg: ConnectionConfig,
|
|
34
|
+
request: CreatePhoneCallRequest,
|
|
35
|
+
auth: Union[UserAuthInfo, ClientAuthInfo, None] = None,
|
|
36
|
+
) -> CreatePhoneCallResponse:
|
|
37
|
+
if auth is None:
|
|
38
|
+
auth = client_cfg.auth
|
|
39
|
+
return client_cfg.conversation_client.CreatePhoneCall(
|
|
40
|
+
request,
|
|
41
|
+
metadata=auth,
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def create_bulk_phone_call(
|
|
46
|
+
client_cfg: ConnectionConfig,
|
|
47
|
+
request: CreateBulkPhoneCallRequest,
|
|
48
|
+
auth: Union[UserAuthInfo, ClientAuthInfo, None] = None,
|
|
49
|
+
) -> CreateBulkPhoneCallResponse:
|
|
50
|
+
if auth is None:
|
|
51
|
+
auth = client_cfg.auth
|
|
52
|
+
return client_cfg.conversation_client.CreateBulkPhoneCall(
|
|
53
|
+
request,
|
|
54
|
+
metadata=auth,
|
|
55
|
+
)
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# Copyright (c) 2024. Rapida
|
|
2
|
+
#
|
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
# furnished to do so, subject to the following conditions:
|
|
9
|
+
#
|
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
|
11
|
+
# all copies or substantial portions of the Software.
|
|
12
|
+
#
|
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
# THE SOFTWARE.
|
|
20
|
+
#
|
|
21
|
+
# Author: Prashant <prashant@rapida.ai>
|
|
1
22
|
from typing import Union
|
|
2
23
|
from rapida.clients.protos.endpoint_api_pb2 import (
|
|
3
24
|
GetAllEndpointLogRequest,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Copyright (c) 2024. Rapida
|
|
2
|
+
#
|
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
# furnished to do so, subject to the following conditions:
|
|
9
|
+
#
|
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
|
11
|
+
# all copies or substantial portions of the Software.
|
|
12
|
+
#
|
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
# THE SOFTWARE.
|
|
20
|
+
#
|
|
21
|
+
# Author: Prashant <prashant@rapida.ai>
|
|
22
|
+
from typing import Union
|
|
23
|
+
from rapida.clients.protos.invoker_api_pb2 import (
|
|
24
|
+
InvokeRequest,
|
|
25
|
+
InvokeResponse,
|
|
26
|
+
)
|
|
27
|
+
from rapida.connections import ConnectionConfig, UserAuthInfo, ClientAuthInfo
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def invoke(
|
|
31
|
+
client_cfg: ConnectionConfig,
|
|
32
|
+
request: InvokeRequest,
|
|
33
|
+
auth: Union[UserAuthInfo, ClientAuthInfo, None] = None,
|
|
34
|
+
) -> InvokeResponse:
|
|
35
|
+
if auth is None:
|
|
36
|
+
auth = client_cfg.auth
|
|
37
|
+
|
|
38
|
+
return client_cfg.deployment_client.Invoke(
|
|
39
|
+
request,
|
|
40
|
+
metadata=auth,
|
|
41
|
+
)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: agent-kit.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
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
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'agent-kit.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
import rapida.clients.protos.common_pb2 as common__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0f\x61gent-kit.proto\x12\tagent_kit\x1a\x0c\x63ommon.proto\"\x18\n\x16\x43onnectAssistantAction\"\x14\n\x12GetAssistantAction\"\x18\n\x16\x45xecuteAssistantAction\"\xbd\x01\n\x16\x41ssistantActionRequest\x12\x34\n\x07\x63onnect\x18\x01 \x01(\x0b\x32!.agent_kit.ConnectAssistantActionH\x00\x12,\n\x03get\x18\x02 \x01(\x0b\x32\x1d.agent_kit.GetAssistantActionH\x00\x12\x34\n\x07\x65xecute\x18\x03 \x01(\x0b\x32!.agent_kit.ExecuteAssistantActionH\x00\x42\t\n\x07request\"6\n\x15\x41ssistantActionResult\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\t\"\x8b\x01\n\x17\x41ssistantActionResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x15\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x06.Error\x12\x32\n\x06result\x18\n \x01(\x0b\x32 .agent_kit.AssistantActionResultH\x00\x42\x06\n\x04\x64\x61ta\"\x91\x01\n\x10\x41gentTalkRequest\x12<\n\rconfiguration\x18\x02 \x01(\x0b\x32#.AssistantConversationConfigurationH\x00\x12\x34\n\x07message\x18\x03 \x01(\x0b\x32!.AssistantConversationUserMessageH\x00\x42\t\n\x07request\"\xca\x01\n\x11\x41gentTalkResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x15\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x06.Error\x12:\n\x0cinterruption\x18\n \x01(\x0b\x32\".AssistantConversationInterruptionH\x00\x12;\n\tassistant\x18\x0c \x01(\x0b\x32&.AssistantConversationAssistantMessageH\x00\x42\x06\n\x04\x64\x61ta2b\n\x0b\x41gentAction\x12S\n\x06\x41\x63tion\x12!.agent_kit.AssistantActionRequest\x1a\".agent_kit.AssistantActionResponse(\x01\x30\x01\x32R\n\tAgentTalk\x12\x45\n\x04Talk\x12\x1b.agent_kit.AgentTalkRequest\x1a\x1c.agent_kit.AgentTalkResponse(\x01\x30\x01\x42\x35\n\x17\x61i.rapida.sdk.artifactsZ\x1agithub.com/rapidaai/protosb\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'agent_kit_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027ai.rapida.sdk.artifactsZ\032github.com/rapidaai/protos'
|
|
36
|
+
_globals['_CONNECTASSISTANTACTION']._serialized_start=44
|
|
37
|
+
_globals['_CONNECTASSISTANTACTION']._serialized_end=68
|
|
38
|
+
_globals['_GETASSISTANTACTION']._serialized_start=70
|
|
39
|
+
_globals['_GETASSISTANTACTION']._serialized_end=90
|
|
40
|
+
_globals['_EXECUTEASSISTANTACTION']._serialized_start=92
|
|
41
|
+
_globals['_EXECUTEASSISTANTACTION']._serialized_end=116
|
|
42
|
+
_globals['_ASSISTANTACTIONREQUEST']._serialized_start=119
|
|
43
|
+
_globals['_ASSISTANTACTIONREQUEST']._serialized_end=308
|
|
44
|
+
_globals['_ASSISTANTACTIONRESULT']._serialized_start=310
|
|
45
|
+
_globals['_ASSISTANTACTIONRESULT']._serialized_end=364
|
|
46
|
+
_globals['_ASSISTANTACTIONRESPONSE']._serialized_start=367
|
|
47
|
+
_globals['_ASSISTANTACTIONRESPONSE']._serialized_end=506
|
|
48
|
+
_globals['_AGENTTALKREQUEST']._serialized_start=509
|
|
49
|
+
_globals['_AGENTTALKREQUEST']._serialized_end=654
|
|
50
|
+
_globals['_AGENTTALKRESPONSE']._serialized_start=657
|
|
51
|
+
_globals['_AGENTTALKRESPONSE']._serialized_end=859
|
|
52
|
+
_globals['_AGENTACTION']._serialized_start=861
|
|
53
|
+
_globals['_AGENTACTION']._serialized_end=959
|
|
54
|
+
_globals['_AGENTTALK']._serialized_start=961
|
|
55
|
+
_globals['_AGENTTALK']._serialized_end=1043
|
|
56
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import rapida.clients.protos.common_pb2 as _common_pb2
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import message as _message
|
|
4
|
+
from collections.abc import Mapping as _Mapping
|
|
5
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
6
|
+
|
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
+
|
|
9
|
+
class ConnectAssistantAction(_message.Message):
|
|
10
|
+
__slots__ = ()
|
|
11
|
+
def __init__(self) -> None: ...
|
|
12
|
+
|
|
13
|
+
class GetAssistantAction(_message.Message):
|
|
14
|
+
__slots__ = ()
|
|
15
|
+
def __init__(self) -> None: ...
|
|
16
|
+
|
|
17
|
+
class ExecuteAssistantAction(_message.Message):
|
|
18
|
+
__slots__ = ()
|
|
19
|
+
def __init__(self) -> None: ...
|
|
20
|
+
|
|
21
|
+
class AssistantActionRequest(_message.Message):
|
|
22
|
+
__slots__ = ("connect", "get", "execute")
|
|
23
|
+
CONNECT_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
GET_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
EXECUTE_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
connect: ConnectAssistantAction
|
|
27
|
+
get: GetAssistantAction
|
|
28
|
+
execute: ExecuteAssistantAction
|
|
29
|
+
def __init__(self, connect: _Optional[_Union[ConnectAssistantAction, _Mapping]] = ..., get: _Optional[_Union[GetAssistantAction, _Mapping]] = ..., execute: _Optional[_Union[ExecuteAssistantAction, _Mapping]] = ...) -> None: ...
|
|
30
|
+
|
|
31
|
+
class AssistantActionResult(_message.Message):
|
|
32
|
+
__slots__ = ("success", "data")
|
|
33
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
success: bool
|
|
36
|
+
data: str
|
|
37
|
+
def __init__(self, success: bool = ..., data: _Optional[str] = ...) -> None: ...
|
|
38
|
+
|
|
39
|
+
class AssistantActionResponse(_message.Message):
|
|
40
|
+
__slots__ = ("code", "success", "error", "result")
|
|
41
|
+
CODE_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
code: int
|
|
46
|
+
success: bool
|
|
47
|
+
error: _common_pb2.Error
|
|
48
|
+
result: AssistantActionResult
|
|
49
|
+
def __init__(self, code: _Optional[int] = ..., success: bool = ..., error: _Optional[_Union[_common_pb2.Error, _Mapping]] = ..., result: _Optional[_Union[AssistantActionResult, _Mapping]] = ...) -> None: ...
|
|
50
|
+
|
|
51
|
+
class AgentTalkRequest(_message.Message):
|
|
52
|
+
__slots__ = ("configuration", "message")
|
|
53
|
+
CONFIGURATION_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
configuration: _common_pb2.AssistantConversationConfiguration
|
|
56
|
+
message: _common_pb2.AssistantConversationUserMessage
|
|
57
|
+
def __init__(self, configuration: _Optional[_Union[_common_pb2.AssistantConversationConfiguration, _Mapping]] = ..., message: _Optional[_Union[_common_pb2.AssistantConversationUserMessage, _Mapping]] = ...) -> None: ...
|
|
58
|
+
|
|
59
|
+
class AgentTalkResponse(_message.Message):
|
|
60
|
+
__slots__ = ("code", "success", "error", "interruption", "assistant")
|
|
61
|
+
CODE_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
INTERRUPTION_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
ASSISTANT_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
code: int
|
|
67
|
+
success: bool
|
|
68
|
+
error: _common_pb2.Error
|
|
69
|
+
interruption: _common_pb2.AssistantConversationInterruption
|
|
70
|
+
assistant: _common_pb2.AssistantConversationAssistantMessage
|
|
71
|
+
def __init__(self, code: _Optional[int] = ..., success: bool = ..., error: _Optional[_Union[_common_pb2.Error, _Mapping]] = ..., interruption: _Optional[_Union[_common_pb2.AssistantConversationInterruption, _Mapping]] = ..., assistant: _Optional[_Union[_common_pb2.AssistantConversationAssistantMessage, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,177 @@
|
|
|
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
|
+
import rapida.clients.protos.agent_kit_pb2 as agent__kit__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.74.0'
|
|
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
|
+
+ f' but the generated code in agent_kit_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 AgentActionStub(object):
|
|
29
|
+
"""agent action
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, channel):
|
|
33
|
+
"""Constructor.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
channel: A grpc.Channel.
|
|
37
|
+
"""
|
|
38
|
+
self.Action = channel.stream_stream(
|
|
39
|
+
'/agent_kit.AgentAction/Action',
|
|
40
|
+
request_serializer=agent__kit__pb2.AssistantActionRequest.SerializeToString,
|
|
41
|
+
response_deserializer=agent__kit__pb2.AssistantActionResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class AgentActionServicer(object):
|
|
46
|
+
"""agent action
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def Action(self, request_iterator, context):
|
|
50
|
+
"""for agent action
|
|
51
|
+
"""
|
|
52
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
53
|
+
context.set_details('Method not implemented!')
|
|
54
|
+
raise NotImplementedError('Method not implemented!')
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def add_AgentActionServicer_to_server(servicer, server):
|
|
58
|
+
rpc_method_handlers = {
|
|
59
|
+
'Action': grpc.stream_stream_rpc_method_handler(
|
|
60
|
+
servicer.Action,
|
|
61
|
+
request_deserializer=agent__kit__pb2.AssistantActionRequest.FromString,
|
|
62
|
+
response_serializer=agent__kit__pb2.AssistantActionResponse.SerializeToString,
|
|
63
|
+
),
|
|
64
|
+
}
|
|
65
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
66
|
+
'agent_kit.AgentAction', rpc_method_handlers)
|
|
67
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
68
|
+
server.add_registered_method_handlers('agent_kit.AgentAction', rpc_method_handlers)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# This class is part of an EXPERIMENTAL API.
|
|
72
|
+
class AgentAction(object):
|
|
73
|
+
"""agent action
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
@staticmethod
|
|
77
|
+
def Action(request_iterator,
|
|
78
|
+
target,
|
|
79
|
+
options=(),
|
|
80
|
+
channel_credentials=None,
|
|
81
|
+
call_credentials=None,
|
|
82
|
+
insecure=False,
|
|
83
|
+
compression=None,
|
|
84
|
+
wait_for_ready=None,
|
|
85
|
+
timeout=None,
|
|
86
|
+
metadata=None):
|
|
87
|
+
return grpc.experimental.stream_stream(
|
|
88
|
+
request_iterator,
|
|
89
|
+
target,
|
|
90
|
+
'/agent_kit.AgentAction/Action',
|
|
91
|
+
agent__kit__pb2.AssistantActionRequest.SerializeToString,
|
|
92
|
+
agent__kit__pb2.AssistantActionResponse.FromString,
|
|
93
|
+
options,
|
|
94
|
+
channel_credentials,
|
|
95
|
+
insecure,
|
|
96
|
+
call_credentials,
|
|
97
|
+
compression,
|
|
98
|
+
wait_for_ready,
|
|
99
|
+
timeout,
|
|
100
|
+
metadata,
|
|
101
|
+
_registered_method=True)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
class AgentTalkStub(object):
|
|
105
|
+
"""for extenal integration around grpc for agentkit call
|
|
106
|
+
"""
|
|
107
|
+
|
|
108
|
+
def __init__(self, channel):
|
|
109
|
+
"""Constructor.
|
|
110
|
+
|
|
111
|
+
Args:
|
|
112
|
+
channel: A grpc.Channel.
|
|
113
|
+
"""
|
|
114
|
+
self.Talk = channel.stream_stream(
|
|
115
|
+
'/agent_kit.AgentTalk/Talk',
|
|
116
|
+
request_serializer=agent__kit__pb2.AgentTalkRequest.SerializeToString,
|
|
117
|
+
response_deserializer=agent__kit__pb2.AgentTalkResponse.FromString,
|
|
118
|
+
_registered_method=True)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class AgentTalkServicer(object):
|
|
122
|
+
"""for extenal integration around grpc for agentkit call
|
|
123
|
+
"""
|
|
124
|
+
|
|
125
|
+
def Talk(self, request_iterator, context):
|
|
126
|
+
"""bi stream of agentkit action
|
|
127
|
+
"""
|
|
128
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
129
|
+
context.set_details('Method not implemented!')
|
|
130
|
+
raise NotImplementedError('Method not implemented!')
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
def add_AgentTalkServicer_to_server(servicer, server):
|
|
134
|
+
rpc_method_handlers = {
|
|
135
|
+
'Talk': grpc.stream_stream_rpc_method_handler(
|
|
136
|
+
servicer.Talk,
|
|
137
|
+
request_deserializer=agent__kit__pb2.AgentTalkRequest.FromString,
|
|
138
|
+
response_serializer=agent__kit__pb2.AgentTalkResponse.SerializeToString,
|
|
139
|
+
),
|
|
140
|
+
}
|
|
141
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
142
|
+
'agent_kit.AgentTalk', rpc_method_handlers)
|
|
143
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
144
|
+
server.add_registered_method_handlers('agent_kit.AgentTalk', rpc_method_handlers)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
# This class is part of an EXPERIMENTAL API.
|
|
148
|
+
class AgentTalk(object):
|
|
149
|
+
"""for extenal integration around grpc for agentkit call
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
@staticmethod
|
|
153
|
+
def Talk(request_iterator,
|
|
154
|
+
target,
|
|
155
|
+
options=(),
|
|
156
|
+
channel_credentials=None,
|
|
157
|
+
call_credentials=None,
|
|
158
|
+
insecure=False,
|
|
159
|
+
compression=None,
|
|
160
|
+
wait_for_ready=None,
|
|
161
|
+
timeout=None,
|
|
162
|
+
metadata=None):
|
|
163
|
+
return grpc.experimental.stream_stream(
|
|
164
|
+
request_iterator,
|
|
165
|
+
target,
|
|
166
|
+
'/agent_kit.AgentTalk/Talk',
|
|
167
|
+
agent__kit__pb2.AgentTalkRequest.SerializeToString,
|
|
168
|
+
agent__kit__pb2.AgentTalkResponse.FromString,
|
|
169
|
+
options,
|
|
170
|
+
channel_credentials,
|
|
171
|
+
insecure,
|
|
172
|
+
call_credentials,
|
|
173
|
+
compression,
|
|
174
|
+
wait_for_ready,
|
|
175
|
+
timeout,
|
|
176
|
+
metadata,
|
|
177
|
+
_registered_method=True)
|
{rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_analysis_pb2.py
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: assistant-analysis.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
17
|
'',
|
|
18
18
|
'assistant-analysis.proto'
|
|
19
19
|
)
|
|
@@ -26,14 +26,14 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
|
|
|
26
26
|
import rapida.clients.protos.common_pb2 as common__pb2
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x61ssistant-analysis.proto\x12\rassistant_api\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0c\x63ommon.proto\"\x94\x04\n\x11\x41ssistantAnalysis\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12T\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x38.assistant_api.AssistantAnalysis.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x0e\n\x06status\x18\x0c \x01(\t\x12\x15\n\tcreatedBy\x18\r \x01(\x04\x42\x02\x30\x01\x12\x1a\n\x0b\x63reatedUser\x18\x0e \x01(\x0b\x32\x05.User\x12\x15\n\tupdatedBy\x18\x0f \x01(\x04\x42\x02\x30\x01\x12\x1a\n\x0bupdatedUser\x18\x10 \x01(\x0b\x32\x05.User\x12/\n\x0b\x63reatedDate\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdatedDate\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc6\x02\n\x1e\x43reateAssistantAnalysisRequest\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12\x61\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x45.assistant_api.CreateAssistantAnalysisRequest.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x02\n\x1eUpdateAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12\x61\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x45.assistant_api.UpdateAssistantAnalysisRequest.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x1bGetAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0b\x61ssistantId\x18\x02 \x01(\x04\x42\x02\x30\x01\"I\n\x1e\x44\x65leteAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0b\x61ssistantId\x18\x02 \x01(\x04\x42\x02\x30\x01\"\x84\x01\n\x1cGetAssistantAnalysisResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12.\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32 .assistant_api.AssistantAnalysis\x12\x15\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x06.Error\"t\n\x1eGetAllAssistantAnalysisRequest\x12\x17\n\x0b\x61ssistantId\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1b\n\x08paginate\x18\x02 \x01(\x0b\x32\t.Paginate\x12\x1c\n\tcriterias\x18\x03 \x03(\x0b\x32\t.Criteria\"\xa6\x01\n\x1fGetAllAssistantAnalysisResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12.\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32 .assistant_api.AssistantAnalysis\x12\x15\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x06.Error\x12\x1d\n\tpaginated\x18\x05 \x01(\x0b\x32\n.
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x61ssistant-analysis.proto\x12\rassistant_api\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0c\x63ommon.proto\"\x94\x04\n\x11\x41ssistantAnalysis\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12T\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x38.assistant_api.AssistantAnalysis.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x0e\n\x06status\x18\x0c \x01(\t\x12\x15\n\tcreatedBy\x18\r \x01(\x04\x42\x02\x30\x01\x12\x1a\n\x0b\x63reatedUser\x18\x0e \x01(\x0b\x32\x05.User\x12\x15\n\tupdatedBy\x18\x0f \x01(\x04\x42\x02\x30\x01\x12\x1a\n\x0bupdatedUser\x18\x10 \x01(\x0b\x32\x05.User\x12/\n\x0b\x63reatedDate\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdatedDate\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc6\x02\n\x1e\x43reateAssistantAnalysisRequest\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12\x61\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x45.assistant_api.CreateAssistantAnalysisRequest.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x02\n\x1eUpdateAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x16\n\nendpointId\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0f\x65ndpointVersion\x18\x05 \x01(\t\x12\x61\n\x12\x65ndpointParameters\x18\x07 \x03(\x0b\x32\x45.assistant_api.UpdateAssistantAnalysisRequest.EndpointParametersEntry\x12\x17\n\x0b\x61ssistantId\x18\n \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x65xecutionPriority\x18\x14 \x01(\r\x1a\x39\n\x17\x45ndpointParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x1bGetAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0b\x61ssistantId\x18\x02 \x01(\x04\x42\x02\x30\x01\"I\n\x1e\x44\x65leteAssistantAnalysisRequest\x12\x0e\n\x02id\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0b\x61ssistantId\x18\x02 \x01(\x04\x42\x02\x30\x01\"\x84\x01\n\x1cGetAssistantAnalysisResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12.\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32 .assistant_api.AssistantAnalysis\x12\x15\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x06.Error\"t\n\x1eGetAllAssistantAnalysisRequest\x12\x17\n\x0b\x61ssistantId\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1b\n\x08paginate\x18\x02 \x01(\x0b\x32\t.Paginate\x12\x1c\n\tcriterias\x18\x03 \x03(\x0b\x32\t.Criteria\"\xa6\x01\n\x1fGetAllAssistantAnalysisResponse\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12.\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32 .assistant_api.AssistantAnalysis\x12\x15\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x06.Error\x12\x1d\n\tpaginated\x18\x05 \x01(\x0b\x32\n.PaginatedB\x1cZ\x1agithub.com/rapidaai/protosb\x06proto3')
|
|
30
30
|
|
|
31
31
|
_globals = globals()
|
|
32
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
33
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'assistant_analysis_pb2', _globals)
|
|
34
34
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
35
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
-
_globals['DESCRIPTOR']._serialized_options = b'
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z\032github.com/rapidaai/protos'
|
|
37
37
|
_globals['_ASSISTANTANALYSIS_ENDPOINTPARAMETERSENTRY']._loaded_options = None
|
|
38
38
|
_globals['_ASSISTANTANALYSIS_ENDPOINTPARAMETERSENTRY']._serialized_options = b'8\001'
|
|
39
39
|
_globals['_ASSISTANTANALYSIS'].fields_by_name['id']._loaded_options = None
|
{rapida_python-0.1.17 → rapida_python-0.1.18}/rapida/clients/protos/assistant_analysis_pb2.pyi
RENAMED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
1
3
|
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
2
4
|
import rapida.clients.protos.common_pb2 as _common_pb2
|
|
3
5
|
from google.protobuf.internal import containers as _containers
|
|
@@ -47,7 +49,7 @@ class AssistantAnalysis(_message.Message):
|
|
|
47
49
|
createdDate: _timestamp_pb2.Timestamp
|
|
48
50
|
updatedDate: _timestamp_pb2.Timestamp
|
|
49
51
|
executionPriority: int
|
|
50
|
-
def __init__(self, id: _Optional[int] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., endpointId: _Optional[int] = ..., endpointVersion: _Optional[str] = ..., endpointParameters: _Optional[_Mapping[str, str]] = ..., assistantId: _Optional[int] = ..., status: _Optional[str] = ..., createdBy: _Optional[int] = ..., createdUser: _Optional[_Union[_common_pb2.User, _Mapping]] = ..., updatedBy: _Optional[int] = ..., updatedUser: _Optional[_Union[_common_pb2.User, _Mapping]] = ..., createdDate: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updatedDate: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., executionPriority: _Optional[int] = ...) -> None: ...
|
|
52
|
+
def __init__(self, id: _Optional[int] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., endpointId: _Optional[int] = ..., endpointVersion: _Optional[str] = ..., endpointParameters: _Optional[_Mapping[str, str]] = ..., assistantId: _Optional[int] = ..., status: _Optional[str] = ..., createdBy: _Optional[int] = ..., createdUser: _Optional[_Union[_common_pb2.User, _Mapping]] = ..., updatedBy: _Optional[int] = ..., updatedUser: _Optional[_Union[_common_pb2.User, _Mapping]] = ..., createdDate: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updatedDate: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., executionPriority: _Optional[int] = ...) -> None: ...
|
|
51
53
|
|
|
52
54
|
class CreateAssistantAnalysisRequest(_message.Message):
|
|
53
55
|
__slots__ = ("name", "description", "endpointId", "endpointVersion", "endpointParameters", "assistantId", "executionPriority")
|