Instructor
To use Instructor to generate structured outputs, you need to wrap the OpenAI client with both Instructor and Braintrust. It's important that you call Braintrust's wrap_openai
first, because it uses low-level usage info and headers returned by the OpenAI call to log metrics to Braintrust.