response_continuation class
#include <nxtai/agent.hpp>
Stateful Responses continuation rules for multi-step tool turns.
This owns only protocol state: the next request to send, the tool list, and the stateless transcript needed when server-side response storage is off.
Constructors, destructors, conversion operators
-
response_continuation(responses::
openai_responses_request request, std:: vector<tools:: function_tool> tools, std:: size_t max_steps = 6)
Public functions
- auto can_step() const → bool
-
auto continuation_problem(const response_
stream_ result& response) const → std:: optional<std:: string> -
void continue_after_tools(response_
stream_ result response, std:: vector<nlohmann::json> tool_outputs) -
auto request() const → const responses::
openai_responses_request& -
auto tools() const → const std::
vector<tools:: function_tool>&