openai_responses_request struct
#include <nxtai/responses.hpp>
Parameters for one OpenAI Responses API request.
Public variables
-
std::
string api_key - Bearer token used for the Authorization header.
-
std::
string model - Model identifier sent as the
modelfield. -
std::
string input - Plain text prompt used when
input_itemsis empty. - nlohmann::json input_items
- Structured Responses
inputarray for multi-turn/stateless calls. - nlohmann::json tools
- Tool definitions in Responses function-tool schema.
- nlohmann::json include
- Extra response fields requested through the
includeoption. -
std::
string previous_response_id - Server-side response id to continue when
storeis true. -
std::
size_t max_output_tokens - Upper bound for generated output tokens.
-
std::
string reasoning_effort - Reasoning effort string accepted by the selected model.
-
std::
string reasoning_summary - Optional reasoning summary mode.
- bool store
- Whether OpenAI should persist the response for server-side continuity.