Skip to content
1 min read · 259 words

@nhtio/adk/batteries/tools/standing_instructions

Pre-constructed CRUD tools for model-visible standing instruction management.

Remarks

Pre-constructed CRUD tools that expose the ADK's standing-instruction surface to the model. Each tool delegates to the corresponding callback on the active @nhtio/adk!DispatchContext (standingInstructions getter, storeStandingInstruction, deleteStandingInstruction) — the persistence layer is whatever the consumer wired into the runner.

Standing instructions are stored as a Set of @nhtio/adk!Tokenizable values keyed by identity, not by an id field — there is no separate "update by id" semantics. The tools therefore expose only list / add / remove. To replace an existing instruction the model should remove the old value and add the new one (the ADK's persistence layer is free to interpret that pair as an update if appropriate).

Output is JSON for every tool so consumers can parse the result without re-tokenising — the artifact constructor is set to @nhtio/adk!SpooledJsonArtifact.

Tools:

Variables

VariableDescription
addStandingInstructionToolAdd a new standing instruction to the active execution context.
listStandingInstructionsToolList every standing instruction currently held by the active execution context.
removeStandingInstructionToolRemove an existing standing instruction by its content string.
standingInstructionToolsConvenience tuple of every standing-instruction tool. Spread into a @nhtio/adk!ToolRegistry to register the entire category at once.