Does the Realtime API, particularly the “out-of-band” responses feature, support structured output?
For example, would it be possible to pass in something like:
response_format: {
type: "json_schema",
schema: {
type: "object",
properties: {
signal: {
type: "string",
enum: ["positive", "negative", "none"]
},
reasoning: {
type: "string"
}
},
required: ["signal", "reasoning"],
additionalProperties: false
}
}
TY