Uses of Interface
dev.langchain4j.exception.ToolErrorVisibleToLlm
Packages that use ToolErrorVisibleToLlm
-
Uses of ToolErrorVisibleToLlm in dev.langchain4j.exception
Classes in dev.langchain4j.exception that implement ToolErrorVisibleToLlmModifier and TypeClassDescriptionclassAToolExecutionExceptionwhose message is written for the LLM, so it implementsToolErrorVisibleToLlm: error handlers that honor that interface send the message to the LLM instead of failing the AI Service invocation.classA ready-madeToolErrorVisibleToLlmexception: throw it from a@Toolmethod when you want to tell the LLM what went wrong without declaring an exception class of your own. -
Uses of ToolErrorVisibleToLlm in dev.langchain4j.mcp.client
Classes in dev.langchain4j.mcp.client that implement ToolErrorVisibleToLlmModifier and TypeClassDescriptionclassAn error that an MCP server reported inside an otherwise successful tool result, by settingisErrortotrue.