Home / Class/ OpenAIFunction Class — langchain Architecture

OpenAIFunction Class — langchain Architecture

Architecture documentation for the OpenAIFunction class in openai_functions.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  4f30b8f0_325d_89c8_70fd_1cece52824ce["OpenAIFunction"]
  7d2fab00_7717_5a90_b625_00b2f4edd6b0["openai_functions.py"]
  4f30b8f0_325d_89c8_70fd_1cece52824ce -->|defined in| 7d2fab00_7717_5a90_b625_00b2f4edd6b0

Relationship Graph

Source Code

libs/langchain/langchain_classic/runnables/openai_functions.py lines 12–20

class OpenAIFunction(TypedDict):
    """A function description for `ChatOpenAI`."""

    name: str
    """The name of the function."""
    description: str
    """The description of the function."""
    parameters: dict
    """The parameters to the function."""

Frequently Asked Questions

What is the OpenAIFunction class?
OpenAIFunction is a class in the langchain codebase, defined in libs/langchain/langchain_classic/runnables/openai_functions.py.
Where is OpenAIFunction defined?
OpenAIFunction is defined in libs/langchain/langchain_classic/runnables/openai_functions.py at line 12.

Analyze Your Own Codebase

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

Try Supermodel Free