| hal_turn | R Documentation |
An S3 class representing one turn in a hal conversation. Turns are
returned by hal_history() and tracked internally by HalChat.
## S3 method for class 'hal_turn'
print(x, ...)
x |
A |
... |
Ignored. |
The print() method returns x invisibly. hal_turn objects
themselves are created internally and returned by hal_history().
roleCharacter: "user", "assistant", or "system".
contentCharacter: text content of the turn.
tool_callsList of hal_tool_call objects, or NULL.
thoughtsCharacter vector of agent thought chunks, or NULL.
hal_history(), hal_response, hal_tool_call
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.