MemoryRunsOptions
Defined in: agents/src/a2a/memory-runs.ts:63
Properties
Section titled “Properties”maxEventBytes?
Section titled “maxEventBytes?”optional maxEventBytes?: number;Defined in: agents/src/a2a/memory-runs.ts:73
maxEvents?
Section titled “maxEvents?”optional maxEvents?: number;Defined in: agents/src/a2a/memory-runs.ts:72
maxSegments?
Section titled “maxSegments?”optional maxSegments?: number;Defined in: agents/src/a2a/memory-runs.ts:70
maxSnapshotBytes?
Section titled “maxSnapshotBytes?”optional maxSnapshotBytes?: number;Defined in: agents/src/a2a/memory-runs.ts:71
onSegment?
Section titled “onSegment?”optional onSegment?: SegmentHook;Defined in: agents/src/a2a/memory-runs.ts:68
Required to track out-of-band segments in the task store.
session?
Section titled “session?”optional session?: (owner, id) => | Session| Promise<Session>;Defined in: agents/src/a2a/memory-runs.ts:69
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
owner |
string |
id |
string |
Returns
Section titled “Returns”steering?
Section titled “steering?”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.
Methods
Section titled “Methods”policy()
Section titled “policy()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context |
BackgroundContext |
Returns
Section titled “Returns”| BackgroundPolicy
| Promise<BackgroundPolicy>