Tamarind
Tamarind(
*,
api_key: str | None = None,
api_base: str | None = None,
profile: str | None = None,
timeout: float = 120.0,
)Creates an SDK session. Use it as a context manager so network resources are closed automatically.
Parameters
api_keystr | None, optional
- API key. When omitted, the active Tamarind profile or TAMARIND_API_KEY is used.
api_basestr | None, optional
- Overrides the configured organization API base URL. Include the trailing /api/ path; omit it to use the host from the selected profile.
profilestr | None, optional
- Loads credentials and host settings from this named Tamarind CLI profile. Omit it to use the active profile.
timeoutfloat, optional
- Maximum time in seconds for each API request before it fails. Defaults to 120 seconds.
Returns
Tamarind- A configured client. Use custom_tools to create and retrieve tools; leaving the context manager closes its network resources.
Raises
AuthErrorAPIError
Examples
1with Tamarind() as client:
2 tool = client.custom_tools.get("my-custom-tool")