Create agent
Create a new agent. If there is an existing agent with the same name as the one specified in the request, will return the existing agent unmodified
Authorizations
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key] to your HTTP request. You can create an API key in the Braintrust organization settings page.
Body
Any desired information about the new agent object
An agent is a project-scoped durable object that identifies an AI agent or service emitting spans
Response
Returns the new agent object
An agent is a project-scoped durable object that identifies an AI agent or service emitting spans
Unique identifier for the agent
Unique identifier for the project that the agent belongs under
Name of the agent. Within a project, agent names are unique
Stable, URL-safe identifier for the agent, unique within its project.
Agent classification: 'custom' for customer-defined agents, 'loop' for built-in Loop agents.
Date of agent creation
Textual description of the agent
User-controlled metadata about the agent