ToolDescription Class — langchain Architecture
Architecture documentation for the ToolDescription class in function_calling.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 02ce2be4_74df_4c64_0f34_dc3321048f37["ToolDescription"] 344b2838_87a8_d5dc_b550_fdb443ff6c4e["function_calling.py"] 02ce2be4_74df_4c64_0f34_dc3321048f37 -->|defined in| 344b2838_87a8_d5dc_b550_fdb443ff6c4e
Relationship Graph
Source Code
libs/core/langchain_core/utils/function_calling.py lines 78–85
class ToolDescription(TypedDict):
"""Representation of a callable function to the OpenAI API."""
type: Literal["function"]
"""The type of the tool."""
function: FunctionDescription
"""The function description."""
Domain
Source
Frequently Asked Questions
What is the ToolDescription class?
ToolDescription is a class in the langchain codebase, defined in libs/core/langchain_core/utils/function_calling.py.
Where is ToolDescription defined?
ToolDescription is defined in libs/core/langchain_core/utils/function_calling.py at line 78.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free