rapida-python 0.1.24__tar.gz → 0.1.26__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.24 → rapida_python-0.1.26}/PKG-INFO +4 -5
- {rapida_python-0.1.24 → rapida_python-0.1.26}/README.md +0 -1
- {rapida_python-0.1.24 → rapida_python-0.1.26}/pyproject.toml +6 -6
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/__init__.py +230 -48
- rapida_python-0.1.26/rapida/agentkit/__init__.py +694 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/__init__.py +1 -1
- rapida_python-0.1.26/rapida/clients/assistant.py +615 -0
- rapida_python-0.1.26/rapida/clients/call.py +102 -0
- rapida_python-0.1.26/rapida/clients/endpoint.py +214 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/invoke.py +54 -9
- rapida_python-0.1.26/rapida/clients/protos/__init__.py +2 -0
- rapida_python-0.1.26/rapida/clients/protos/agentkit_pb2.py +43 -0
- rapida_python-0.1.26/rapida/clients/protos/agentkit_pb2.pyi +44 -0
- rapida_python-0.1.26/rapida/clients/protos/agentkit_pb2_grpc.py +101 -0
- rapida_python-0.1.26/rapida/clients/protos/assistant_analysis_pb2.py +77 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_analysis_pb2.pyi +20 -45
- rapida_python-0.1.24/rapida/clients/protos/assistant_webhook_pb2_grpc.py → rapida_python-0.1.26/rapida/clients/protos/assistant_analysis_pb2_grpc.py +2 -2
- rapida_python-0.1.26/rapida/clients/protos/assistant_api_pb2.py +201 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_api_pb2.pyi +231 -4
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_api_pb2_grpc.py +416 -29
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_deployment_pb2.py +22 -8
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_deployment_pb2.pyi +87 -5
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_deployment_pb2_grpc.py +432 -2
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_knowledge_pb2.py +3 -3
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_knowledge_pb2.pyi +3 -1
- rapida_python-0.1.24/rapida/clients/protos/assistant_analysis_pb2_grpc.py → rapida_python-0.1.26/rapida/clients/protos/assistant_knowledge_pb2_grpc.py +2 -2
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_provider_pb2.py +3 -3
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_provider_pb2.pyi +5 -3
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_provider_pb2_grpc.py +2 -2
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_tool_pb2.py +5 -7
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_tool_pb2.pyi +7 -9
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_tool_pb2_grpc.py +2 -2
- rapida_python-0.1.26/rapida/clients/protos/assistant_webhook_pb2.py +118 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/assistant_webhook_pb2.pyi +49 -105
- rapida_python-0.1.26/rapida/clients/protos/assistant_webhook_pb2_grpc.py +24 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/audit_logging_api_pb2.py +3 -3
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/audit_logging_api_pb2.pyi +3 -1
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/audit_logging_api_pb2_grpc.py +2 -2
- rapida_python-0.1.26/rapida/clients/protos/billing_api_pb2.py +67 -0
- rapida_python-0.1.26/rapida/clients/protos/billing_api_pb2.pyi +123 -0
- rapida_python-0.1.26/rapida/clients/protos/billing_api_pb2_grpc.py +183 -0
- rapida_python-0.1.26/rapida/clients/protos/common_pb2.py +183 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/common_pb2.pyi +58 -223
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/common_pb2_grpc.py +2 -2
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/connect_api_pb2.py +3 -3
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/connect_api_pb2_grpc.py +2 -2
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/document_api_pb2.py +3 -3
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/document_api_pb2_grpc.py +2 -2
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/endpoint_api_pb2.py +3 -3
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/endpoint_api_pb2.pyi +6 -4
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/endpoint_api_pb2_grpc.py +2 -2
- rapida_python-0.1.26/rapida/clients/protos/integration_api_pb2.py +152 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/integration_api_pb2.pyi +135 -19
- rapida_python-0.1.26/rapida/clients/protos/integration_api_pb2_grpc.py +275 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/invoker_api_pb2.py +15 -15
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/invoker_api_pb2.pyi +2 -2
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/invoker_api_pb2_grpc.py +2 -2
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/knowledge_api_pb2.py +44 -42
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/knowledge_api_pb2.pyi +20 -4
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/knowledge_api_pb2_grpc.py +2 -2
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/notification_api_pb2.py +3 -3
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/notification_api_pb2.pyi +3 -1
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/notification_api_pb2_grpc.py +2 -2
- rapida_python-0.1.26/rapida/clients/protos/talk_api_pb2.py +168 -0
- rapida_python-0.1.26/rapida/clients/protos/talk_api_pb2.pyi +485 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/talk_api_pb2_grpc.py +26 -87
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/vault_api_pb2.py +3 -3
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/vault_api_pb2.pyi +3 -1
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/vault_api_pb2_grpc.py +2 -2
- rapida_python-0.1.26/rapida/clients/protos/web_api_pb2.py +195 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/web_api_pb2.pyi +25 -4
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/web_api_pb2_grpc.py +2 -2
- rapida_python-0.1.26/rapida/clients/protos/webrtc_pb2.py +56 -0
- rapida_python-0.1.26/rapida/clients/protos/webrtc_pb2.pyi +141 -0
- rapida_python-0.1.26/rapida/clients/protos/webrtc_pb2_grpc.py +113 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/configs/__init__.py +5 -5
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/version.py +1 -1
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida_python.egg-info/PKG-INFO +4 -5
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida_python.egg-info/SOURCES.txt +12 -0
- rapida_python-0.1.26/rapida_python.egg-info/requires.txt +10 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/tests/test_connections.py +9 -1
- rapida_python-0.1.26/tests/test_proto_imports.py +726 -0
- rapida_python-0.1.24/rapida/clients/assistant.py +0 -247
- rapida_python-0.1.24/rapida/clients/call.py +0 -55
- rapida_python-0.1.24/rapida/clients/endpoint.py +0 -87
- rapida_python-0.1.24/rapida/clients/protos/assistant_analysis_pb2.py +0 -95
- rapida_python-0.1.24/rapida/clients/protos/assistant_api_pb2.py +0 -107
- rapida_python-0.1.24/rapida/clients/protos/assistant_knowledge_pb2_grpc.py +0 -24
- rapida_python-0.1.24/rapida/clients/protos/assistant_webhook_pb2.py +0 -136
- rapida_python-0.1.24/rapida/clients/protos/common_pb2.py +0 -226
- rapida_python-0.1.24/rapida/clients/protos/integration_api_pb2.py +0 -148
- rapida_python-0.1.24/rapida/clients/protos/integration_api_pb2_grpc.py +0 -2323
- rapida_python-0.1.24/rapida/clients/protos/talk_api_pb2.py +0 -81
- rapida_python-0.1.24/rapida/clients/protos/talk_api_pb2.pyi +0 -150
- rapida_python-0.1.24/rapida/clients/protos/web_api_pb2.py +0 -189
- rapida_python-0.1.24/rapida_python.egg-info/requires.txt +0 -10
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/connect_api_pb2.pyi +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/clients/protos/document_api_pb2.pyi +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/connections/__init__.py +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/utils/__init__.py +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/utils/rapida_environment.py +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/utils/rapida_header.py +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/utils/rapida_region.py +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/utils/rapida_source.py +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida/utils/rapida_value.py +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida_python.egg-info/dependency_links.txt +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/rapida_python.egg-info/top_level.txt +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/setup.cfg +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/setup.py +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/tests/test_configs.py +0 -0
- {rapida_python-0.1.24 → rapida_python-0.1.26}/tests/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rapida-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.26
|
|
4
4
|
Summary: RapidaAI SDK to integrate rapida.ai APIs
|
|
5
5
|
Author-email: RapidaAI <code@rapida.ai>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -19,9 +19,9 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
19
19
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
20
|
Requires-Python: >=3.9
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
|
-
Requires-Dist: protobuf
|
|
23
|
-
Requires-Dist: grpcio
|
|
24
|
-
Requires-Dist: grpcio-tools
|
|
22
|
+
Requires-Dist: protobuf>=6.31.1
|
|
23
|
+
Requires-Dist: grpcio>=1.78.0
|
|
24
|
+
Requires-Dist: grpcio-tools>=1.78.0
|
|
25
25
|
Provides-Extra: dev
|
|
26
26
|
Requires-Dist: pytest; extra == "dev"
|
|
27
27
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -117,4 +117,3 @@ pip install --upgrade rapida-python
|
|
|
117
117
|
## Conclusion
|
|
118
118
|
|
|
119
119
|
The Rapida Python SDK provides everything necessary to integrate seamlessly with Rapida AI services, offering flexible configuration and authentication options. With the examples provided, you should be able to get started quickly and make advanced API calls as needed.
|
|
120
|
-
|
|
@@ -86,4 +86,3 @@ pip install --upgrade rapida-python
|
|
|
86
86
|
## Conclusion
|
|
87
87
|
|
|
88
88
|
The Rapida Python SDK provides everything necessary to integrate seamlessly with Rapida AI services, offering flexible configuration and authentication options. With the examples provided, you should be able to get started quickly and make advanced API calls as needed.
|
|
89
|
-
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "rapida-python"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.26"
|
|
8
8
|
description = "RapidaAI SDK to integrate rapida.ai APIs"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{name = "RapidaAI", email = "code@rapida.ai"}]
|
|
@@ -22,9 +22,9 @@ classifiers = [
|
|
|
22
22
|
]
|
|
23
23
|
requires-python = ">=3.9"
|
|
24
24
|
dependencies = [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
"protobuf>=6.31.1",
|
|
26
|
+
"grpcio>=1.78.0",
|
|
27
|
+
"grpcio-tools>=1.78.0",
|
|
28
28
|
]
|
|
29
29
|
|
|
30
30
|
[project.optional-dependencies]
|
|
@@ -45,12 +45,12 @@ Source = "https://github.com/rapidaai/rapida-python"
|
|
|
45
45
|
[tool.setuptools]
|
|
46
46
|
packages = [
|
|
47
47
|
"rapida",
|
|
48
|
+
"rapida.agentkit",
|
|
48
49
|
"rapida.clients",
|
|
49
50
|
"rapida.clients.protos",
|
|
50
51
|
"rapida.configs",
|
|
51
52
|
"rapida.connections",
|
|
52
53
|
"rapida.utils"
|
|
53
|
-
# Add any other packages that should be included
|
|
54
54
|
]
|
|
55
55
|
|
|
56
56
|
[tool.setuptools.package-data]
|
|
@@ -58,4 +58,4 @@ packages = [
|
|
|
58
58
|
"rapida.clients.protos" = ["*.py"]
|
|
59
59
|
|
|
60
60
|
[tool.setuptools.exclude-package-data]
|
|
61
|
-
"*" = ["tests", "examples"]
|
|
61
|
+
"*" = ["tests", "examples"]
|
|
@@ -65,32 +65,80 @@ from rapida.utils.rapida_header import (
|
|
|
65
65
|
HEADER_LONGITUDE,
|
|
66
66
|
)
|
|
67
67
|
|
|
68
|
-
from rapida.clients.call import
|
|
68
|
+
from rapida.clients.call import (
|
|
69
|
+
create_bulk_phone_call,
|
|
70
|
+
create_conversation_metric,
|
|
71
|
+
create_message_metric,
|
|
72
|
+
create_phone_call,
|
|
73
|
+
)
|
|
69
74
|
from rapida.clients.assistant import (
|
|
75
|
+
create_assistant,
|
|
76
|
+
create_assistant_analysis,
|
|
77
|
+
create_assistant_authentication,
|
|
78
|
+
create_assistant_knowledge,
|
|
79
|
+
create_assistant_provider,
|
|
80
|
+
create_assistant_tag,
|
|
81
|
+
create_assistant_telemetry_provider,
|
|
82
|
+
create_assistant_tool,
|
|
83
|
+
create_assistant_webhook,
|
|
84
|
+
delete_assistant,
|
|
85
|
+
delete_assistant_analysis,
|
|
86
|
+
delete_assistant_knowledge,
|
|
87
|
+
delete_assistant_telemetry_provider,
|
|
88
|
+
delete_assistant_tool,
|
|
89
|
+
delete_assistant_webhook,
|
|
90
|
+
disable_assistant_authentication,
|
|
70
91
|
get_assistant,
|
|
71
92
|
get_all_assistant,
|
|
93
|
+
get_all_assistant_analysis,
|
|
72
94
|
get_assistant_conversation,
|
|
73
95
|
get_all_assistant_conversation,
|
|
96
|
+
get_all_assistant_http_log,
|
|
97
|
+
get_all_assistant_knowledge,
|
|
98
|
+
get_all_assistant_message,
|
|
99
|
+
get_all_assistant_provider,
|
|
100
|
+
get_all_assistant_telemetry,
|
|
101
|
+
get_all_assistant_telemetry_provider,
|
|
74
102
|
get_assistant_webhook,
|
|
75
103
|
get_all_assistant_webhook,
|
|
76
|
-
get_assistant_knowledge,
|
|
77
|
-
get_all_assistant_knowledge,
|
|
78
|
-
get_assistant_tool,
|
|
79
104
|
get_all_assistant_tool,
|
|
80
|
-
|
|
81
|
-
|
|
105
|
+
get_all_assistant_tool_log,
|
|
106
|
+
get_all_conversation_message,
|
|
107
|
+
get_all_message,
|
|
82
108
|
get_assistant_analysis,
|
|
83
|
-
|
|
109
|
+
get_assistant_authentication,
|
|
110
|
+
get_assistant_http_log,
|
|
111
|
+
get_assistant_tool,
|
|
112
|
+
get_assistant_telemetry_provider,
|
|
113
|
+
get_assistant_tool_log,
|
|
114
|
+
get_assistant_knowledge,
|
|
115
|
+
retry_assistant_http_log,
|
|
116
|
+
update_assistant_analysis,
|
|
117
|
+
update_assistant_detail,
|
|
118
|
+
update_assistant_knowledge,
|
|
119
|
+
update_assistant_telemetry_provider,
|
|
120
|
+
update_assistant_tool,
|
|
121
|
+
update_assistant_version,
|
|
122
|
+
update_assistant_webhook,
|
|
84
123
|
)
|
|
85
124
|
|
|
86
125
|
from rapida.clients.endpoint import (
|
|
126
|
+
create_endpoint,
|
|
127
|
+
create_endpoint_cache_configuration,
|
|
128
|
+
create_endpoint_provider_model,
|
|
129
|
+
create_endpoint_retry_configuration,
|
|
130
|
+
create_endpoint_tag,
|
|
131
|
+
fork_endpoint,
|
|
87
132
|
get_endpoint,
|
|
88
133
|
get_all_endpoint,
|
|
134
|
+
get_all_endpoint_provider_model,
|
|
89
135
|
get_endpoint_log,
|
|
90
136
|
get_all_endpoint_log,
|
|
137
|
+
update_endpoint_detail,
|
|
138
|
+
update_endpoint_version,
|
|
91
139
|
)
|
|
92
140
|
|
|
93
|
-
from rapida.clients.invoke import invoke
|
|
141
|
+
from rapida.clients.invoke import invoke, probe, update
|
|
94
142
|
|
|
95
143
|
|
|
96
144
|
# # Protobuf imports - Import common_pb2 FIRST since other protos depend on it
|
|
@@ -109,7 +157,6 @@ from rapida.clients.protos.common_pb2 import (
|
|
|
109
157
|
Tag,
|
|
110
158
|
Organization,
|
|
111
159
|
Metric,
|
|
112
|
-
Content,
|
|
113
160
|
Message as ProtoMessage,
|
|
114
161
|
ToolCall,
|
|
115
162
|
FunctionCall,
|
|
@@ -123,14 +170,7 @@ from rapida.clients.protos.common_pb2 import (
|
|
|
123
170
|
GetAllAssistantConversationResponse,
|
|
124
171
|
GetAllConversationMessageRequest,
|
|
125
172
|
GetAllConversationMessageResponse,
|
|
126
|
-
AssistantConversationMessageTextContent,
|
|
127
|
-
AssistantConversationMessageAudioContent,
|
|
128
173
|
AssistantDefinition,
|
|
129
|
-
AssistantConversationConfiguration,
|
|
130
|
-
AssistantConversationInterruption,
|
|
131
|
-
AssistantConversationUserMessage,
|
|
132
|
-
AssistantConversationAction,
|
|
133
|
-
AssistantConversationAssistantMessage,
|
|
134
174
|
)
|
|
135
175
|
|
|
136
176
|
# Now import other protos that may depend on common_pb2
|
|
@@ -162,8 +202,6 @@ from rapida.clients.protos.vault_api_pb2 import (
|
|
|
162
202
|
GetAllOrganizationCredentialRequest,
|
|
163
203
|
)
|
|
164
204
|
from rapida.clients.protos.talk_api_pb2 import (
|
|
165
|
-
AssistantMessagingRequest,
|
|
166
|
-
AssistantMessagingResponse,
|
|
167
205
|
CreateMessageMetricRequest,
|
|
168
206
|
CreateMessageMetricResponse,
|
|
169
207
|
CreateConversationMetricRequest,
|
|
@@ -172,6 +210,20 @@ from rapida.clients.protos.talk_api_pb2 import (
|
|
|
172
210
|
CreateBulkPhoneCallResponse,
|
|
173
211
|
CreatePhoneCallRequest,
|
|
174
212
|
CreatePhoneCallResponse,
|
|
213
|
+
AssistantTalkRequest,
|
|
214
|
+
AssistantTalkResponse,
|
|
215
|
+
ConversationAssistantMessage,
|
|
216
|
+
ConversationConfiguration,
|
|
217
|
+
ConversationDisconnection,
|
|
218
|
+
ConversationInterruption,
|
|
219
|
+
ConversationModeChange,
|
|
220
|
+
ConversationUserMessage,
|
|
221
|
+
ConversationToolCall,
|
|
222
|
+
ConversationToolCallResult,
|
|
223
|
+
)
|
|
224
|
+
from rapida.clients.protos.agentkit_pb2 import (
|
|
225
|
+
TalkInput,
|
|
226
|
+
TalkOutput,
|
|
175
227
|
)
|
|
176
228
|
from rapida.clients.protos.assistant_analysis_pb2 import (
|
|
177
229
|
AssistantAnalysis,
|
|
@@ -245,19 +297,20 @@ from rapida.clients.protos.web_api_pb2 import (
|
|
|
245
297
|
GetAllProjectCredentialResponse,
|
|
246
298
|
)
|
|
247
299
|
from rapida.clients.protos.assistant_webhook_pb2 import (
|
|
300
|
+
AssistantHTTPLog,
|
|
248
301
|
AssistantWebhook,
|
|
249
|
-
AssistantWebhookLog,
|
|
250
302
|
CreateAssistantWebhookRequest,
|
|
251
|
-
UpdateAssistantWebhookRequest,
|
|
252
|
-
GetAssistantWebhookRequest,
|
|
253
303
|
DeleteAssistantWebhookRequest,
|
|
254
|
-
|
|
304
|
+
GetAllAssistantHTTPLogRequest,
|
|
305
|
+
GetAllAssistantHTTPLogResponse,
|
|
255
306
|
GetAllAssistantWebhookRequest,
|
|
256
307
|
GetAllAssistantWebhookResponse,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
308
|
+
GetAssistantHTTPLogRequest,
|
|
309
|
+
GetAssistantHTTPLogResponse,
|
|
310
|
+
GetAssistantWebhookRequest,
|
|
311
|
+
GetAssistantWebhookResponse,
|
|
312
|
+
RetryAssistantHTTPLogRequest,
|
|
313
|
+
UpdateAssistantWebhookRequest,
|
|
261
314
|
)
|
|
262
315
|
from rapida.clients.protos.connect_api_pb2 import (
|
|
263
316
|
GeneralConnectRequest,
|
|
@@ -299,14 +352,19 @@ from rapida.clients.protos.endpoint_api_pb2 import (
|
|
|
299
352
|
GetEndpointLogResponse,
|
|
300
353
|
)
|
|
301
354
|
from rapida.clients.protos.assistant_tool_pb2 import (
|
|
355
|
+
AssistantToolLog,
|
|
302
356
|
AssistantTool,
|
|
303
357
|
CreateAssistantToolRequest,
|
|
304
|
-
UpdateAssistantToolRequest,
|
|
305
|
-
GetAssistantToolRequest,
|
|
306
358
|
DeleteAssistantToolRequest,
|
|
307
|
-
|
|
359
|
+
GetAllAssistantToolLogRequest,
|
|
360
|
+
GetAllAssistantToolLogResponse,
|
|
308
361
|
GetAllAssistantToolRequest,
|
|
309
362
|
GetAllAssistantToolResponse,
|
|
363
|
+
GetAssistantToolLogRequest,
|
|
364
|
+
GetAssistantToolLogResponse,
|
|
365
|
+
GetAssistantToolRequest,
|
|
366
|
+
GetAssistantToolResponse,
|
|
367
|
+
UpdateAssistantToolRequest,
|
|
310
368
|
)
|
|
311
369
|
from rapida.clients.protos.integration_api_pb2 import (
|
|
312
370
|
Credential,
|
|
@@ -357,11 +415,31 @@ from rapida.clients.protos.knowledge_api_pb2 import (
|
|
|
357
415
|
UpdateKnowledgeDocumentSegmentRequest,
|
|
358
416
|
DeleteKnowledgeDocumentSegmentRequest,
|
|
359
417
|
)
|
|
418
|
+
from rapida.clients.protos.assistant_provider_pb2 import (
|
|
419
|
+
AssistantProviderAgentkit,
|
|
420
|
+
AssistantProviderModel,
|
|
421
|
+
AssistantProviderWebsocket,
|
|
422
|
+
CreateAssistantProviderRequest,
|
|
423
|
+
GetAllAssistantProviderRequest,
|
|
424
|
+
GetAllAssistantProviderResponse,
|
|
425
|
+
GetAssistantProviderResponse,
|
|
426
|
+
UpdateAssistantVersionRequest,
|
|
427
|
+
)
|
|
360
428
|
from rapida.clients.protos.assistant_api_pb2 import (
|
|
361
429
|
Assistant,
|
|
430
|
+
CreateAssistantAuthenticationRequest,
|
|
362
431
|
CreateAssistantRequest,
|
|
363
432
|
CreateAssistantTagRequest,
|
|
433
|
+
CreateAssistantTelemetryProviderRequest,
|
|
434
|
+
DeleteAssistantTelemetryProviderRequest,
|
|
435
|
+
DisableAssistantAuthenticationRequest,
|
|
436
|
+
GetAllAssistantTelemetryProviderRequest,
|
|
437
|
+
GetAllAssistantTelemetryProviderResponse,
|
|
438
|
+
GetAllAssistantTelemetryRequest,
|
|
439
|
+
GetAllAssistantTelemetryResponse,
|
|
364
440
|
GetAssistantRequest,
|
|
441
|
+
GetAssistantAuthenticationRequest,
|
|
442
|
+
GetAssistantAuthenticationResponse,
|
|
365
443
|
DeleteAssistantRequest,
|
|
366
444
|
GetAssistantResponse,
|
|
367
445
|
GetAllAssistantRequest,
|
|
@@ -370,18 +448,44 @@ from rapida.clients.protos.assistant_api_pb2 import (
|
|
|
370
448
|
GetAllAssistantMessageResponse,
|
|
371
449
|
GetAllMessageRequest,
|
|
372
450
|
GetAllMessageResponse,
|
|
451
|
+
GetAssistantTelemetryProviderRequest,
|
|
452
|
+
GetAssistantTelemetryProviderResponse,
|
|
453
|
+
UpdateAssistantTelemetryProviderRequest,
|
|
373
454
|
UpdateAssistantDetailRequest,
|
|
374
455
|
GetAssistantConversationRequest,
|
|
375
456
|
GetAssistantConversationResponse,
|
|
376
457
|
)
|
|
377
458
|
|
|
378
459
|
from rapida.clients.protos.talk_api_pb2_grpc import (
|
|
379
|
-
TalkServiceServicer,
|
|
460
|
+
TalkServiceServicer,
|
|
461
|
+
)
|
|
462
|
+
from rapida.clients.protos.agentkit_pb2_grpc import (
|
|
380
463
|
AgentKitStub,
|
|
381
464
|
AgentKit,
|
|
382
465
|
AgentKitServicer,
|
|
383
466
|
add_AgentKitServicer_to_server,
|
|
467
|
+
)
|
|
468
|
+
|
|
469
|
+
_AGENTKIT_EXPORTS = []
|
|
470
|
+
|
|
471
|
+
try:
|
|
472
|
+
from rapida.agentkit import (
|
|
473
|
+
AgentKitAgent,
|
|
474
|
+
AgentKitServer,
|
|
475
|
+
SSLConfig,
|
|
476
|
+
AuthConfig,
|
|
477
|
+
AuthorizationInterceptor,
|
|
384
478
|
)
|
|
479
|
+
except ImportError:
|
|
480
|
+
pass
|
|
481
|
+
else:
|
|
482
|
+
_AGENTKIT_EXPORTS = [
|
|
483
|
+
"AgentKitAgent",
|
|
484
|
+
"AgentKitServer",
|
|
485
|
+
"SSLConfig",
|
|
486
|
+
"AuthConfig",
|
|
487
|
+
"AuthorizationInterceptor",
|
|
488
|
+
]
|
|
385
489
|
|
|
386
490
|
__all__ = [
|
|
387
491
|
"Any",
|
|
@@ -425,25 +529,72 @@ __all__ = [
|
|
|
425
529
|
"HEADER_LATITUDE",
|
|
426
530
|
"HEADER_LONGITUDE",
|
|
427
531
|
#
|
|
532
|
+
"create_assistant",
|
|
533
|
+
"create_assistant_analysis",
|
|
534
|
+
"create_assistant_authentication",
|
|
535
|
+
"create_assistant_knowledge",
|
|
536
|
+
"create_assistant_provider",
|
|
537
|
+
"create_assistant_tag",
|
|
538
|
+
"create_assistant_telemetry_provider",
|
|
539
|
+
"create_assistant_tool",
|
|
540
|
+
"create_assistant_webhook",
|
|
541
|
+
"delete_assistant",
|
|
542
|
+
"delete_assistant_analysis",
|
|
543
|
+
"delete_assistant_knowledge",
|
|
544
|
+
"delete_assistant_telemetry_provider",
|
|
545
|
+
"delete_assistant_tool",
|
|
546
|
+
"delete_assistant_webhook",
|
|
547
|
+
"disable_assistant_authentication",
|
|
428
548
|
"get_assistant",
|
|
429
549
|
"get_all_assistant",
|
|
550
|
+
"get_all_assistant_analysis",
|
|
430
551
|
"get_assistant_conversation",
|
|
431
552
|
"get_all_assistant_conversation",
|
|
553
|
+
"get_assistant_http_log",
|
|
554
|
+
"get_all_assistant_http_log",
|
|
432
555
|
"get_assistant_webhook",
|
|
433
556
|
"get_all_assistant_webhook",
|
|
434
557
|
"get_assistant_knowledge",
|
|
435
558
|
"get_all_assistant_knowledge",
|
|
559
|
+
"get_all_assistant_message",
|
|
560
|
+
"get_all_assistant_provider",
|
|
561
|
+
"get_all_assistant_telemetry",
|
|
562
|
+
"get_assistant_telemetry_provider",
|
|
563
|
+
"get_all_assistant_telemetry_provider",
|
|
436
564
|
"get_assistant_tool",
|
|
437
565
|
"get_all_assistant_tool",
|
|
438
|
-
"
|
|
439
|
-
"
|
|
566
|
+
"get_assistant_tool_log",
|
|
567
|
+
"get_all_assistant_tool_log",
|
|
568
|
+
"get_all_conversation_message",
|
|
569
|
+
"get_all_message",
|
|
570
|
+
"create_endpoint",
|
|
571
|
+
"create_endpoint_cache_configuration",
|
|
572
|
+
"create_endpoint_provider_model",
|
|
573
|
+
"create_endpoint_retry_configuration",
|
|
574
|
+
"create_endpoint_tag",
|
|
575
|
+
"fork_endpoint",
|
|
440
576
|
"get_endpoint",
|
|
441
577
|
"get_all_endpoint",
|
|
578
|
+
"get_all_endpoint_provider_model",
|
|
442
579
|
"get_endpoint_log",
|
|
443
580
|
"get_all_endpoint_log",
|
|
444
581
|
"invoke",
|
|
582
|
+
"probe",
|
|
583
|
+
"update",
|
|
445
584
|
"get_assistant_analysis",
|
|
446
|
-
"
|
|
585
|
+
"get_assistant_authentication",
|
|
586
|
+
"retry_assistant_http_log",
|
|
587
|
+
"update_endpoint_detail",
|
|
588
|
+
"update_endpoint_version",
|
|
589
|
+
"update_assistant_analysis",
|
|
590
|
+
"update_assistant_detail",
|
|
591
|
+
"update_assistant_knowledge",
|
|
592
|
+
"update_assistant_telemetry_provider",
|
|
593
|
+
"update_assistant_tool",
|
|
594
|
+
"update_assistant_version",
|
|
595
|
+
"update_assistant_webhook",
|
|
596
|
+
"create_message_metric",
|
|
597
|
+
"create_conversation_metric",
|
|
447
598
|
"create_phone_call",
|
|
448
599
|
"create_bulk_phone_call",
|
|
449
600
|
# Protobuf classes
|
|
@@ -468,12 +619,6 @@ __all__ = [
|
|
|
468
619
|
"GetCredentialResponse",
|
|
469
620
|
"GetAllOrganizationCredentialRequest",
|
|
470
621
|
"AssistantDefinition",
|
|
471
|
-
"AssistantMessagingRequest",
|
|
472
|
-
"AssistantConversationConfiguration",
|
|
473
|
-
"AssistantConversationInterruption",
|
|
474
|
-
"AssistantConversationUserMessage",
|
|
475
|
-
"AssistantConversationAssistantMessage",
|
|
476
|
-
"AssistantMessagingResponse",
|
|
477
622
|
"CreateMessageMetricRequest",
|
|
478
623
|
"CreateMessageMetricResponse",
|
|
479
624
|
"CreateConversationMetricRequest",
|
|
@@ -561,7 +706,6 @@ __all__ = [
|
|
|
561
706
|
"Tag",
|
|
562
707
|
"Organization",
|
|
563
708
|
"Metric",
|
|
564
|
-
"Content",
|
|
565
709
|
"ProtoMessage",
|
|
566
710
|
"ToolCall",
|
|
567
711
|
"FunctionCall",
|
|
@@ -575,8 +719,8 @@ __all__ = [
|
|
|
575
719
|
"GetAllAssistantConversationResponse",
|
|
576
720
|
"GetAllConversationMessageRequest",
|
|
577
721
|
"GetAllConversationMessageResponse",
|
|
722
|
+
"AssistantHTTPLog",
|
|
578
723
|
"AssistantWebhook",
|
|
579
|
-
"AssistantWebhookLog",
|
|
580
724
|
"CreateAssistantWebhookRequest",
|
|
581
725
|
"UpdateAssistantWebhookRequest",
|
|
582
726
|
"GetAssistantWebhookRequest",
|
|
@@ -584,10 +728,11 @@ __all__ = [
|
|
|
584
728
|
"GetAssistantWebhookResponse",
|
|
585
729
|
"GetAllAssistantWebhookRequest",
|
|
586
730
|
"GetAllAssistantWebhookResponse",
|
|
587
|
-
"
|
|
588
|
-
"
|
|
589
|
-
"
|
|
590
|
-
"
|
|
731
|
+
"GetAllAssistantHTTPLogRequest",
|
|
732
|
+
"GetAssistantHTTPLogRequest",
|
|
733
|
+
"GetAssistantHTTPLogResponse",
|
|
734
|
+
"GetAllAssistantHTTPLogResponse",
|
|
735
|
+
"RetryAssistantHTTPLogRequest",
|
|
591
736
|
"GeneralConnectRequest",
|
|
592
737
|
"GeneralConnectResponse",
|
|
593
738
|
"GetConnectorFilesRequest",
|
|
@@ -624,6 +769,7 @@ __all__ = [
|
|
|
624
769
|
"GetEndpointLogRequest",
|
|
625
770
|
"GetEndpointLogResponse",
|
|
626
771
|
"AssistantTool",
|
|
772
|
+
"AssistantToolLog",
|
|
627
773
|
"CreateAssistantToolRequest",
|
|
628
774
|
"UpdateAssistantToolRequest",
|
|
629
775
|
"GetAssistantToolRequest",
|
|
@@ -631,6 +777,10 @@ __all__ = [
|
|
|
631
777
|
"GetAssistantToolResponse",
|
|
632
778
|
"GetAllAssistantToolRequest",
|
|
633
779
|
"GetAllAssistantToolResponse",
|
|
780
|
+
"GetAssistantToolLogRequest",
|
|
781
|
+
"GetAssistantToolLogResponse",
|
|
782
|
+
"GetAllAssistantToolLogRequest",
|
|
783
|
+
"GetAllAssistantToolLogResponse",
|
|
634
784
|
"Credential",
|
|
635
785
|
"ToolDefinition",
|
|
636
786
|
"FunctionDefinition",
|
|
@@ -674,27 +824,59 @@ __all__ = [
|
|
|
674
824
|
"UpdateKnowledgeDetailRequest",
|
|
675
825
|
"UpdateKnowledgeDocumentSegmentRequest",
|
|
676
826
|
"DeleteKnowledgeDocumentSegmentRequest",
|
|
827
|
+
"AssistantProviderAgentkit",
|
|
828
|
+
"AssistantProviderModel",
|
|
829
|
+
"AssistantProviderWebsocket",
|
|
830
|
+
"CreateAssistantProviderRequest",
|
|
831
|
+
"GetAllAssistantProviderRequest",
|
|
832
|
+
"GetAllAssistantProviderResponse",
|
|
833
|
+
"GetAssistantProviderResponse",
|
|
834
|
+
"UpdateAssistantVersionRequest",
|
|
677
835
|
"Assistant",
|
|
836
|
+
"CreateAssistantAuthenticationRequest",
|
|
678
837
|
"CreateAssistantRequest",
|
|
679
838
|
"CreateAssistantTagRequest",
|
|
839
|
+
"CreateAssistantTelemetryProviderRequest",
|
|
680
840
|
"GetAssistantRequest",
|
|
841
|
+
"GetAssistantAuthenticationRequest",
|
|
842
|
+
"GetAssistantAuthenticationResponse",
|
|
681
843
|
"DeleteAssistantRequest",
|
|
844
|
+
"DeleteAssistantTelemetryProviderRequest",
|
|
845
|
+
"DisableAssistantAuthenticationRequest",
|
|
682
846
|
"GetAssistantResponse",
|
|
683
847
|
"GetAllAssistantRequest",
|
|
684
848
|
"GetAllAssistantResponse",
|
|
685
849
|
"GetAllAssistantMessageRequest",
|
|
686
850
|
"GetAllAssistantMessageResponse",
|
|
851
|
+
"GetAllAssistantTelemetryProviderRequest",
|
|
852
|
+
"GetAllAssistantTelemetryProviderResponse",
|
|
853
|
+
"GetAllAssistantTelemetryRequest",
|
|
854
|
+
"GetAllAssistantTelemetryResponse",
|
|
687
855
|
"GetAllMessageRequest",
|
|
688
856
|
"GetAllMessageResponse",
|
|
857
|
+
"GetAssistantTelemetryProviderRequest",
|
|
858
|
+
"GetAssistantTelemetryProviderResponse",
|
|
859
|
+
"UpdateAssistantTelemetryProviderRequest",
|
|
689
860
|
"UpdateAssistantDetailRequest",
|
|
690
861
|
"GetAssistantConversationRequest",
|
|
691
862
|
"GetAssistantConversationResponse",
|
|
692
|
-
"AssistantConversationMessageTextContent",
|
|
693
|
-
"AssistantConversationMessageAudioContent",
|
|
694
863
|
"AgentKitStub",
|
|
695
864
|
"AgentKit",
|
|
696
865
|
"AgentKitServicer",
|
|
697
866
|
"TalkServiceServicer",
|
|
698
867
|
"add_AgentKitServicer_to_server",
|
|
699
|
-
"
|
|
868
|
+
"AssistantTalkRequest",
|
|
869
|
+
"AssistantTalkResponse",
|
|
870
|
+
"TalkInput",
|
|
871
|
+
"TalkOutput",
|
|
872
|
+
"ConversationAssistantMessage",
|
|
873
|
+
"ConversationConfiguration",
|
|
874
|
+
"ConversationDisconnection",
|
|
875
|
+
"ConversationInterruption",
|
|
876
|
+
"ConversationModeChange",
|
|
877
|
+
"ConversationUserMessage",
|
|
878
|
+
"ConversationToolCall",
|
|
879
|
+
"ConversationToolCallResult",
|
|
700
880
|
]
|
|
881
|
+
|
|
882
|
+
__all__.extend(_AGENTKIT_EXPORTS)
|