Execute BRK
Executes a BRK with the provided input values
This endpoint executes a BRK with the provided input values. It processes the BRK, including any dependencies, and returns the result. The input values must match the schema of the BRK. You must have at least viewer permissions for the BRK to execute it.
Request
The ID of the BRK to execute
The input values for the BRK, matching its schema
Optional execution options for the BRK
Example Request
Response
Example Response
Error Codes
Bad Request - The request was malformed or missing required parameters
Unauthorized - Authentication credentials are missing or invalid
Forbidden - The authenticated user does not have permission to execute the requested BRK
Not Found - The requested BRK does not exist
Too Many Requests - The user has exceeded the BRK execution rate limit
Internal Server Error - An unexpected error occurred on the server
Notes
- The
schemaValues
object must match the schema of the BRK. You can use the Get BRK Schema endpoint to retrieve the schema. - The
executionOptions
object allows you to customize the execution behavior, such as the model to use and the sampling parameters. - The response includes the result of the execution, as well as metadata such as the execution time and token usage.
- If the
stream
option is set totrue
, the response will be streamed as it is generated. This is useful for long-running executions. - The
tokenUsage
object provides information about the number of tokens used in the prompt, completion, and total. This can be useful for monitoring usage and costs.