Skip to content

Documentation / @agentick/shared / StateChangeBlock

Interface: StateChangeBlock

Defined in: blocks.ts:337

State change block - Records a state transition

The text field provides a human-readable formatted representation, typically populated via JSX children.

Extends

Properties

createdAt?

readonly optional createdAt: string

Defined in: blocks.ts:58

ISO 8601 timestamp when this block was created

Inherited from

BaseContentBlock.createdAt


entity

readonly entity: string

Defined in: blocks.ts:339


field?

readonly optional field: string

Defined in: blocks.ts:340


from

readonly from: any

Defined in: blocks.ts:341


id?

readonly optional id: string

Defined in: blocks.ts:54

Unique identifier for this block

Inherited from

BaseContentBlock.id


index?

readonly optional index: number

Defined in: blocks.ts:62

Position of this block within the message

Inherited from

BaseContentBlock.index


messageId?

readonly optional messageId: string

Defined in: blocks.ts:56

ID of the message containing this block

Inherited from

BaseContentBlock.messageId


metadata?

readonly optional metadata: Record<string, any>

Defined in: blocks.ts:64

Additional metadata

Inherited from

BaseContentBlock.metadata


mimeType?

readonly optional mimeType: string

Defined in: blocks.ts:60

MIME type of the content (for media blocks)

Inherited from

BaseContentBlock.mimeType


summary?

readonly optional summary: string

Defined in: blocks.ts:66

Human-readable summary of the content

Inherited from

BaseContentBlock.summary


text?

readonly optional text: string

Defined in: blocks.ts:345

Formatted text representation (from JSX children)


to

readonly to: any

Defined in: blocks.ts:342


trigger?

readonly optional trigger: string

Defined in: blocks.ts:343


type

readonly type: "state_change" | STATE_CHANGE

Defined in: blocks.ts:338

Discriminator for type narrowing (e.g., 'text', 'image', 'tool_use')

Overrides

BaseContentBlock.type

Released under the ISC License.