Braintrust
braintrustBraintrust is an AI engineering platform for managing prompts, datasets, experiments, evaluations, observability, and production AI applications.
Acciones disponibles (17)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create DatasetBRAINTRUST_CREATE_DATASETAcciónCreate a named dataset under a Braintrust project, or return the existing dataset unchanged when its name already exists in that project.
BRAINTRUST_CREATE_DATASETAcciónCreate a named dataset under a Braintrust project, or return the existing dataset unchanged when its name already exists in that project.
Parámetros de entrada
namestringObligatorioDataset name, which must be unique within the project. Braintrust returns the existing dataset unchanged when this name already exists.
tagsstring[]Tags to attach to the dataset.
metadataobjectUser-controlled dataset metadata as an object.
project_idstringObligatorioUUID of the Braintrust project that will contain the dataset.
descriptionstringOptional human-readable dataset description.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ExperimentBRAINTRUST_CREATE_EXPERIMENTAcciónCreate an experiment under a Braintrust project. When its name already exists, Braintrust returns the existing experiment unchanged unless ensure_new is true, which creates an experiment with a unique name.
BRAINTRUST_CREATE_EXPERIMENTAcciónCreate an experiment under a Braintrust project. When its name already exists, Braintrust returns the existing experiment unchanged unless ensure_new is true, which creates an experiment with a unique name.
Parámetros de entrada
namestringExperiment name. Names are unique within a project unless ensure_new is true.
tagsstring[]Tags to attach to the experiment.
publicbooleanWhether anyone inside or outside the organization can view the experiment.
metadataobjectUser-controlled experiment metadata as an object.
dataset_idstringUUID of the dataset linked to this experiment, when applicable.
ensure_newbooleanGenerate a unique experiment name on a name conflict. When false, Braintrust returns the existing same-name experiment unchanged.
project_idstringObligatorioUUID of the Braintrust project that will contain the experiment.
descriptionstringOptional human-readable experiment description.
dataset_versionstringVersion of the linked dataset used for reproducibility.
base_experiment_idstringUUID of the default baseline experiment used for comparisons.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ProjectBRAINTRUST_CREATE_PROJECTAcciónCreate a Braintrust project, or return the existing project unchanged when its name already exists.
BRAINTRUST_CREATE_PROJECTAcciónCreate a Braintrust project, or return the existing project unchanged when its name already exists.
Parámetros de entrada
namestringObligatorioProject name. Braintrust returns an existing project unchanged when this name already exists, so use a unique name when a new project is required.
org_namestringOrganization name for the rare case where the API key's active data plane supports organization selection. This does not reliably switch organizations.
descriptionstringOptional human-readable project description.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create PromptBRAINTRUST_CREATE_PROMPTAcciónUpsert a versioned prompt configuration under a Braintrust project without invoking it. The same project and slug reuse the prompt ID but create a new version that replaces the stored prompt configuration with the submitted configuration. MCP attachments and tool-function bindings are unsupported.
BRAINTRUST_CREATE_PROMPTAcciónUpsert a versioned prompt configuration under a Braintrust project without invoking it. The same project and slug reuse the prompt ID but create a new version that replaces the stored prompt configuration with the submitted configuration. MCP attachments and tool-function bindings are unsupported.
Parámetros de entrada
namestringObligatorioHuman-readable prompt name.
slugstringObligatorioPrompt identity slug within the project. Reusing the same project and slug keeps the prompt ID but creates a new version that replaces the stored prompt configuration with the submitted configuration.
tagsstring[]Tags to attach to the prompt.
project_idstringObligatorioUUID of the Braintrust project that will contain the prompt.
descriptionstringOptional human-readable prompt description.
prompt_dataobjectStructured prompt block, model options, and parser configuration. MCP attachments and tool_functions are rejected by this schema.
function_typestringenumBraintrust function classification assigned to the prompt.
llmscorertasktoolcustom_viewpreprocessorfacetclassifiertagparameterssandboxtemplate_formatstringenumTemplate syntax to store inside prompt_data.
mustachenunjucksnone
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete ProjectBRAINTRUST_DELETE_PROJECTAcciónSoft-delete a Braintrust project and return its deletion state.
BRAINTRUST_DELETE_PROJECTAcciónSoft-delete a Braintrust project and return its deletion state.
Parámetros de entrada
project_idstringObligatorioUUID of the Braintrust project to soft-delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Experiment, Dataset, or PromptBRAINTRUST_DELETE_RESOURCEAcciónDelete one Braintrust experiment, dataset, or prompt by UUID for explicit lifecycle cleanup.
BRAINTRUST_DELETE_RESOURCEAcciónDelete one Braintrust experiment, dataset, or prompt by UUID for explicit lifecycle cleanup.
Parámetros de entrada
resource_idstringObligatorioUUID of the selected resource to delete.
resource_typestringObligatorioenumKind of Braintrust resource to delete.
experimentdatasetprompt
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Fetch EventsBRAINTRUST_FETCH_EVENTSAcciónFetch one newest-to-oldest page of project log, experiment, or dataset events.
BRAINTRUST_FETCH_EVENTSAcciónFetch one newest-to-oldest page of project log, experiment, or dataset events.
Parámetros de entrada
limitintegerMaximum full traces to request. A page can contain more events because one trace may contain multiple events.
versionstringOptional historical transaction version snapshot to fetch.
next_cursorstringOpaque continuation token returned by a previous call. Omit it for the first page and pass it back unchanged to continue newest-to-oldest.
resource_idstringObligatorioProject, experiment, or dataset UUID matching resource_type.
resource_typestringObligatorioenumEvent stream to fetch.
project_logsexperimentdataset
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Braintrust ResourceBRAINTRUST_GET_RESOURCEAcciónGet one project, experiment, dataset, prompt, or function by UUID.
BRAINTRUST_GET_RESOURCEAcciónGet one project, experiment, dataset, prompt, or function by UUID.
Parámetros de entrada
resource_idstringObligatorioUUID of the selected Braintrust resource.
resource_typestringObligatorioenumKind of Braintrust resource to retrieve.
projectexperimentdatasetpromptfunction
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Insert Dataset EventsBRAINTRUST_INSERT_DATASET_EVENTSAcciónUpsert a batch of examples into an existing Braintrust dataset. New or omitted IDs insert events; an existing supplied ID replaces that event's current values.
BRAINTRUST_INSERT_DATASET_EVENTSAcciónUpsert a batch of examples into an existing Braintrust dataset. New or omitted IDs insert events; an existing supplied ID replaces that event's current values.
Parámetros de entrada
eventsobject[]ObligatorioDataset examples to upsert, in the order represented by returned row IDs. An event with an existing supplied ID replaces that event's current values.
dataset_idstringObligatorioUUID of the Braintrust dataset that will receive the examples.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Insert Experiment EventsBRAINTRUST_INSERT_EXPERIMENT_EVENTSAcciónUpsert a batch of result events into an existing Braintrust experiment. New or omitted IDs insert events; an existing supplied ID replaces that event's current values.
BRAINTRUST_INSERT_EXPERIMENT_EVENTSAcciónUpsert a batch of result events into an existing Braintrust experiment. New or omitted IDs insert events; an existing supplied ID replaces that event's current values.
Parámetros de entrada
eventsobject[]ObligatorioExperiment result events to upsert. Row IDs in the response align with this list in the same order. An event with an existing supplied ID replaces that event's current values.
experiment_idstringObligatorioUUID of the Braintrust experiment that will receive the events.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Braintrust ResourcesBRAINTRUST_LIST_RESOURCESAcciónList and filter one page of projects, experiments, datasets, prompts, or functions visible to the connected Braintrust API key.
BRAINTRUST_LIST_RESOURCESAcciónList and filter one page of projects, experiments, datasets, prompts, or functions visible to the connected Braintrust API key.
Parámetros de entrada
idsstring[]Restrict results to these resource UUIDs.
namestringExact resource name to match for the selected resource type.
slugstringRestrict prompts or functions to this slug.
limitintegerMaximum number of objects to request in this page.
versionstringRestrict prompts or functions to this version identifier.
org_namestringOptional organization-name filter. It does not switch the API key's active data-plane organization.
project_idstringRestrict experiments, datasets, prompts, or functions to this project UUID.
environmentstringRestrict prompts or functions to this environment slug.
next_cursorstringOpaque continuation token returned by a previous call. Omit for the first page and pass it back unchanged to continue.
project_namestringRestrict experiments, datasets, prompts, or functions to this project name.
resource_typestringObligatorioenumKind of Braintrust resource to list.
projectexperimentdatasetpromptfunction
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Query Braintrust DataBRAINTRUST_QUERY_DATAAcciónRun one bounded synchronous read-only BTQL query over Braintrust project logs, an experiment, or a dataset. The first-page query must end with a positive LIMIT; continue later pages by passing the returned next_cursor unchanged.
BRAINTRUST_QUERY_DATAAcciónRun one bounded synchronous read-only BTQL query over Braintrust project logs, an experiment, or a dataset. The first-page query must end with a positive LIMIT; continue later pages by passing the returned next_cursor unchanged.
Parámetros de entrada
querystringRead-only BTQL SELECT query. It must query project_logs(...), experiment(...), or dataset(...) and end with an explicit positive LIMIT. Required on the first page; omit it when passing next_cursor.
versionstringOptional historical data version for a reproducible query.
lint_modestringenumBraintrust query linting mode.
defaultstricttz_offsetnumberOptional timezone offset in minutes using JavaScript's Date.getTimezoneOffset convention: positive values are behind UTC. For example, 480 is US Pacific Standard Time (UTC-08:00).
next_cursorstringOpaque continuation token returned by a previous QUERY_DATA call. Pass it back unchanged; the original query and options are carried authoritatively.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Summarize Experiment or DatasetBRAINTRUST_SUMMARIZE_RESOURCEAcciónReturn metadata and optional aggregate summaries for one Braintrust experiment or dataset.
BRAINTRUST_SUMMARIZE_RESOURCEAcciónReturn metadata and optional aggregate summaries for one Braintrust experiment or dataset.
Parámetros de entrada
resource_idstringObligatorioExperiment or dataset UUID matching resource_type.
resource_typestringObligatorioenumResource summary to calculate.
experimentdatasetinclude_aggregatesbooleanFor experiments, summarize scores and metrics; for datasets, summarize data. Set false to return metadata only.
comparison_experiment_idstringOptional baseline experiment UUID. Valid only when resource_type is experiment and include_aggregates is true. When omitted, Braintrust may select the configured baseline or a recent experiment.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update DatasetBRAINTRUST_UPDATE_DATASETAcciónUpdate the name, description, tags, or metadata of a Braintrust dataset. At least one non-null mutable field is required.
BRAINTRUST_UPDATE_DATASETAcciónUpdate the name, description, tags, or metadata of a Braintrust dataset. At least one non-null mutable field is required.
Parámetros de entrada
namestringNew dataset name.
tagsstring[]Complete replacement list of dataset tags.
metadataobjectMetadata fields to deep-merge into the dataset's existing metadata.
dataset_idstringObligatorioUUID of the dataset to update.
descriptionstringNew dataset description.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update ExperimentBRAINTRUST_UPDATE_EXPERIMENTAcciónUpdate selected metadata and linkage fields on a Braintrust experiment. At least one non-null mutable field is required.
BRAINTRUST_UPDATE_EXPERIMENTAcciónUpdate selected metadata and linkage fields on a Braintrust experiment. At least one non-null mutable field is required.
Parámetros de entrada
namestringNew experiment name.
tagsstring[]Complete replacement list of experiment tags.
publicbooleanWhether the experiment is publicly viewable.
metadataobjectUser-controlled metadata fields to deep-merge into existing metadata.
dataset_idstringUUID of the dataset to link to the experiment.
descriptionstringNew experiment description.
experiment_idstringObligatorioUUID of the experiment to update.
dataset_versionstringVersion of the linked dataset used by the experiment.
base_experiment_idstringUUID of the default baseline experiment used for comparisons.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update ProjectBRAINTRUST_UPDATE_PROJECTAcciónUpdate selected fields of a Braintrust project. At least one non-null mutable field is required: name, description, or settings.
BRAINTRUST_UPDATE_PROJECTAcciónUpdate selected fields of a Braintrust project. At least one non-null mutable field is required: name, description, or settings.
Parámetros de entrada
namestringNew project name.
settingsobjectComplete replacement project settings. Include every existing setting that must be retained.
project_idstringObligatorioUUID of the project to update.
descriptionstringNew project description.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update PromptBRAINTRUST_UPDATE_PROMPTAcciónUpdate a Braintrust prompt's metadata or configuration without invoking it. At least one non-null mutable field is required.
BRAINTRUST_UPDATE_PROMPTAcciónUpdate a Braintrust prompt's metadata or configuration without invoking it. At least one non-null mutable field is required.
Parámetros de entrada
namestringNew prompt name.
slugstringNew unique prompt slug.
tagsstring[]Complete replacement list of prompt tags.
prompt_idstringObligatorioUUID of the prompt to update.
descriptionstringNew prompt description.
prompt_dataobjectPrompt block, model options, or parser fields to deep-merge. MCP attachments and tool_functions are unsupported and rejected.
template_formatstringenumReplacement template syntax, stored inside the provider's prompt_data object.
mustachenunjucksnone
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not