Skip to main content

Interface: ToolStateRecord

Defined in: packages/agentos/src/cognition/emergent/types.ts:616

A tool's state as this process holds it. It mirrors the tool's row in agentos_emergent_tool_state, except for request, which can be null while the row stores a request this release cannot read.

Properties​

at​

at: number

Defined in: packages/agentos/src/cognition/emergent/types.ts:628

Unix epoch milliseconds of the last state change.


reason​

reason: string | null

Defined in: packages/agentos/src/cognition/emergent/types.ts:624

The reason for a state other than active. The library's reasons are catalogue words (source_not_persisted, source_unreadable, legacy_inactive, legacy_owner); a host's reason is the text it gave.


request​

request: StoredRequest | null

Defined in: packages/agentos/src/cognition/emergent/types.ts:636

The request this process holds for the tool: the stored one when it could be read, else the one derived from the source, else null. A state change that names no request leaves the stored column as it is.


setBy​

setBy: StateSetter

Defined in: packages/agentos/src/cognition/emergent/types.ts:626

Who recorded the state.


state​

state: ToolState

Defined in: packages/agentos/src/cognition/emergent/types.ts:618


toolId​

toolId: string

Defined in: packages/agentos/src/cognition/emergent/types.ts:617


writeId?​

optional writeId: string

Defined in: packages/agentos/src/cognition/emergent/types.ts:630

The id of the write that set this state, when the row carries one.