Module tool_io
Expand description
Tool input/output capture: leak-scan + truncation + denylist.
Structs§
- Tool
IoCapture - Result of a tool-io capture pass. The string in
textis what should land in theattributes.tool_input(ortool_output) field. Metadata goes intooriginal_bytes/truncatedso the dashboard can render a “truncated” badge.
Functions§
- capture_
llm_ request - capture_
tool_ input - Capture redacted tool input.
- capture_
tool_ output - Capture redacted tool output. Same shape as
capture_tool_input.