main
md 48 lines 1.84 KB
Rendered Raw
1 # unknown.py DOX
2
3 ## Purpose
4
5 - Own the `unknown.py` agent tool.
6 - This module handles unknown or malformed tool-call requests.
7 - Keep this file-level DOX profile synchronized with `unknown.py` because this directory is intentionally flat.
8
9 ## Ownership
10
11 - `unknown.py` owns the runtime implementation.
12 - `unknown.py.dox.md` owns durable notes about responsibilities, contracts, side effects, and verification for that implementation.
13 - Classes:
14 - `Unknown` (`Tool`)
15 - `async execute(self, **kwargs)`
16
17 ## Runtime Contracts
18
19 - Tool modules must define `helpers.tool.Tool` subclasses and return `helpers.tool.Response` from `execute(...)`.
20 - Update this file whenever tool arguments, output shape, `break_loop` behavior, intervention handling, prompt instructions, or side effects change.
21 - `Unknown` is a `Tool`.
22 - `Unknown` defines `execute(...)`.
23 - Imported dependency areas include: `extensions.python.system_prompt._11_tools_prompt`, `helpers.tool`.
24
25 ## Key Concepts
26
27 - Important called helpers/classes observed in the source: `Response`, `build_tools_prompt`, `self.agent.read_prompt`.
28 - Keep request/response, tool, or helper semantics documented here at the same time as source changes.
29
30 ## Work Guidance
31
32 - Keep tool output concise, model-readable, and safe for history persistence.
33 - Coordinate argument or behavior changes with prompt tool instructions and skill guidance.
34 - Respect intervention flow for long-running, external, or user-visible operations.
35
36 ## Verification
37
38 - Run targeted tool and prompt-contract tests for changed behavior; smoke-test agent execution when no focused test exists.
39 - Related tests observed by source search:
40 - `tests/test_file_tree_visualize.py`
41 - `tests/test_oauth_providers.py`
42 - `tests/test_socketio_unknown_namespace.py`
43 - `tests/test_tunnel_remote_link.py`
44 - `tests/test_ws_manager.py`
45
46 ## Child DOX Index
47
48 No child DOX files.