rapida-python 0.1.15__py3-none-any.whl → 0.1.17__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
rapida/__init__.py CHANGED
@@ -213,6 +213,8 @@ from rapida.clients.assistant import (
213
213
  get_all_assistant_tool,
214
214
  get_assistant_webhook_log,
215
215
  get_all_assistant_webhook_log,
216
+ get_assistant_analysis,
217
+ get_all_assistant_analysis,
216
218
  )
217
219
 
218
220
  from rapida.clients.endpoint import (
@@ -534,8 +536,6 @@ from rapida.clients.protos.assistant_api_pb2 import (
534
536
  GetAllMessageResponse,
535
537
  UpdateAssistantVersionRequest,
536
538
  UpdateAssistantDetailRequest,
537
- GetAllAssistantUserConversationRequest,
538
- GetAllAssistantUserConversationResponse,
539
539
  GetAssistantConversationRequest,
540
540
  GetAssistantConversationResponse,
541
541
  )
@@ -599,6 +599,8 @@ __all__ = [
599
599
  "get_endpoint_log",
600
600
  "get_all_endpoint_log",
601
601
  "invoke",
602
+ "get_assistant_analysis",
603
+ "get_all_assistant_analysis",
602
604
  # "IndexKnowledgeDocument",
603
605
  # "GetAllDeployment",
604
606
  # "Invoke",
@@ -20,6 +20,13 @@ from rapida.clients.protos.assistant_webhook_pb2 import (
20
20
  GetAssistantWebhookRequest,
21
21
  GetAssistantWebhookResponse,
22
22
  )
23
+
24
+ from rapida.clients.protos.assistant_analysis_pb2 import (
25
+ GetAllAssistantAnalysisRequest,
26
+ GetAssistantAnalysisRequest,
27
+ GetAssistantAnalysisResponse,
28
+ GetAllAssistantAnalysisResponse
29
+ )
23
30
  from rapida.clients.protos.assistant_tool_pb2 import (
24
31
  GetAllAssistantToolRequest,
25
32
  GetAllAssistantToolResponse,
@@ -167,6 +174,32 @@ def get_all_assistant_tool(
167
174
  )
168
175
 
169
176
 
177
+ def get_assistant_analysis(
178
+ client_cfg: ConnectionConfig,
179
+ request: GetAssistantAnalysisRequest,
180
+ auth: Union[UserAuthInfo, ClientAuthInfo, None] = None,
181
+ ) -> GetAssistantAnalysisResponse:
182
+ if auth is None:
183
+ auth = client_cfg.auth
184
+ return client_cfg.assistant_client.GetAssistantAnalysis(
185
+ request,
186
+ metadata=auth,
187
+ )
188
+
189
+
190
+ def get_all_assistant_analysis(
191
+ client_cfg: ConnectionConfig,
192
+ request: GetAllAssistantAnalysisRequest,
193
+ auth: Union[UserAuthInfo, ClientAuthInfo, None] = None,
194
+ ) -> GetAllAssistantAnalysisResponse:
195
+ if auth is None:
196
+ auth = client_cfg.auth
197
+ return client_cfg.assistant_client.GetAllAssistantAnalysis(
198
+ request,
199
+ metadata=auth,
200
+ )
201
+
202
+
170
203
  def get_assistant_webhook_log(
171
204
  client_cfg: ConnectionConfig,
172
205
  request: GetAssistantWebhookLogRequest,
@@ -24,9 +24,9 @@ Author: Prashant <prashant@rapida.ai>
24
24
  This module provides functions for managing projects through the ProjectService.
25
25
  """
26
26
 
27
- ASSISTANT_API = "https://assistant-01.rapida.ai"
28
- WEB_API = "https://api.rapida.ai"
29
- ENDPOINT_API = "https://api.rapida.ai"
27
+ ASSISTANT_API = "workflow-01.rapida.ai"
28
+ WEB_API = "api.rapida.ai"
29
+ ENDPOINT_API = "endpoint-01.rapida.ai"
30
30
 
31
31
  LOCAL_ASSISTANT_API = "localhost:9007"
32
32
  LOCAL_WEB_API = "localhost:9001"
@@ -130,7 +130,7 @@ class ConnectionConfig:
130
130
 
131
131
  @property
132
132
  def assistant_client(self):
133
- return AssistantServiceStub(self._create_channel(self._endpoint["web"]))
133
+ return AssistantServiceStub(self._create_channel(self._endpoint["assistant"]))
134
134
 
135
135
  @property
136
136
  def project_client(self):
@@ -138,7 +138,7 @@ class ConnectionConfig:
138
138
 
139
139
  @property
140
140
  def knowledge_client(self):
141
- return KnowledgeServiceStub(self._create_channel(self._endpoint["web"]))
141
+ return KnowledgeServiceStub(self._create_channel(self._endpoint["assistant"]))
142
142
 
143
143
  @property
144
144
  def deployment_client(self):
@@ -158,7 +158,7 @@ class ConnectionConfig:
158
158
 
159
159
  @property
160
160
  def endpoint_client(self):
161
- return EndpointServiceStub(self._create_channel(self._endpoint["web"]))
161
+ return EndpointServiceStub(self._create_channel(self._endpoint["endpoint"]))
162
162
 
163
163
  @property
164
164
  def audit_logging_client(self):
@@ -167,7 +167,7 @@ class ConnectionConfig:
167
167
  @property
168
168
  def assistant_deployment_client(self):
169
169
  return AssistantDeploymentServiceStub(
170
- self._create_channel(self._endpoint["web"])
170
+ self._create_channel(self._endpoint["assistant"])
171
171
  )
172
172
 
173
173
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rapida-python
3
- Version: 0.1.15
3
+ Version: 0.1.17
4
4
  Summary: RapidaAI SDK to integrate rapida.ai APIs
5
5
  Author-email: RapidaAI <code@rapida.ai>
6
6
  License-Expression: MIT
@@ -1,7 +1,7 @@
1
- rapida/__init__.py,sha256=Wwu0pdKbvYqLtQ7dOW5H40Ey5k9ipYfNL2-lc2xN6VQ,29205
1
+ rapida/__init__.py,sha256=NbsmdZWPTfNg4XKA3welpcnw6dfUSKQ-uQrfqI--VWA,29240
2
2
  rapida/version.py,sha256=viGOWqdZKnddhX3OaC8ukCMltj9eQG53LVDTj-Pha3o,1269
3
3
  rapida/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- rapida/clients/assistant.py,sha256=H4yQ6NFqcAbNXu-EEFmgmnmEBqkqPJaTVbRRwceSNWA,5542
4
+ rapida/clients/assistant.py,sha256=5WbNVtlms4uj93yQBKpH_Z1W615NtVODpBpXUYilWu0,6476
5
5
  rapida/clients/call.py,sha256=XYGGsa9lYtjNcisVd0IxM_-vr5QXgzpclXlVBcXdD3E,979
6
6
  rapida/clients/endpoint.py,sha256=BiFaB4H0ZyFtQx_ywJQz5KjmArqm1xQmf8mjshjXVyk,1720
7
7
  rapida/clients/invoke.py,sha256=jeCdFThHQIcGQ7rVqwKTzJLS-NRrR8yI20AzdWnJy9c,500
@@ -65,15 +65,15 @@ rapida/clients/protos/vault_api_pb2_grpc.py,sha256=l1zS-9Fb7A6FSpoz2y0biclpI8jkN
65
65
  rapida/clients/protos/web_api_pb2.py,sha256=mqHFIcjGKHJTKuHCN3wToKgfnboMI5UMwNZsABS0XrY,25234
66
66
  rapida/clients/protos/web_api_pb2.pyi,sha256=7xsUqEC9PKoDWlLqH_1Br7Br0jo5gEeyhukBBrx58sk,26114
67
67
  rapida/clients/protos/web_api_pb2_grpc.py,sha256=Sj29L6OMKgtb9ZUBH0q9PEAce7CHOKRZLvGog_NXNr8,47433
68
- rapida/configs/__init__.py,sha256=sqr0vCM4bqkwAWPdYQnhx--OpmROPZXHF4pp8pU5KB4,1546
69
- rapida/connections/__init__.py,sha256=IrC4xIzp0FWmQgZ8icT9GaGWqZMH5b3NhQaNhoSy-1A,7627
68
+ rapida/configs/__init__.py,sha256=QagBUyaYTqLjBMKkd9tBHupCSFBx23LdfLeeIk7ehmY,1529
69
+ rapida/connections/__init__.py,sha256=icMI-zePGLHm_uVIzVl8YxZSDFzK54QEo0A7ILQigj0,7650
70
70
  rapida/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
71
71
  rapida/utils/rapida_environment.py,sha256=S0wpHjNAokg3PbGXt5QkzATmX0_jPCjCC8zC_G33qaQ,1780
72
72
  rapida/utils/rapida_header.py,sha256=LdqZsRHfXpcT4YCC8Ag_eoNYa6WQx6PVfRyfH12Ey3A,2091
73
73
  rapida/utils/rapida_region.py,sha256=ZO6_VGTlawtM2G_XOPVQldupOlMRRS__A97KGu8TQkE,1788
74
74
  rapida/utils/rapida_source.py,sha256=ZHfYUSgtzv3Jpj-4PCjdZXyhbWPWbY-JZMCM1jYk5Fw,2828
75
75
  rapida/utils/rapida_value.py,sha256=4TFIbPmMqcR0RB-381rWTqrxgBLY5doTsPXihOA1-Dc,6091
76
- rapida_python-0.1.15.dist-info/METADATA,sha256=WHFTk9IDQoTcB4QiojV4dg0mt3k0nFWvYSCJBY8IHH4,3840
77
- rapida_python-0.1.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
78
- rapida_python-0.1.15.dist-info/top_level.txt,sha256=1OJt64VrZ3n2N8GBqlUSoQ3qvPv30QBYD--xOZv3R2g,7
79
- rapida_python-0.1.15.dist-info/RECORD,,
76
+ rapida_python-0.1.17.dist-info/METADATA,sha256=fSIU5ryhacp-fAuuy8Ja9-4LbfTrc3SPkvZYduQ1IAk,3840
77
+ rapida_python-0.1.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
78
+ rapida_python-0.1.17.dist-info/top_level.txt,sha256=1OJt64VrZ3n2N8GBqlUSoQ3qvPv30QBYD--xOZv3R2g,7
79
+ rapida_python-0.1.17.dist-info/RECORD,,