nxt::ai::agent::response_continuation class

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>&