Skip to content
providerkit
GitHub

MemoryRunsOptions

Defined in: agents/src/a2a/memory-runs.ts:63

optional maxEventBytes?: number;

Defined in: agents/src/a2a/memory-runs.ts:73


optional maxEvents?: number;

Defined in: agents/src/a2a/memory-runs.ts:72


optional maxSegments?: number;

Defined in: agents/src/a2a/memory-runs.ts:70


optional maxSnapshotBytes?: number;

Defined in: agents/src/a2a/memory-runs.ts:71


optional onSegment?: SegmentHook;

Defined in: agents/src/a2a/memory-runs.ts:68

Required to track out-of-band segments in the task store.


optional session?: (owner, id) =>
| Session
| Promise<Session>;

Defined in: agents/src/a2a/memory-runs.ts:69

Parameter Type
owner string
id string

| Session | Promise<Session>


optional steering?: boolean;

Defined in: agents/src/a2a/memory-runs.ts:75

Uses the SDK’s bounded memory inbox. Without this opt-in, active messages are refused.

policy(context):
| BackgroundPolicy
| Promise<BackgroundPolicy>;

Defined in: agents/src/a2a/memory-runs.ts:66

Required host policy, run again for every physical segment. Claims and authorization are still real host decisions; this binding does not infer approval from evidence or text.

Parameter Type
context BackgroundContext

| BackgroundPolicy | Promise<BackgroundPolicy>