High level Overview of What happends inside a deep agent
- High level flow

- Deep agent is Langchain’s framework for building multi-agent systems with structured subagent delegation.
- Each sub agent is an isolated agent with
- Its own system prompt/instruction
- Its own tools
- Its own execution context
-
Sub agent behavior can be defined as a skill file
-
Sub agents can use backends
- State: In memory dictionary (ephemeral)
- FileSystme: Read/Write Files
- Store: Persistent key-value stores
- Composite: Combine multiple backends
-
Middleware: Wraps subagent execution
Lets assume we want to create a deep agent
Travel Planner:
- Scenario: User has asked 3-day trip to North east india
-
Orchestrator (deep agent)
- Plans
- Task list
- spawns 3 sub agents in parallel
- Hotel Finder
- Flight Searcher
- Itineary Builder
- Merges the results
- Final travel plan
-
For performing the above mentioned deep agents have different harness capabilities
