invalid_tool_call() — langchain Function Reference
Architecture documentation for the invalid_tool_call() function in tool.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD dd2af7a2_3844_b2a2_ba90_dddf83f5646f["invalid_tool_call()"] 210f83c5_4be3_e20e_b877_98a194178520["tool.py"] dd2af7a2_3844_b2a2_ba90_dddf83f5646f -->|defined in| 210f83c5_4be3_e20e_b877_98a194178520 c3cea370_0eb2_ed10_0436_0c051020ac26["default_tool_parser()"] c3cea370_0eb2_ed10_0436_0c051020ac26 -->|calls| dd2af7a2_3844_b2a2_ba90_dddf83f5646f style dd2af7a2_3844_b2a2_ba90_dddf83f5646f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/messages/tool.py lines 326–346
def invalid_tool_call(
*,
name: str | None = None,
args: str | None = None,
id: str | None = None,
error: str | None = None,
) -> InvalidToolCall:
"""Create an invalid tool call.
Args:
name: The name of the tool to be called.
args: The arguments to the tool call as a JSON string.
id: An identifier associated with the tool call.
error: An error message associated with the tool call.
Returns:
The created invalid tool call.
"""
return InvalidToolCall(
name=name, args=args, id=id, error=error, type="invalid_tool_call"
)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does invalid_tool_call() do?
invalid_tool_call() is a function in the langchain codebase, defined in libs/core/langchain_core/messages/tool.py.
Where is invalid_tool_call() defined?
invalid_tool_call() is defined in libs/core/langchain_core/messages/tool.py at line 326.
What calls invalid_tool_call()?
invalid_tool_call() is called by 1 function(s): default_tool_parser.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free