An S3 class representing the full response from a single prompt. Returned
internally by HalClient's prompt() method and used by HalChat.
Usage
# S3 method for class 'hal_response'
print(x, ...)Value
The print() method returns x invisibly. hal_response
objects are created internally by the transport clients.
Fields
textCharacter: the full response text.
stop_reasonCharacter: why the model stopped (e.g.,
"end_turn","interrupted").tool_callsList of hal_tool_call objects.
thoughtsCharacter vector of agent thought text.
eventsList of raw
session/updateevents.
