Skip to main content
this.messages is the actor’s durable conversation log. Messages are ordered by an assigned monotonic seq (insertion order, not wall-clock), and the log is append-only — there is no delete.

Types

Writing

Reading

all() reads the entire history every time — on a long-lived conversation prefer last(n) for a bounded context window.

Adapters

Each adapter reads the full history and converts it. They differ in how they treat system and tool messages:
If you record tool calls in history and hand it to LangChain, note the drop: persist what the framework needs via append() with plain roles, or rebuild framework state from toOpenAI() output instead.