Skip to main content

Module error

Module error 

Source
Expand description

Errors a tool may return.

Axes chosen to map cleanly to the wire protocol:

  • InvalidArgs / InternalError → wire error response
  • ExecutionFailed → wire tool_result { success: false } response

Named ToolCallError (not reusing atd-protocol::AtdError) because client-side and server-side errors classify different concerns.

#[non_exhaustive] on the enum is load-bearing since this crate is now separate from atd-ref-server (post-SP-refactor-v1): downstream match sites must include a wildcard arm so new variants added here don’t break their compile without an explicit update.

Enums§

ToolCallError