Skip to content
1 min read · 59 words

Variable: E_TRANSFORMERS_JS_INVALID_TOOL_CALL_ARGS ​

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

Defined in: src/batteries/llm/transformers_js/exceptions.ts:57

Raised when a tool call parsed out of model output carries malformed arguments (not a JSON object).

Remarks ​

Non-fatal. The adapter does NOT throw it — it instantiates it inside executeAndPersistToolCall, pulls .message into a @nhtio/adk!Tokenizable, and persists a ToolCall with isError: true so the model can self-correct. Printf args: [reasonHeadline, rawArgs].