validate_tools_single_input() — langchain Function Reference
Architecture documentation for the validate_tools_single_input() function in utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fb93bc03_ec6e_f1a0_1211_07216cdf053f["validate_tools_single_input()"] 8238f640_0370_d858_41a2_76c2eb4cd163["utils.py"] fb93bc03_ec6e_f1a0_1211_07216cdf053f -->|defined in| 8238f640_0370_d858_41a2_76c2eb4cd163 style fb93bc03_ec6e_f1a0_1211_07216cdf053f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/utils.py lines 6–19
def validate_tools_single_input(class_name: str, tools: Sequence[BaseTool]) -> None:
"""Validate tools for single input.
Args:
class_name: Name of the class.
tools: List of tools to validate.
Raises:
ValueError: If a multi-input tool is found in tools.
"""
for tool in tools:
if not tool.is_single_input:
msg = f"{class_name} does not support multi-input tool {tool.name}."
raise ValueError(msg)
Domain
Subdomains
Source
Frequently Asked Questions
What does validate_tools_single_input() do?
validate_tools_single_input() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/utils.py.
Where is validate_tools_single_input() defined?
validate_tools_single_input() is defined in libs/langchain/langchain_classic/agents/utils.py at line 6.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free