Create a new thread and immediately ask a query in a single request. This endpoint combines thread creation and turn creation to reduce round trips. Supports synchronous and background processing modes. Streaming is not supported.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Combined serializer for creating a thread and immediately creating a turn (answer).
This serializer composes the existing thread and answer serializers to maximize code reuse and maintain consistent validation logic.
Note: The 'stream' parameter is not supported for this endpoint.
ID of the chat setting to use
Thread name
255Technical name of the ML model to use
Enable ephemeral mode
The user's query
Name of tool to force use
ID of a suggested query
Name of MCP server to restrict tools to
Skip tool calls and return final answer immediately
Process asynchronously and return immediately
Additional system prompt instructions
5000Maximum reasoning steps
1 <= x <= 20JSON schema specifying response structure
Workspaces to search for documents
Specific files to include
Include user's private workspace
Include company's workspace
Final answer returned synchronously.
running - runningcompleted - completedfailed - failedcancelled - cancelledcancelling - cancellingrunning, completed, failed, cancelled, cancelling