Skip to main content

Module tool

Module tool 

Source

Structs§

ToolResult
Result of a tool execution
ToolSpec
Description of a tool for the LLM

Constants§

EPHEMERAL_WORKSPACE_WARNING
Loud, actionable banner that filesystem-touching tools surface when the active runtime uses an ephemeral workspace — e.g. a Docker container with no host volume mount, where the workspace is a private tmpfs. In that mode writes succeed inside the container but never reach the host and are discarded when the session ends, and reads may return stale or empty data. Surfacing this prevents the silent data loss reported in issue #4627.

Traits§

Tool
Core tool trait — implement for any capability.

Functions§

with_ephemeral_workspace_warning
Prepend EPHEMERAL_WORKSPACE_WARNING to a tool’s output/error text as a clearly delimited banner, preserving the original text below it.