You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propogate to these functions.
15
40
16
41
Parameters
17
42
----------
18
43
base_url : typing.Optional[str]
19
-
The base url to use for requests from the client.
20
-
21
-
environment : HumeClientEnvironment
44
+
The base URL to use for requests from the client. If provided, this will be converted
45
+
to a HumeClientEnvironment. Can be a full URL (http://... or https://...) or just
The environment to use for requests from the client. from .environment import HumeClientEnvironment
23
-
24
-
25
-
26
-
Defaults to HumeClientEnvironment.PROD
27
-
28
-
29
-
49
+
Defaults to None, which will use HumeClientEnvironment.PROD. Cannot be specified together with base_url.
30
50
api_key : typing.Optional[str]
31
51
timeout : typing.Optional[float]
32
52
The timeout to be used, in seconds, for requests by default the timeout is 60 seconds, unless a custom httpx client is used, in which case a default is not set.
@@ -49,18 +69,27 @@ class HumeClient(BaseHumeClient):
The environment to use for requests from the client. from .environment import HumeClientEnvironment
82
-
Defaults to HumeClientEnvironment.PROD
113
+
Defaults to None, which will use HumeClientEnvironment.PROD. Cannot be specified together with base_url.
83
114
api_key : typing.Optional[str]
84
115
timeout : typing.Optional[float]
85
116
The timeout to be used, in seconds, for requests by default the timeout is 60 seconds, unless a custom httpx client is used, in which case a default is not set.
@@ -98,18 +129,27 @@ class AsyncHumeClient(AsyncBaseHumeClient):
0 commit comments