Create or replace function. If there is an existing function in the project with the same slug as the one specified in the request, will replace the existing function with the provided fields
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.
Any desired information about the new function object
Unique identifier for the project that the prompt belongs under
Name of the prompt
1Unique identifier for the prompt
1Textual description of the prompt
The prompt, model, and its parameters
A list of tags for the prompt
llm, scorer, task, tool, custom_view, JSON schema for the function's parameters and return type
Returns the new function object
Unique identifier for the prompt
The transaction id of an event is unique to the network operation that processed the event insertion. Transaction ids are monotonically increasing over time and can be used to retrieve a versioned snapshot of the prompt (see the version parameter)
Unique identifier for the project that the prompt belongs under
A literal 'p' which identifies the object as a project prompt
p Unique identifier for the organization
Name of the prompt
Unique identifier for the prompt
Textual description of the prompt
Date of prompt creation
The prompt, model, and its parameters
A list of tags for the prompt
User-controlled metadata about the prompt
llm, scorer, task, tool, custom_view, JSON schema for the function's parameters and return type