Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/langchain-ai/langchain
/ agent.py
File
agent.py
templates/openai-functions-agent/openai_functions_agent/agent.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
typing
import
List, Tuple
2
3
from
langchain.agents
import
AgentExecutor
4
from
langchain.agents.format_scratchpad
import
format_to_openai_function_messages
Callers
nothing calls this directly
Calls
12
TavilySearchAPIWrapper
Class · 0.90
TavilySearchResults
Class · 0.90
ChatOpenAI
Class · 0.90
MessagesPlaceholder
Class · 0.90
format_to_openai_function_messages
Function · 0.90
OpenAIFunctionsAgentOutputParser
Class · 0.90
AgentExecutor
Class · 0.90
format_tool_to_openai_function
Function · 0.85
_format_chat_history
Function · 0.70
from_messages
Method · 0.45
bind
Method · 0.45
with_types
Method · 0.45
Tested by
no test coverage detected