nxt::ai::responses::openai_responses_request struct

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 model field.
std::string input
Plain text prompt used when input_items is empty.
nlohmann::json input_items
Structured Responses input array for multi-turn/stateless calls.
nlohmann::json tools
Tool definitions in Responses function-tool schema.
nlohmann::json include
Extra response fields requested through the include option.
std::string previous_response_id
Server-side response id to continue when store is 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.