Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/memory / / BlockSpec
Interface: BlockSpec
Defined in: packages/memory/src/tiers/working-memory.ts:13
Author-time block specification accepted by defineBlock and WorkingMemory.define.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
charLimit | readonly | number | Maximum length of the rendered value in characters. | packages/memory/src/tiers/working-memory.ts:18 |
defaultValue? | readonly | string | Per-block default value. Applied on first definition only; later runs preserve any value already in storage. | packages/memory/src/tiers/working-memory.ts:27 |
description? | readonly | string | - | packages/memory/src/tiers/working-memory.ts:15 |
label | readonly | string | - | packages/memory/src/tiers/working-memory.ts:14 |
overflowPolicy? | readonly | "truncate" | "reject" | Default 'truncate' — 'reject' opt-in for strict use cases. | packages/memory/src/tiers/working-memory.ts:29 |
readOnly? | readonly | boolean | Default false. | packages/memory/src/tiers/working-memory.ts:22 |
schema? | readonly | ZodLikeSchema<unknown, unknown> | - | packages/memory/src/tiers/working-memory.ts:16 |
sensitivity? | readonly | Sensitivity | Default 'internal'. | packages/memory/src/tiers/working-memory.ts:20 |
tags? | readonly | readonly string[] | Optional free-form labels surfaced through tags. | packages/memory/src/tiers/working-memory.ts:31 |