functions() — langchain Function Reference
Architecture documentation for the functions() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 1906f58c_4ba0_7060_b7ff_cac1fe4003a9["functions()"] b444f628_93a3_fafc_0827_7b9ca1eef67c["OpenAIFunctionsAgent"] 1906f58c_4ba0_7060_b7ff_cac1fe4003a9 -->|defined in| b444f628_93a3_fafc_0827_7b9ca1eef67c style 1906f58c_4ba0_7060_b7ff_cac1fe4003a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/openai_functions_agent/base.py lines 92–94
def functions(self) -> list[dict]:
"""Get functions."""
return [dict(convert_to_openai_function(t)) for t in self.tools]
Domain
Subdomains
Source
Frequently Asked Questions
What does functions() do?
functions() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/openai_functions_agent/base.py.
Where is functions() defined?
functions() is defined in libs/langchain/langchain_classic/agents/openai_functions_agent/base.py at line 92.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free