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:

Datasets

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:

Experiments

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:

Projects

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:

Prompts

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:

Sessions

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:

Spans

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:

AsyncDatasets

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:

AsyncExperiments

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:

AsyncProjects

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:

AsyncPrompts

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:

AsyncSessions

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:

AsyncSpans

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