@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:
- listStandingInstructionsTool — read-only list of every standing instruction currently held by the context (after refreshing from the persistence layer).
- addStandingInstructionTool — add a new standing instruction.
- removeStandingInstructionTool — remove a standing instruction by its content (exact string match).
Variables
| Variable | Description |
|---|---|
| addStandingInstructionTool | Add a new standing instruction to the active execution context. |
| listStandingInstructionsTool | List every standing instruction currently held by the active execution context. |
| removeStandingInstructionTool | Remove an existing standing instruction by its content string. |
| standingInstructionTools | Convenience tuple of every standing-instruction tool. Spread into a @nhtio/adk!ToolRegistry to register the entire category at once. |