response_stream_result struct
#include <nxtai/agent.hpp>
Summary gathered while consuming one Responses stream.
Public functions
- auto done() const → bool
- auto needs_tools() const → bool
-
auto tool_calls() const → const std::
vector<tools:: function_call>&
Public variables
-
std::
vector<tools:: function_call> function_calls - Function calls discovered in completed output items.
-
std::
vector<nlohmann::json> output_items - Complete output items that should be preserved for stateless turns.
-
std::
optional<std:: string> response_id - Most recent response id observed in the stream.
- bool completed
- True when the stream reached
response.completed.