createMemorySession
function createMemorySession(options?): Session;Defined in: agents/src/session.ts:39
A session kept in this process, for tests, examples and single-process tools. It copies on every read and write, so changing what it returned or what you appended never changes what it holds. Everything is lost when the process ends.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
{ id?: string; messages?: readonly AgentMessage[]; } |
options.id? |
string |
options.messages? |
readonly AgentMessage[] |