Coverage for core/langgraph/_instructions.py: 100%
4 statements
« prev ^ index » next coverage.py v7.16.0, created at 2026-09-28 00:19 +0000
« prev ^ index » next coverage.py v7.16.0, created at 2026-09-28 00:19 +0000
1"""
2_instructions.py — Core instruction constant and file-access tool name re-exports.
4Hosts the engine's `AGENT_INSTRUCTION_MISSING` sentinel and re-exports the
5file-access tool name constants `READ_FILE_TOOL_NAME` / `LIST_DIR_TOOL_NAME` for
6`_llm`. Model-visible tool usage text is carried per-tool by each tool's native
7function definition (ADR-0036 D1); the file-access tool modules own their
8definitions and execution.
9"""
10try:
11 from tools.read_file import READ_FILE_TOOL_NAME
12 from tools.list_dir import LIST_DIR_TOOL_NAME
13except ImportError: # pragma: no cover — main.py run (qualified imports)
14 from langgraph.tools.read_file import READ_FILE_TOOL_NAME
15 from langgraph.tools.list_dir import LIST_DIR_TOOL_NAME
18AGENT_INSTRUCTION_MISSING = "AGENT_INSTRUCTION_MISSING"