Home / Class/ FunctionDescription Class — langchain Architecture

FunctionDescription Class — langchain Architecture

Architecture documentation for the FunctionDescription class in function_calling.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  365d0fad_fc8f_79e7_802e_35358c11bfe3["FunctionDescription"]
  344b2838_87a8_d5dc_b550_fdb443ff6c4e["function_calling.py"]
  365d0fad_fc8f_79e7_802e_35358c11bfe3 -->|defined in| 344b2838_87a8_d5dc_b550_fdb443ff6c4e

Relationship Graph

Source Code

libs/core/langchain_core/utils/function_calling.py lines 65–75

class FunctionDescription(TypedDict):
    """Representation of a callable function to send to an LLM."""

    name: str
    """The name of the function."""

    description: str
    """A description of the function."""

    parameters: dict
    """The parameters of the function."""

Frequently Asked Questions

What is the FunctionDescription class?
FunctionDescription is a class in the langchain codebase, defined in libs/core/langchain_core/utils/function_calling.py.
Where is FunctionDescription defined?
FunctionDescription is defined in libs/core/langchain_core/utils/function_calling.py at line 65.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free