Package com.braintrustdata.api.client
Class BraintrustClientAsyncImpl
-
- All Implemented Interfaces:
-
com.braintrustdata.api.client.BraintrustClientAsync
public final class BraintrustClientAsyncImpl implements BraintrustClientAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBraintrustClientAsyncImpl.WithRawResponseImpl
-
Constructor Summary
Constructors Constructor Description BraintrustClientAsyncImpl(ClientOptions clientOptions)
-
Method Summary
Modifier and Type Method Description BraintrustClientsync()Returns a version of this client that uses synchronous execution. BraintrustClientAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. TopLevelServiceAsynctopLevel()ProjectServiceAsyncprojects()ExperimentServiceAsyncexperiments()DatasetServiceAsyncdatasets()PromptServiceAsyncprompts()RoleServiceAsyncroles()GroupServiceAsyncgroups()AclServiceAsyncacls()UserServiceAsyncusers()ProjectScoreServiceAsyncprojectScores()ProjectTagServiceAsyncprojectTags()SpanIframeServiceAsyncspanIframes()FunctionServiceAsyncfunctions()ViewServiceAsyncviews()OrganizationServiceAsyncorganizations()ApiKeyServiceAsyncapiKeys()AiSecretServiceAsyncaiSecrets()EnvVarServiceAsyncenvVars()EvalServiceAsyncevals()Unitclose()Closes this client, relinquishing any underlying resources. -
-
Constructor Detail
-
BraintrustClientAsyncImpl
BraintrustClientAsyncImpl(ClientOptions clientOptions)
-
-
Method Detail
-
sync
BraintrustClient sync()
Returns a version of this client that uses synchronous execution.
The returned client shares its resources, like its connection pool and thread pools, with this client.
-
withRawResponse
BraintrustClientAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
topLevel
TopLevelServiceAsync topLevel()
-
projects
ProjectServiceAsync projects()
-
experiments
ExperimentServiceAsync experiments()
-
datasets
DatasetServiceAsync datasets()
-
prompts
PromptServiceAsync prompts()
-
roles
RoleServiceAsync roles()
-
groups
GroupServiceAsync groups()
-
acls
AclServiceAsync acls()
-
users
UserServiceAsync users()
-
projectScores
ProjectScoreServiceAsync projectScores()
-
projectTags
ProjectTagServiceAsync projectTags()
-
spanIframes
SpanIframeServiceAsync spanIframes()
-
functions
FunctionServiceAsync functions()
-
views
ViewServiceAsync views()
-
organizations
OrganizationServiceAsync organizations()
-
apiKeys
ApiKeyServiceAsync apiKeys()
-
aiSecrets
AiSecretServiceAsync aiSecrets()
-
envVars
EnvVarServiceAsync envVars()
-
evals
EvalServiceAsync 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.
-
-
-
-