_tools_description() — langchain Function Reference
Architecture documentation for the _tools_description() function in trajectory_eval_chain.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 3a27582b_b9f3_5fbd_cef5_c311ab88dc62["_tools_description()"] 9066f65c_c5a3_1534_5336_72609f4ff02b["TrajectoryEvalChain"] 3a27582b_b9f3_5fbd_cef5_c311ab88dc62 -->|defined in| 9066f65c_c5a3_1534_5336_72609f4ff02b style 3a27582b_b9f3_5fbd_cef5_c311ab88dc62 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py lines 164–178
def _tools_description(self) -> str:
"""Get the description of the agent tools.
Returns:
The description of the agent tools.
"""
if self.agent_tools is None:
return ""
return "\n\n".join(
[
f"""Tool {i}: {tool.name}
Description: {tool.description}"""
for i, tool in enumerate(self.agent_tools, 1)
],
)
Domain
Subdomains
Source
Frequently Asked Questions
What does _tools_description() do?
_tools_description() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py.
Where is _tools_description() defined?
_tools_description() is defined in libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py at line 164.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free