Package dev.braintrust.api
Interface BraintrustApiClient
- All Known Implementing Classes:
BraintrustApiClient.HttpImpl,BraintrustApiClient.InMemoryImpl
public interface BraintrustApiClient
Provides the necessary API calls for the Braintrust SDK. Users of the SDK should favor using
Eval or BraintrustTracing-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic classstatic classImplementation for test doublingstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionCreates an experiment.getOrCreateProject(String projectName) Creates or gets a project by name.getProject(String projectId) Gets a project by ID.Get project and org info for the default project IDgetProjectAndOrgInfo(String projectId) Get project and org info for the given project IDstatic BraintrustApiClientof(BraintrustConfig config)
-
Method Details
-
getOrCreateProject
Creates or gets a project by name. -
getProject
Gets a project by ID. -
getOrCreateExperiment
BraintrustApiClient.Experiment getOrCreateExperiment(BraintrustApiClient.CreateExperimentRequest request) Creates an experiment. -
getProjectAndOrgInfo
Optional<BraintrustApiClient.OrganizationAndProjectInfo> getProjectAndOrgInfo()Get project and org info for the default project ID -
getProjectAndOrgInfo
Get project and org info for the given project ID -
of
-