CarmenCloudClientOptions

from carmen_cloud_client import CarmenCloudClientOptions

Options of :class:CarmenCloudClient.

Attributes

api_key : Optional[str] A Carmen Cloud API key with a workspace role (ADMIN, EDITOR or ACCOUNTANT). It is exchanged for short-lived bearer tokens automatically. Either this or access_token is required. access_token : Optional[Union[str, Callable[[], str]]] A bearer token, or a function returning one, used instead of an API key (e.g. a signed-in user's session token). The few operations marked "requires a user session" only work with such a token. workspace_id : Optional[str] The workspace to operate on. With api_key it defaults to the key's own workspace; with access_token it is required. endpoint : Optional[str] Overrides the API base URL (e.g. https://api.dev.carmencloud.com). cloud_service_region : Optional[CloudServiceRegion] AUTO (default, latency-based routing), EU or US. retry_count : Optional[int] How many times a failed request is retried. Default: 3.

Fieldsโ€‹

NameTypeDefault
api_keyOptional[str]None
access_tokenOptional[Union[str, Callable[[], str]]]None
workspace_idOptional[str]None
endpointOptional[str]None
cloud_service_regionOptional[Union[CloudServiceRegion, str]]None
retry_countOptional[int]3