Other languages are translated automatically from English.
chat fields and methods
Conversations with a language model, from @chat().
A field is a plain fact about the value, read with a dot and no brackets: $value.name. A method takes arguments or does work, and is called with ->: $value->name(arguments), or with the value piped in: $value |> name(arguments).
Forgets the conversation (keeps the system prompt).
Example
<let name="chat" value="@chat('You are a helpful assistant.')" />
<do>$chat->ask('Remember the number 7.')</do>
<do>$chat->reset()</do>
<echo>{ $chat.history->count() } messages</echo>
$chat = @chat('You are a helpful assistant.')
$chat->ask('Remember the number 7.')
$chat->reset()
echo "{ $chat.history->count() } messages"