name_to_tool_map() — langchain Function Reference
Architecture documentation for the name_to_tool_map() function in agent_iterator.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 4741702a_7fcb_5b58_8282_d53654cfdd77["name_to_tool_map()"] 490b6bce_9d4c_017c_89ae_b13ea74223ea["AgentExecutorIterator"] 4741702a_7fcb_5b58_8282_d53654cfdd77 -->|defined in| 490b6bce_9d4c_017c_89ae_b13ea74223ea style 4741702a_7fcb_5b58_8282_d53654cfdd77 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/agent_iterator.py lines 113–115
def name_to_tool_map(self) -> dict[str, BaseTool]:
"""A mapping of tool names to tools."""
return {tool.name: tool for tool in self.agent_executor.tools}
Domain
Subdomains
Source
Frequently Asked Questions
What does name_to_tool_map() do?
name_to_tool_map() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent_iterator.py.
Where is name_to_tool_map() defined?
name_to_tool_map() is defined in libs/langchain/langchain_classic/agents/agent_iterator.py at line 113.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free