Create a response
Authentication
Request
The session identifier for a multi-turn conversation. Pass the session_id
returned from a previous response to continue that conversation. Omit to start
a new session.
When provided, knowledge_store_id must match the knowledge store the session
was originally created against, or the request returns 400.
Additional guidance for the model, acting as a per-request system prompt.
When true, the response is returned as Server-Sent Events (SSE).
Key-value pairs to attach to the request. Up to 16 pairs allowed.
Response
Response created successfully. When stream is false or omitted, returns a single JSON response.
When stream is true, returns a stream of Server-Sent Events.
The session identifier for this conversation. Pass this value in subsequent requests to continue the multi-turn conversation.
The object type. Always response.
The response output items. By default, only the final message is included.
Set include to ["intermediate_outputs"] in the request to also receive function call items.