Skip to content
1 min read · 52 words

Variable: E_ANTHROPIC_MESSAGES_INVALID_TOOL_CALL_ARGS ​

ts
const E_ANTHROPIC_MESSAGES_INVALID_TOOL_CALL_ARGS: CreatedException<
  [string, string]
>;

Defined in: src/batteries/llm/anthropic_messages/exceptions.ts:96

Instantiated for invalid model-emitted tool arguments and persisted as an error ToolCall.

Remarks ​

The adapter must not throw this exception. It creates the exception, copies the message into a tool-result payload, and persists a failed ToolCall so the model can self-correct on the next iteration.