The response object
A response is Jockey’s reply to a request, generated by reasoning over the content in a knowledge store.
The object is composed of the following fields:
id: A string representing the unique identifier of the response.knowledge_store_id: A string representing the unique identifier of the knowledge store the response was generated against.session_id: A string representing the session identifier for the conversation. Pass it in subsequent requests to continue the multi-turn conversation.type: A string representing the object type. The value is alwaysresponse.object: A string with the same value astype. Only the response itself has anobjectfield; output items, annotations, and stream events are identified bytypealone and have noobjectfield.status: A string representing the status of the response. See the Response statuses section for the meaning of each value.output: An array of output items. By default, only the final message is included. To also receive function call items, setincludeto["intermediate_outputs"]in the request. Each message item has aphasefield whose value iscommentaryfor intermediate output orfinal_answerfor the answer; a message withoutphaseis the final answer. Each content part’stextfield may contain citation markers, each a number in square brackets such as[1]. The part’sannotationsarray contains the citations that resolve these markers, in order of appearance; the array is always present and may be empty. For the full list of fields on each citation, see Create a response.incomplete_details: The reason the response was truncated before the answer was complete. Always present; contains a value only whenstatusisincomplete, andnullon every other status. See the Incomplete responses section.usage: An object containing token usage statistics, withinput_tokensandoutput_tokensfields.created_at: A string representing the date and time, in the RFC 3339 format, when the response was created.
Response statuses
The status field of a response has one of the following values:
in_progress: The response is being generated.completed: The response has been generated successfully.incomplete: The response ended before the answer was complete. Readincomplete_details.reasonto find out why.failed: The response generation has failed.
Incomplete responses
incomplete_details is always present and is null on every status except incomplete,
so null means the answer was not truncated, not that the platform does not report the
reason. When it contains a value, its reason says what stopped the answer:
max_output_tokens: the answer reached the output token limit. The text inoutputis an incomplete answer, not the full one.
Treat a value you do not recognize as an incomplete answer for an unknown reason, not as an error.