Skip to main content
onMessages(listener): () => void
Subscribe to conversation updates from the actor’s MessageLog. A snapshot replaces the local log; appended adds the new messages. Returns an unsubscribe function. Parameters Returns () => void

The Message Stream

Each item is one of the agent’s stored messages. The client types the items unknown. Every message the agent adds to this.messages arrives in appended. A listener added after the first snapshot is called at once with the current log, as a snapshot.