Applies to:
Summary
Goal: Configure JSON schema response formats in TypeScript SDK prompts. Features: prompts.create(), params object, response_format, json_schemaConfiguration Steps
Step 1: Wrap response_format in params object
Model parameters must be placed inside theparams object, not at the top level.
Step 2: Verify output format in UI
Push prompts withnpx braintrust push prompts.ts and confirm JSON output renders correctly in the Braintrust UI.
Common Mistakes
Placingresponse_format at the top level causes silent failure—the parameter is ignored and output returns as plain text.