Client#
- class Client(*, base_url=None, api_key=None, headers=None, http_client=None)#
Bases:
object- property datasets#
Returns an instance of the Datasets class for interacting with dataset-related API endpoints.
- Returns:
An instance of the Datasets class.
- Return type:
- property experiments#
Returns an instance of the Experiments class for interacting with experiment-related API endpoints.
- Returns:
An instance of the Experiments class.
- Return type:
- property projects#
Returns an instance of the Projects class for interacting with project-related API endpoints.
- Returns:
An instance of the Projects class.
- Return type:
- property prompts#
Returns an instance of the Prompts class for interacting with prompt-related API endpoints.
- Returns:
An instance of the Prompts class.
- Return type:
- property sessions#
Returns an instance of the Sessions class for interacting with session-related API endpoints.
- Returns:
An instance of the Sessions class.
- Return type:
- property spans#
Returns an instance of the Spans class for interacting with span-related API endpoints.
- Returns:
An instance of the Spans class.
- Return type:
- property traces#
Returns an instance of the Traces class for interacting with trace-related API endpoints.
- Returns:
An instance of the Traces class.
- Return type:
Traces
- class AsyncClient(*, base_url=None, api_key=None, headers=None, http_client=None)#
Bases:
object- property datasets#
Returns an instance of the AsyncDatasets class for interacting with dataset-related API endpoints.
- Returns:
An instance of the AsyncDatasets class.
- Return type:
- property experiments#
Returns an instance of the AsyncExperiments class for interacting with experiment-related API endpoints.
- Returns:
An instance of the AsyncExperiments class.
- Return type:
- property projects#
Returns an instance of the AsyncProjects class for interacting with project-related API endpoints.
- Returns:
An instance of the AsyncProjects class.
- Return type:
- property prompts#
Returns an instance of the AsyncPrompts class for interacting with prompt-related API endpoints.
- Returns:
An instance of the AsyncPrompts class.
- Return type:
- property sessions#
Returns an instance of the AsyncSessions class for interacting with session-related API endpoints.
- Returns:
An instance of the AsyncSessions class.
- Return type:
- property spans#
Returns an instance of the AsyncSpans class for interacting with span-related API endpoints.
- Returns:
An instance of the AsyncSpans class.
- Return type:
- property traces#
Returns an instance of the AsyncTraces class for interacting with trace-related API endpoints.
- Returns:
An instance of the AsyncTraces class.
- Return type:
AsyncTraces