adaptive_sdk
class
Adaptive(adaptive_sdk.base_client.BaseSyncClient, adaptive_sdk.base_client.UseCaseClient):
Helper class that provides a standard way to create an ABC using inheritance.
Adaptive( base_url: str, api_key: str | None = None, default_headers: Optional[Dict[str, str]] = None)
Instantiates a new synchronous Adaptive client bounded to a use case.
Arguments:
- use_case (str): A unique use case key; the client is bounded to this use case.
- base_url (str): The base URL for the Adaptive API.
- api_key (str, optional): API key for authentication.
Defaults to None, in which use environment variable
ADAPTIVE_KEY
needs to be set.
ab_tests: adaptive_sdk.resources.ABTests
completions: adaptive_sdk.resources.Completions
compute_pools: adaptive_sdk.resources.ComputePools
datasets: adaptive_sdk.resources.Datasets
embeddings: adaptive_sdk.resources.Embeddings
evaluation: adaptive_sdk.resources.Evaluation
feedback: adaptive_sdk.resources.Feedback
interactions: adaptive_sdk.resources.Interactions
models: adaptive_sdk.resources.Models
permissions: adaptive_sdk.resources.Permissions
reward_servers: adaptive_sdk.resources.RewardServers
roles: adaptive_sdk.resources.Roles
teams: adaptive_sdk.resources.Teams
training: adaptive_sdk.resources.Training
use_cases: adaptive_sdk.resources.UseCase
users: adaptive_sdk.resources.Users
class
AsyncAdaptive(adaptive_sdk.base_client.BaseAsyncClient, adaptive_sdk.base_client.UseCaseClient):
Helper class that provides a standard way to create an ABC using inheritance.
AsyncAdaptive( base_url: str, api_key: str | None = None, default_headers: Optional[Dict[str, str]] = None)
Instantiates a new asynchronous Adaptive client bounded to a use case.
Arguments:
- use_case (str): A unique use case key; the client is bounded to this use case.
- base_url (str): The base URL for the Adaptive API.
- api_key (str, optional): API key for authentication.
Defaults to None, in which use environment variable
ADAPTIVE_KEY
needs to be set.
ab_tests: adaptive_sdk.resources.AsyncABTests
completions: adaptive_sdk.resources.AsyncCompletions
compute_pools: adaptive_sdk.resources.AsyncComputePools
datasets: adaptive_sdk.resources.AsyncDatasets
embeddings: adaptive_sdk.resources.AsyncEmbeddings
evaluation: adaptive_sdk.resources.AsyncEvaluation
feedback: adaptive_sdk.resources.AsyncFeedback
interactions: adaptive_sdk.resources.AsyncInteractions
permissions: adaptive_sdk.resources.AsyncPermissions
reward_servers: adaptive_sdk.resources.AsyncRewardServers
training: adaptive_sdk.resources.AsyncTraining
use_cases: adaptive_sdk.resources.AsyncUseCase