rapida-python 0.1.8__tar.gz → 0.1.10__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.
Files changed (88) hide show
  1. {rapida_python-0.1.8 → rapida_python-0.1.10}/PKG-INFO +1 -1
  2. {rapida_python-0.1.8 → rapida_python-0.1.10}/pyproject.toml +1 -1
  3. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/__init__.py +41 -0
  4. rapida_python-0.1.10/rapida/clients/assistant.py +192 -0
  5. rapida_python-0.1.10/rapida/clients/call.py +34 -0
  6. rapida_python-0.1.10/rapida/clients/endpoint.py +66 -0
  7. rapida_python-0.1.10/rapida/clients/invoke.py +20 -0
  8. rapida_python-0.1.10/rapida/clients/vault.py +0 -0
  9. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/connections/__init__.py +1 -1
  10. rapida_python-0.1.10/rapida/utils/__init__.py +0 -0
  11. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida_python.egg-info/PKG-INFO +1 -1
  12. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida_python.egg-info/SOURCES.txt +5 -0
  13. rapida_python-0.1.8/rapida/clients/call.py +0 -26
  14. {rapida_python-0.1.8 → rapida_python-0.1.10}/README.md +0 -0
  15. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/__init__.py +0 -0
  16. /rapida_python-0.1.8/rapida/utils/__init__.py → /rapida_python-0.1.10/rapida/clients/knowledge.py +0 -0
  17. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_analysis_pb2.py +0 -0
  18. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_analysis_pb2.pyi +0 -0
  19. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_analysis_pb2_grpc.py +0 -0
  20. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_api_pb2.py +0 -0
  21. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_api_pb2.pyi +0 -0
  22. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_api_pb2_grpc.py +0 -0
  23. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_deployment_pb2.py +0 -0
  24. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_deployment_pb2.pyi +0 -0
  25. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_deployment_pb2_grpc.py +0 -0
  26. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_knowledge_pb2.py +0 -0
  27. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_knowledge_pb2.pyi +0 -0
  28. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_knowledge_pb2_grpc.py +0 -0
  29. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_tool_pb2.py +0 -0
  30. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_tool_pb2.pyi +0 -0
  31. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_tool_pb2_grpc.py +0 -0
  32. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_webhook_pb2.py +0 -0
  33. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_webhook_pb2.pyi +0 -0
  34. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/assistant_webhook_pb2_grpc.py +0 -0
  35. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/audit_logging_api_pb2.py +0 -0
  36. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/audit_logging_api_pb2.pyi +0 -0
  37. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/audit_logging_api_pb2_grpc.py +0 -0
  38. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/common_pb2.py +0 -0
  39. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/common_pb2.pyi +0 -0
  40. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/common_pb2_grpc.py +0 -0
  41. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/connect_api_pb2.py +0 -0
  42. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/connect_api_pb2.pyi +0 -0
  43. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/connect_api_pb2_grpc.py +0 -0
  44. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/document_api_pb2.py +0 -0
  45. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/document_api_pb2.pyi +0 -0
  46. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/document_api_pb2_grpc.py +0 -0
  47. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/endpoint_api_pb2.py +0 -0
  48. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/endpoint_api_pb2.pyi +0 -0
  49. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/endpoint_api_pb2_grpc.py +0 -0
  50. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/integration_api_pb2.py +0 -0
  51. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/integration_api_pb2.pyi +0 -0
  52. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/integration_api_pb2_grpc.py +0 -0
  53. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/invoker_api_pb2.py +0 -0
  54. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/invoker_api_pb2.pyi +0 -0
  55. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/invoker_api_pb2_grpc.py +0 -0
  56. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/knowledge_api_pb2.py +0 -0
  57. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/knowledge_api_pb2.pyi +0 -0
  58. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/knowledge_api_pb2_grpc.py +0 -0
  59. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/marketplace_api_pb2.py +0 -0
  60. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/marketplace_api_pb2.pyi +0 -0
  61. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/marketplace_api_pb2_grpc.py +0 -0
  62. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/provider_api_pb2.py +0 -0
  63. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/provider_api_pb2.pyi +0 -0
  64. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/provider_api_pb2_grpc.py +0 -0
  65. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/sendgrid_api_pb2.py +0 -0
  66. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/sendgrid_api_pb2.pyi +0 -0
  67. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/sendgrid_api_pb2_grpc.py +0 -0
  68. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/talk_api_pb2.py +0 -0
  69. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/talk_api_pb2.pyi +0 -0
  70. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/talk_api_pb2_grpc.py +0 -0
  71. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/vault_api_pb2.py +0 -0
  72. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/vault_api_pb2.pyi +0 -0
  73. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/vault_api_pb2_grpc.py +0 -0
  74. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/web_api_pb2.py +0 -0
  75. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/web_api_pb2.pyi +0 -0
  76. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/clients/protos/web_api_pb2_grpc.py +0 -0
  77. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/configs/__init__.py +0 -0
  78. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/utils/rapida_environment.py +0 -0
  79. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/utils/rapida_header.py +0 -0
  80. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/utils/rapida_region.py +0 -0
  81. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/utils/rapida_source.py +0 -0
  82. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/utils/rapida_value.py +0 -0
  83. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida/version.py +0 -0
  84. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida_python.egg-info/dependency_links.txt +0 -0
  85. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida_python.egg-info/requires.txt +0 -0
  86. {rapida_python-0.1.8 → rapida_python-0.1.10}/rapida_python.egg-info/top_level.txt +0 -0
  87. {rapida_python-0.1.8 → rapida_python-0.1.10}/setup.cfg +0 -0
  88. {rapida_python-0.1.8 → rapida_python-0.1.10}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rapida-python
3
- Version: 0.1.8
3
+ Version: 0.1.10
4
4
  Summary: RapidaAI SDK to integrate rapida.ai APIs
5
5
  Author-email: RapidaAI <code@rapida.ai>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rapida-python"
7
- version = "0.1.8"
7
+ version = "0.1.10"
8
8
  description = "RapidaAI SDK to integrate rapida.ai APIs"
9
9
  readme = "README.md"
10
10
  authors = [{name = "RapidaAI", email = "code@rapida.ai"}]
@@ -200,6 +200,29 @@ from rapida.utils.rapida_header import (
200
200
  # CreateProjectCredential,
201
201
  # )
202
202
  from rapida.clients.call import create_phone_call, create_bulk_phone_call
203
+ from rapida.clients.assistant import (
204
+ get_assistant,
205
+ get_all_assistant,
206
+ get_assistant_conversation,
207
+ get_all_assistant_conversation,
208
+ get_assistant_webhook,
209
+ get_all_assistant_webhook,
210
+ get_assistant_knowledge,
211
+ get_all_assistant_knowledge,
212
+ get_assistant_tool,
213
+ get_all_assistant_tool,
214
+ get_assistant_webhook_log,
215
+ get_all_assistant_webhook_log,
216
+ )
217
+
218
+ from rapida.clients.endpoint import (
219
+ get_endpoint,
220
+ get_all_endpoint,
221
+ get_endpoint_log,
222
+ get_all_endpoint_log,
223
+ )
224
+
225
+ from rapida.clients.invoke import invoke
203
226
 
204
227
  # # Protobuf imports
205
228
  from rapida.clients.protos.assistant_knowledge_pb2 import (
@@ -569,6 +592,24 @@ __all__ = [
569
592
  "HEADER_REMOTE_URL",
570
593
  "HEADER_LATITUDE",
571
594
  "HEADER_LONGITUDE",
595
+ #
596
+ "get_assistant",
597
+ "get_all_assistant",
598
+ "get_assistant_conversation",
599
+ "get_all_assistant_conversation",
600
+ "get_assistant_webhook",
601
+ "get_all_assistant_webhook",
602
+ "get_assistant_knowledge",
603
+ "get_all_assistant_knowledge",
604
+ "get_assistant_tool",
605
+ "get_all_assistant_tool",
606
+ "get_assistant_webhook_log",
607
+ "get_all_assistant_webhook_log",
608
+ "get_endpoint",
609
+ "get_all_endpoint",
610
+ "get_endpoint_log",
611
+ "get_all_endpoint_log",
612
+ "invoke",
572
613
  # "IndexKnowledgeDocument",
573
614
  # "GetAllDeployment",
574
615
  # "Invoke",
@@ -0,0 +1,192 @@
1
+ from typing import Union
2
+ from rapida.clients.protos.assistant_knowledge_pb2 import (
3
+ GetAllAssistantKnowledgeRequest,
4
+ GetAllAssistantKnowledgeResponse,
5
+ GetAssistantKnowledgeRequest,
6
+ GetAssistantKnowledgeResponse,
7
+ )
8
+
9
+ from rapida.clients.protos.common_pb2 import (
10
+ GetAllAssistantConversationRequest,
11
+ GetAllAssistantConversationResponse,
12
+ )
13
+ from rapida.clients.protos.assistant_webhook_pb2 import (
14
+ GetAllAssistantWebhookLogRequest,
15
+ GetAllAssistantWebhookLogResponse,
16
+ GetAllAssistantWebhookRequest,
17
+ GetAllAssistantWebhookResponse,
18
+ GetAssistantWebhookLogRequest,
19
+ GetAssistantWebhookLogResponse,
20
+ GetAssistantWebhookRequest,
21
+ GetAssistantWebhookResponse,
22
+ )
23
+ from rapida.clients.protos.assistant_tool_pb2 import (
24
+ GetAllAssistantToolRequest,
25
+ GetAllAssistantToolResponse,
26
+ GetAssistantToolRequest,
27
+ GetAssistantToolResponse,
28
+ )
29
+ from rapida.clients.protos.assistant_api_pb2 import (
30
+ GetAllAssistantRequest,
31
+ GetAllAssistantResponse,
32
+ GetAssistantConversationRequest,
33
+ GetAssistantConversationResponse,
34
+ )
35
+ from rapida.clients.protos.talk_api_pb2 import GetAssistantRequest, GetAssistantResponse
36
+ from rapida.connections import ConnectionConfig, UserAuthInfo, ClientAuthInfo
37
+
38
+
39
+ def get_assistant(
40
+ client_cfg: ConnectionConfig,
41
+ request: GetAssistantRequest,
42
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
43
+ ) -> GetAssistantResponse:
44
+ if auth is None:
45
+ auth = client_cfg.auth
46
+ return client_cfg.assistant_client.GetAssistant(
47
+ request,
48
+ metadata=auth,
49
+ )
50
+
51
+
52
+ def get_all_assistant(
53
+ client_cfg: ConnectionConfig,
54
+ request: GetAllAssistantRequest,
55
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
56
+ ) -> GetAllAssistantResponse:
57
+ if auth is None:
58
+ auth = client_cfg.auth
59
+ return client_cfg.assistant_client.GetAllAssistant(
60
+ request,
61
+ metadata=auth,
62
+ )
63
+
64
+
65
+ def get_assistant_conversation(
66
+ client_cfg: ConnectionConfig,
67
+ request: GetAssistantConversationRequest,
68
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
69
+ ) -> GetAssistantConversationResponse:
70
+ if auth is None:
71
+ auth = client_cfg.auth
72
+ return client_cfg.assistant_client.GetAssistantConversation(
73
+ request,
74
+ metadata=auth,
75
+ )
76
+
77
+
78
+ def get_all_assistant_conversation(
79
+ client_cfg: ConnectionConfig,
80
+ request: GetAllAssistantConversationRequest,
81
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
82
+ ) -> GetAllAssistantConversationResponse:
83
+ if auth is None:
84
+ auth = client_cfg.auth
85
+ return client_cfg.assistant_client.GetAllAssistantConversation(
86
+ request,
87
+ metadata=auth,
88
+ )
89
+
90
+
91
+ def get_assistant_webhook(
92
+ client_cfg: ConnectionConfig,
93
+ request: GetAssistantWebhookRequest,
94
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
95
+ ) -> GetAssistantWebhookResponse:
96
+ if auth is None:
97
+ auth = client_cfg.auth
98
+ return client_cfg.assistant_client.GetAssistantWebhook(
99
+ request,
100
+ metadata=auth,
101
+ )
102
+
103
+
104
+ def get_all_assistant_webhook(
105
+ client_cfg: ConnectionConfig,
106
+ request: GetAllAssistantWebhookRequest,
107
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
108
+ ) -> GetAllAssistantWebhookResponse:
109
+ if auth is None:
110
+ auth = client_cfg.auth
111
+ return client_cfg.assistant_client.GetAllAssistantWebhook(
112
+ request,
113
+ metadata=auth,
114
+ )
115
+
116
+
117
+ def get_assistant_knowledge(
118
+ client_cfg: ConnectionConfig,
119
+ request: GetAssistantKnowledgeRequest,
120
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
121
+ ) -> GetAssistantKnowledgeResponse:
122
+ if auth is None:
123
+ auth = client_cfg.auth
124
+ return client_cfg.assistant_client.GetAssistantKnowledge(
125
+ request,
126
+ metadata=auth,
127
+ )
128
+
129
+
130
+ def get_all_assistant_knowledge(
131
+ client_cfg: ConnectionConfig,
132
+ request: GetAllAssistantKnowledgeRequest,
133
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
134
+ ) -> GetAllAssistantKnowledgeResponse:
135
+ if auth is None:
136
+ auth = client_cfg.auth
137
+ return client_cfg.assistant_client.GetAllAssistantKnowledge(
138
+ request,
139
+ metadata=auth,
140
+ )
141
+
142
+
143
+ def get_assistant_tool(
144
+ client_cfg: ConnectionConfig,
145
+ request: GetAssistantToolRequest,
146
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
147
+ ) -> GetAssistantToolResponse:
148
+ if auth is None:
149
+ auth = client_cfg.auth
150
+ return client_cfg.assistant_client.GetAssistantTool(
151
+ request,
152
+ metadata=auth,
153
+ )
154
+
155
+
156
+ def get_all_assistant_tool(
157
+ client_cfg: ConnectionConfig,
158
+ request: GetAllAssistantToolRequest,
159
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
160
+ ) -> GetAllAssistantToolResponse:
161
+ if auth is None:
162
+ auth = client_cfg.auth
163
+ return client_cfg.assistant_client.GetAllAssistantTool(
164
+ request,
165
+ metadata=auth,
166
+ )
167
+
168
+
169
+ def get_assistant_webhook_log(
170
+ client_cfg: ConnectionConfig,
171
+ request: GetAssistantWebhookLogRequest,
172
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
173
+ ) -> GetAssistantWebhookLogResponse:
174
+ if auth is None:
175
+ auth = client_cfg.auth
176
+ return client_cfg.assistant_client.GetAssistantTool(
177
+ request,
178
+ metadata=auth,
179
+ )
180
+
181
+
182
+ def get_all_assistant_webhook_log(
183
+ client_cfg: ConnectionConfig,
184
+ request: GetAllAssistantWebhookLogRequest,
185
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
186
+ ) -> GetAllAssistantWebhookLogResponse:
187
+ if auth is None:
188
+ auth = client_cfg.auth
189
+ return client_cfg.assistant_client.GetAllAssistantTool(
190
+ request,
191
+ metadata=auth,
192
+ )
@@ -0,0 +1,34 @@
1
+ from typing import Union
2
+ from rapida.clients.protos.talk_api_pb2 import (
3
+ CreateBulkPhoneCallRequest,
4
+ CreateBulkPhoneCallResponse,
5
+ CreatePhoneCallRequest,
6
+ CreatePhoneCallResponse,
7
+ )
8
+ from rapida.connections import ConnectionConfig, UserAuthInfo, ClientAuthInfo
9
+
10
+
11
+ def create_phone_call(
12
+ client_cfg: ConnectionConfig,
13
+ request: CreatePhoneCallRequest,
14
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
15
+ ) -> CreatePhoneCallResponse:
16
+ if auth is None:
17
+ auth = client_cfg.auth
18
+ return client_cfg.conversation_client.CreatePhoneCall(
19
+ request,
20
+ metadata=auth,
21
+ )
22
+
23
+
24
+ def create_bulk_phone_call(
25
+ client_cfg: ConnectionConfig,
26
+ request: CreateBulkPhoneCallRequest,
27
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
28
+ ) -> CreateBulkPhoneCallResponse:
29
+ if auth is None:
30
+ auth = client_cfg.auth
31
+ return client_cfg.conversation_client.CreateBulkPhoneCall(
32
+ request,
33
+ metadata=auth,
34
+ )
@@ -0,0 +1,66 @@
1
+ from typing import Union
2
+ from rapida.clients.protos.endpoint_api_pb2 import (
3
+ GetAllEndpointLogRequest,
4
+ GetAllEndpointLogResponse,
5
+ GetAllEndpointRequest,
6
+ GetAllEndpointResponse,
7
+ GetEndpointLogRequest,
8
+ GetEndpointLogResponse,
9
+ GetEndpointRequest,
10
+ GetEndpointResponse,
11
+ )
12
+ from rapida.connections import ConnectionConfig, UserAuthInfo, ClientAuthInfo
13
+
14
+
15
+ def get_endpoint(
16
+ client_cfg: ConnectionConfig,
17
+ request: GetEndpointRequest,
18
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
19
+ ) -> GetEndpointResponse:
20
+ if auth is None:
21
+ auth = client_cfg.auth
22
+
23
+ return client_cfg.endpoint_client.GetEndpoint(
24
+ request,
25
+ metadata=auth,
26
+ )
27
+
28
+
29
+ def get_all_endpoint(
30
+ client_cfg: ConnectionConfig,
31
+ request: GetAllEndpointRequest,
32
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
33
+ ) -> GetAllEndpointResponse:
34
+ if auth is None:
35
+ auth = client_cfg.auth
36
+ return client_cfg.endpoint_client.GetAllEndpoint(
37
+ request,
38
+ metadata=auth,
39
+ )
40
+
41
+
42
+ def get_endpoint_log(
43
+ client_cfg: ConnectionConfig,
44
+ request: GetEndpointLogRequest,
45
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
46
+ ) -> GetEndpointLogResponse:
47
+ if auth is None:
48
+ auth = client_cfg.auth
49
+
50
+ return client_cfg.endpoint_client.GetEndpointLog(
51
+ request,
52
+ metadata=auth,
53
+ )
54
+
55
+
56
+ def get_all_endpoint_log(
57
+ client_cfg: ConnectionConfig,
58
+ request: GetAllEndpointLogRequest,
59
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
60
+ ) -> GetAllEndpointLogResponse:
61
+ if auth is None:
62
+ auth = client_cfg.auth
63
+ return client_cfg.endpoint_client.GetAllEndpointLog(
64
+ request,
65
+ metadata=auth,
66
+ )
@@ -0,0 +1,20 @@
1
+ from typing import Union
2
+ from rapida.clients.protos.invoker_api_pb2 import (
3
+ InvokeRequest,
4
+ InvokeResponse,
5
+ )
6
+ from rapida.connections import ConnectionConfig, UserAuthInfo, ClientAuthInfo
7
+
8
+
9
+ def invoke(
10
+ client_cfg: ConnectionConfig,
11
+ request: InvokeRequest,
12
+ auth: Union[UserAuthInfo, ClientAuthInfo, None],
13
+ ) -> InvokeResponse:
14
+ if auth is None:
15
+ auth = client_cfg.auth
16
+
17
+ return client_cfg.deployment_client.Invoke(
18
+ request,
19
+ metadata=auth,
20
+ )
File without changes
@@ -142,7 +142,7 @@ class ConnectionConfig:
142
142
 
143
143
  @property
144
144
  def deployment_client(self):
145
- return DeploymentStub(self._create_channel(self._endpoint["web"]))
145
+ return DeploymentStub(self._create_channel(self._endpoint["endpoint"]))
146
146
 
147
147
  @property
148
148
  def marketplace_client(self):
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rapida-python
3
- Version: 0.1.8
3
+ Version: 0.1.10
4
4
  Summary: RapidaAI SDK to integrate rapida.ai APIs
5
5
  Author-email: RapidaAI <code@rapida.ai>
6
6
  License-Expression: MIT
@@ -5,7 +5,12 @@ setup.py
5
5
  rapida/__init__.py
6
6
  rapida/version.py
7
7
  rapida/clients/__init__.py
8
+ rapida/clients/assistant.py
8
9
  rapida/clients/call.py
10
+ rapida/clients/endpoint.py
11
+ rapida/clients/invoke.py
12
+ rapida/clients/knowledge.py
13
+ rapida/clients/vault.py
9
14
  rapida/clients/protos/assistant_analysis_pb2.py
10
15
  rapida/clients/protos/assistant_analysis_pb2.pyi
11
16
  rapida/clients/protos/assistant_analysis_pb2_grpc.py
@@ -1,26 +0,0 @@
1
- from rapida.clients.protos.talk_api_pb2 import (
2
- CreateBulkPhoneCallRequest,
3
- CreateBulkPhoneCallResponse,
4
- CreatePhoneCallRequest,
5
- CreatePhoneCallResponse,
6
- )
7
- from rapida.connections import ConnectionConfig
8
-
9
-
10
- def create_phone_call(
11
- client_cfg: ConnectionConfig, request: CreatePhoneCallRequest
12
- ) -> CreatePhoneCallResponse:
13
- return client_cfg.conversation_client.CreatePhoneCall(
14
- request,
15
- metadata=client_cfg.auth,
16
- )
17
-
18
-
19
- def create_bulk_phone_call(
20
- client_cfg: ConnectionConfig, request: CreateBulkPhoneCallRequest
21
- ) -> CreateBulkPhoneCallResponse:
22
-
23
- return client_cfg.conversation_client.CreateBulkPhoneCall(
24
- request,
25
- metadata=client_cfg.auth,
26
- )
File without changes
File without changes
File without changes