Package com.braintrustdata.api.client
Class BraintrustClientImpl
-
- All Implemented Interfaces:
-
com.braintrustdata.api.client.BraintrustClient
public final class BraintrustClientImpl implements BraintrustClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBraintrustClientImpl.WithRawResponseImpl
-
Constructor Summary
Constructors Constructor Description BraintrustClientImpl(ClientOptions clientOptions)
-
Method Summary
Modifier and Type Method Description BraintrustClientAsyncasync()Returns a version of this client that uses asynchronous execution. BraintrustClient.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. TopLevelServicetopLevel()ProjectServiceprojects()ExperimentServiceexperiments()DatasetServicedatasets()PromptServiceprompts()RoleServiceroles()GroupServicegroups()AclServiceacls()UserServiceusers()ProjectScoreServiceprojectScores()ProjectTagServiceprojectTags()SpanIframeServicespanIframes()FunctionServicefunctions()ViewServiceviews()OrganizationServiceorganizations()ApiKeyServiceapiKeys()AiSecretServiceaiSecrets()EnvVarServiceenvVars()EvalServiceevals()Unitclose()Closes this client, relinquishing any underlying resources. -
-
Constructor Detail
-
BraintrustClientImpl
BraintrustClientImpl(ClientOptions clientOptions)
-
-
Method Detail
-
async
BraintrustClientAsync async()
Returns a version of this client that uses asynchronous execution.
The returned client shares its resources, like its connection pool and thread pools, with this client.
-
withRawResponse
BraintrustClient.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
topLevel
TopLevelService topLevel()
-
projects
ProjectService projects()
-
experiments
ExperimentService experiments()
-
datasets
DatasetService datasets()
-
prompts
PromptService prompts()
-
roles
RoleService roles()
-
groups
GroupService groups()
-
acls
AclService acls()
-
users
UserService users()
-
projectScores
ProjectScoreService projectScores()
-
projectTags
ProjectTagService projectTags()
-
spanIframes
SpanIframeService spanIframes()
-
functions
FunctionService functions()
-
views
ViewService views()
-
organizations
OrganizationService organizations()
-
apiKeys
ApiKeyService apiKeys()
-
aiSecrets
AiSecretService aiSecrets()
-
envVars
EnvVarService envVars()
-
evals
EvalService evals()
-
close
Unit close()
Closes this client, relinquishing any underlying resources.
This is purposefully not inherited from AutoCloseable because the client is long-lived and usually should not be synchronously closed via try-with-resources.
It's also usually not necessary to call this method at all. the default HTTP client automatically releases threads and connections if they remain idle, but if you are writing an application that needs to aggressively release unused resources, then you may call this method.
-
-
-
-