rapida-python 0.1.26__py3-none-any.whl → 0.1.28__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/clients/call.py CHANGED
@@ -20,7 +20,7 @@
20
20
  #
21
21
  # Author: Prashant <prashant@rapida.ai>
22
22
 
23
- from typing import Any, Union
23
+ from typing import Union
24
24
 
25
25
  from rapida.clients.protos.talk_api_pb2 import (
26
26
  CreateBulkPhoneCallRequest,
@@ -44,25 +44,15 @@ def _resolve_auth(
44
44
  ) -> Union[UserAuthInfo, ClientAuthInfo]:
45
45
  return client_cfg.auth if auth is None else auth
46
46
 
47
-
48
- def _call_conversation_client(
49
- client_cfg: ConnectionConfig,
50
- method_name: str,
51
- request: Any,
52
- auth: AuthMetadata = None,
53
- ) -> Any:
54
- return getattr(client_cfg.conversation_client, method_name)(
55
- request,
56
- metadata=_resolve_auth(client_cfg, auth),
57
- )
58
-
59
-
60
47
  def create_message_metric(
61
48
  client_cfg: ConnectionConfig,
62
49
  request: CreateMessageMetricRequest,
63
50
  auth: AuthMetadata = None,
64
51
  ) -> CreateMessageMetricResponse:
65
- return _call_conversation_client(client_cfg, "CreateMessageMetric", request, auth)
52
+ return client_cfg.conversation_client.CreateMessageMetric(
53
+ request,
54
+ metadata=_resolve_auth(client_cfg, auth),
55
+ )
66
56
 
67
57
 
68
58
  def create_conversation_metric(
@@ -70,11 +60,9 @@ def create_conversation_metric(
70
60
  request: CreateConversationMetricRequest,
71
61
  auth: AuthMetadata = None,
72
62
  ) -> CreateConversationMetricResponse:
73
- return _call_conversation_client(
74
- client_cfg,
75
- "CreateConversationMetric",
63
+ return client_cfg.conversation_client.CreateConversationMetric(
76
64
  request,
77
- auth,
65
+ metadata=_resolve_auth(client_cfg, auth),
78
66
  )
79
67
 
80
68
 
@@ -83,7 +71,10 @@ def create_phone_call(
83
71
  request: CreatePhoneCallRequest,
84
72
  auth: AuthMetadata = None,
85
73
  ) -> CreatePhoneCallResponse:
86
- return _call_conversation_client(client_cfg, "CreatePhoneCall", request, auth)
74
+ return client_cfg.conversation_client.CreatePhoneCall(
75
+ request,
76
+ metadata=_resolve_auth(client_cfg, auth),
77
+ )
87
78
 
88
79
 
89
80
  def create_bulk_phone_call(
@@ -91,7 +82,10 @@ def create_bulk_phone_call(
91
82
  request: CreateBulkPhoneCallRequest,
92
83
  auth: AuthMetadata = None,
93
84
  ) -> CreateBulkPhoneCallResponse:
94
- return _call_conversation_client(client_cfg, "CreateBulkPhoneCall", request, auth)
85
+ return client_cfg.conversation_client.CreateBulkPhoneCall(
86
+ request,
87
+ metadata=_resolve_auth(client_cfg, auth),
88
+ )
95
89
 
96
90
 
97
91
  __all__ = [
@@ -24,14 +24,10 @@ Author: Prashant <prashant@rapida.ai>
24
24
  This module provides functions for managing projects through the ProjectService.
25
25
  """
26
26
 
27
- ASSISTANT_API = "assistant-01.in.rapida.ai"
28
- WEB_API = "api-01.in.rapida.ai"
29
- ENDPOINT_API = "endpoint-01.in.rapida.ai"
27
+ ASSISTANT_API = "websocket-01.in.rapida.ai:50051"
28
+ WEB_API = "api-01.in.rapida.ai:50051"
29
+ ENDPOINT_API = "api-01.in.rapida.ai:50051"
30
30
 
31
31
  LOCAL_ASSISTANT_API = "localhost:9007"
32
32
  LOCAL_WEB_API = "localhost:9001"
33
33
  LOCAL_ENDPOINT_API = "localhost:9005"
34
-
35
- GRPC_ENDPOINT_URL = "endpoint-01.in.rapida.ai"
36
- GRPC_ASSISTANT_URL = "assistant-01.in.rapida.ai"
37
- GRPC_GATEWAY_URL = "gateway-01.rapida.ai"
rapida/version.py CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  _MAJOR = "0"
24
24
  _MINOR = "1"
25
- _REVISION = "7"
25
+ _REVISION = "8"
26
26
 
27
27
  VERSION_SHORT = f"{_MAJOR}.{_MINOR}"
28
28
  VERSION = f"{_MAJOR}.{_MINOR}.{_REVISION}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rapida-python
3
- Version: 0.1.26
3
+ Version: 0.1.28
4
4
  Summary: RapidaAI SDK to integrate rapida.ai APIs
5
5
  Author-email: RapidaAI <code@rapida.ai>
6
6
  License-Expression: MIT
@@ -1,9 +1,9 @@
1
1
  rapida/__init__.py,sha256=RGM09PLupMgAQpUUqQLAeMOyjNTnEoOGM3v_C-TojM4,25902
2
- rapida/version.py,sha256=-w8Ziory9eEBZ1QvGE8ewgp-3HFj3ckh_ZbxikpFwpo,1269
2
+ rapida/version.py,sha256=98NfoU4NeetdfcAsXTDvYiSEtBfO3a39BJuHNt24Wag,1269
3
3
  rapida/agentkit/__init__.py,sha256=ENbAYr6h2Y9TizFlbT5fL59Z3bTvGMCIVAmnO6dMuCc,24240
4
4
  rapida/clients/__init__.py,sha256=JVFlfG0AGsdLJao9aDTXw3NfoIeUTPL0eE6UM5h0RSo,1145
5
5
  rapida/clients/assistant.py,sha256=XwT_npIJs9L50gVGECL-hofKZyx9Xax2W3x2qiqSJPc,19411
6
- rapida/clients/call.py,sha256=X2u8VWyHxEJWBpfTbDCUkWkEN4ypSqmvcVowwgJpV_E,3289
6
+ rapida/clients/call.py,sha256=D-dtA63zo7ktxV4QD_Ke8Cw1j2Ev7MGPnnRLnBjxo1Q,3154
7
7
  rapida/clients/endpoint.py,sha256=8AssKEldfW7ch8h04t2PAWWoylXntPsNOdD8ed9yoR8,6518
8
8
  rapida/clients/invoke.py,sha256=Qp1Mx5VdUMtiLD7pS2Y0toV3nQsiMTFYr24UZjq5mpU,2592
9
9
  rapida/clients/protos/__init__.py,sha256=xDxIK91gUWJ2wHeanqwClbwNM0CuNfHZcdJiOdi1inQ,77
@@ -73,7 +73,7 @@ rapida/clients/protos/web_api_pb2_grpc.py,sha256=HTGTpTMIa86opwz4foOZKRNOZHhZHiI
73
73
  rapida/clients/protos/webrtc_pb2.py,sha256=jqSD-R8I6FSf2-CRmTaT_o3-sUtMn9jV8KyFThoj-Co,5811
74
74
  rapida/clients/protos/webrtc_pb2.pyi,sha256=4i3xHrjqLTdB17xJa15iL-0c0H-Nzj_y2UKX59uyzhg,8498
75
75
  rapida/clients/protos/webrtc_pb2_grpc.py,sha256=2FBfgpepoUjVt0esvJGFMG7oL--vVXea6uh1cIpVNkw,3975
76
- rapida/configs/__init__.py,sha256=wJFOKqjC0aPfuXSi8wiQHHC2Bfc5NR7kymLbXbaFS2k,1549
76
+ rapida/configs/__init__.py,sha256=-DRKhMdQY6ZKno3uHBgFtfzsIqPhIyeyFcW-9hVF2Vs,1423
77
77
  rapida/connections/__init__.py,sha256=z5GN-s0z4t9EzLha0fVaO9p3X3Ugc986R2gQq7-OnQA,7234
78
78
  rapida/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
79
79
  rapida/utils/rapida_environment.py,sha256=S0wpHjNAokg3PbGXt5QkzATmX0_jPCjCC8zC_G33qaQ,1780
@@ -81,7 +81,7 @@ rapida/utils/rapida_header.py,sha256=LdqZsRHfXpcT4YCC8Ag_eoNYa6WQx6PVfRyfH12Ey3A
81
81
  rapida/utils/rapida_region.py,sha256=ZO6_VGTlawtM2G_XOPVQldupOlMRRS__A97KGu8TQkE,1788
82
82
  rapida/utils/rapida_source.py,sha256=ZHfYUSgtzv3Jpj-4PCjdZXyhbWPWbY-JZMCM1jYk5Fw,2828
83
83
  rapida/utils/rapida_value.py,sha256=4TFIbPmMqcR0RB-381rWTqrxgBLY5doTsPXihOA1-Dc,6091
84
- rapida_python-0.1.26.dist-info/METADATA,sha256=527uOc4N_PfJl8BGxZ6D8uVHBCioidwKTJCREr5ou3w,3863
85
- rapida_python-0.1.26.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
86
- rapida_python-0.1.26.dist-info/top_level.txt,sha256=1OJt64VrZ3n2N8GBqlUSoQ3qvPv30QBYD--xOZv3R2g,7
87
- rapida_python-0.1.26.dist-info/RECORD,,
84
+ rapida_python-0.1.28.dist-info/METADATA,sha256=t8I3bBL-qzhAsXX4rDY3e2alItJ-6DJ_LVhAxnFizp8,3863
85
+ rapida_python-0.1.28.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
86
+ rapida_python-0.1.28.dist-info/top_level.txt,sha256=1OJt64VrZ3n2N8GBqlUSoQ3qvPv30QBYD--xOZv3R2g,7
87
+ rapida_python-0.1.28.dist-info/RECORD,,