Skip to main content

Module error_map

Module error_map 

Source
Available on crate features agents and codeact only.
Expand description

Error-message helpers for the strings raised into scripts and fed back to the model.

The framework is language-agnostic, so these are just message strings. When a tool fails or is denied, the driver raises an error into the script via ResumeWith::Raise; the runtime represents it however its language does (a Python exception, a JS throw, etc.).

Functionsยง

denied_message
Message raised when a human denies a confirmation-gated tool call.
tool_error_message
Message raised into the script when a tool fails.
unknown_tool_message
Message raised when the script calls a tool that is not registered.