Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/langchain-ai/langchain
/ agent.py
File
agent.py
templates/neo4j-semantic-layer/neo4j_semantic_layer/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
14
ChatOpenAI
Class · 0.90
InformationTool
Class · 0.90
RecommenderTool
Class · 0.90
MemoryTool
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
bind
Method · 0.45
from_messages
Method · 0.45
Tested by
no test coverage detected