save() — langchain Function Reference
Architecture documentation for the save() function in agent.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bc7c843c_a2eb_bfd2_3ec6_b52a757f29d1["save()"] 493d4ce4_2303_08e0_2337_2bee34fe2662["AgentExecutor"] bc7c843c_a2eb_bfd2_3ec6_b52a757f29d1 -->|defined in| 493d4ce4_2303_08e0_2337_2bee34fe2662 257c3f1d_0639_2e4e_fd2a_a566e69f1c1d["save()"] 257c3f1d_0639_2e4e_fd2a_a566e69f1c1d -->|calls| bc7c843c_a2eb_bfd2_3ec6_b52a757f29d1 10a43326_6487_3430_716b_2f50b7e5d0b6["save_agent()"] bc7c843c_a2eb_bfd2_3ec6_b52a757f29d1 -->|calls| 10a43326_6487_3430_716b_2f50b7e5d0b6 257c3f1d_0639_2e4e_fd2a_a566e69f1c1d["save()"] bc7c843c_a2eb_bfd2_3ec6_b52a757f29d1 -->|calls| 257c3f1d_0639_2e4e_fd2a_a566e69f1c1d style bc7c843c_a2eb_bfd2_3ec6_b52a757f29d1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/agent.py lines 1161–1175
def save(self, file_path: Path | str) -> None:
"""Raise error - saving not supported for Agent Executors.
Args:
file_path: Path to save to.
Raises:
ValueError: Saving not supported for agent executors.
"""
msg = (
"Saving not supported for agent executors. "
"If you are trying to save the agent, please use the "
"`.save_agent(...)`"
)
raise ValueError(msg)
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does save() do?
save() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent.py.
Where is save() defined?
save() is defined in libs/langchain/langchain_classic/agents/agent.py at line 1161.
What does save() call?
save() calls 2 function(s): save, save_agent.
What calls save()?
save() is called by 1 function(s): save.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free