Creates a new InMemoryRunner instance.
The configuration for the runner.
Optionalagent?: BaseAgent<BaseAgentConfig>The root agent to run.
Optionalapp?: AppAn optional application instance to run.
OptionalappName?: stringThe application name. Defaults to 'InMemoryRunner'.
Optionalplugins?: BasePlugin[]An optional list of plugins.
OptionalresumabilityConfig?: ResumabilityConfigAn optional resumability configuration.
Readonly[ReadonlyagentReadonlyappOptional ReadonlyartifactOptional ReadonlycredentialOptional ReadonlymemoryReadonlypluginOptional ReadonlyresumabilityReadonlysessionRuns the agent with the given message, and returns an async generator of events.
OptionalabortSignal?: AbortSignalOptionalcustomMetadata?: Record<string, unknown>A new message to append to the session.
OptionalrunConfig?: RunConfigThe run config for the agent.
The session ID of the session.
OptionalstateDelta?: Record<string, unknown>An optional state delta to apply to the session.
The user ID of the session.
Runs the agent with a new, ephemeral session.
OptionalcustomMetadata?: Record<string, unknown>A new message to append to the session.
OptionalrunConfig?: RunConfigThe run config for the agent.
OptionalstateDelta?: Record<string, unknown>An optional state delta to apply to the session.
The user ID of the session.
A Runner pre-configured with in-memory services.
Suitable for local development, testing, and prototyping. All session, artifact, and memory data is stored in-process and is not persisted between runs.
Example: