hal_turn: hal conversation turn

hal_turnR Documentation

hal conversation turn

Description

An S3 class representing one turn in a hal conversation. Turns are returned by hal_history() and tracked internally by HalChat.

Usage

## S3 method for class 'hal_turn'
print(x, ...)

Arguments

x

A hal_turn object.

...

Ignored.

Value

The print() method returns x invisibly. hal_turn objects themselves are created internally and returned by hal_history().

Fields

role

Character: "user", "assistant", or "system".

content

Character: text content of the turn.

tool_calls

List of hal_tool_call objects, or NULL.

thoughts

Character vector of agent thought chunks, or NULL.

See Also

hal_history(), hal_response, hal_tool_call


hal documentation built on Oct. 6, 2026, 5:07 p.m.