Skip to main content

Module tools

Module tools 

Source
Expand description

The two tools the model sees.

Memory reaches the model through function calls rather than injected context, for three reasons: the model’s use of a memory is visible in the transcript, retrieved text is unambiguously data rather than instruction, and nothing is spent on turns that never needed memory at all.

Both are TypedTools over argument structs, so the JSON Schema the model is constrained by is generated from the types the handler actually decodes. manage_memory’s operation is the domain’s own MutationIntent, which means the tool contract and the ledger cannot disagree about what operations exist.

Structs§

ManageArgs
Arguments to manage_memory.
RecallArgs
Arguments to recall_context.

Enums§

RecallScope
Which slice of memory a recall should search.

Constants§

MANAGE_DESCRIPTION
The management tool’s description.
MANAGE_TOOL
The memory-management tool’s name.
MEMORY_TOOLS
Every tool the memory subsystem installs.
RECALL_DESCRIPTION
The recall tool’s description.
RECALL_TOOL
The recall tool’s name.

Functions§

manage_memory_tool
Build the manage_memory tool for a session.
recall_context_tool
Build the recall_context tool for a session.