Skip to content

description_loader

diapason.tools.description_loader

Load tool description overrides from $DIAPASON_HOME/tools/descriptions.toml.

LLM-guided spec search (M1) proposes tool description edits that get written to disk by EditToolDescriptionApplier. This module loads those overrides so agents see the improved descriptions at runtime.

The TOML file format (written by the applier) is::

[web_search]
description = "Search the web for recent information only"

[llm]
description = "Call a sub-LM. Has no internet access."

clear_cache()

Clear the cached overrides (useful for testing).

get_tool_description_override(tool_name)

Return the override description for tool_name, or None.

Results are cached for the lifetime of the process.