Skip to contents

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.