AgentSdkStoredResume class final

Persists the conversation id keyed by the caller's session id (LlmOptions.sessionId).

A call with a null sessionId (a background / boot call that reached an agent-SDK route) is treated as session-less — it always starts fresh and is never recorded, so background work never pollutes a user session's Claude memory.

Implemented types

Constructors

AgentSdkStoredResume(AgentSdkResumeStore store)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store → AgentSdkResumeStore
The store the session ids are persisted in.
final

Methods

evict(LlmOptions options) → Future<void>
Forgets the stored session id for this call after a session-shaped failure, so the immediate retry starts fresh. A no-op for read-only strategies.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(LlmOptions options, String conversationId) → Future<void>
Records the conversation id a successful call produced, so a later call of the same session can resume it. A no-op for read-only strategies (AgentSdkQuestResume).
override
resumeIdFor(LlmOptions options) → Future<String?>
The conversation id to resume for this call, or null to start a fresh session (an unknown key, a missing quest file).
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited