root.client

Classes

Beta

Beta API features namespace

RootSignals

Root Signals API Python client.

Module Contents

class root.client.Beta(get_client_context: Callable[[], AsyncContextManager[root.generated.openapi_aclient.ApiClient]] | Callable[[], ContextManager[root.generated.openapi_client.ApiClient]])

Beta API features namespace

Parameters:

get_client_context (Union[Callable[[], AsyncContextManager[root.generated.openapi_aclient.ApiClient]], Callable[[], ContextManager[root.generated.openapi_client.ApiClient]]])

property judges: root.judges.Judges

Get Judges API (Beta)

Return type:

root.judges.Judges

class root.client.RootSignals(api_key: str | None = None, *, run_async: bool = False, _api_client: root.generated.openapi_aclient.ApiClient | None | root.generated.openapi_client.ApiClient | None = None, base_url: str | None = None)

Root Signals API Python client.

The API key must be provided via one of the following methods - the code uses the first one that is found:

  1. as an argument to RootSignals constructor,

  2. environment variable ROOTSIGNALS_API_KEY, or

  3. .env file containing ROOTSIGNALS_API_KEY=

Parameters:
  • api_key (Optional[str]) – Root Signals API Key (if not provided from environment)

  • run_async (bool) – Whether to run the API client asynchronously

  • _api_client (Union[Optional[root.generated.openapi_aclient.ApiClient], Optional[root.generated.openapi_client.ApiClient]])

  • base_url (Optional[str])

api_key = None
base_url = None
property beta: Beta

Get Beta API features

Return type:

Beta

property datasets: root.datasets.DataSets

Get DataSets API

Return type:

root.datasets.DataSets

property evaluators: root.skills.Evaluators

Get Evaluators API

Return type:

root.skills.Evaluators

property execution_logs: root.execution_logs.ExecutionLogs

Get Execution Logs API

Return type:

root.execution_logs.ExecutionLogs

property get_client_context: Callable[[], AsyncContextManager[root.generated.openapi_aclient.ApiClient]] | Callable[[], ContextManager[root.generated.openapi_client.ApiClient]]
Return type:

Union[Callable[[], AsyncContextManager[root.generated.openapi_aclient.ApiClient]], Callable[[], ContextManager[root.generated.openapi_client.ApiClient]]]

property models: root.models.Models

Get Models API

Return type:

root.models.Models

property objectives: root.objectives.Objectives

Get Objectives API

Return type:

root.objectives.Objectives

run_async = False
property skills: root.skills.Skills

Get Skills API

Return type:

root.skills.Skills