pub fn create_deep_agent(
model: Arc<dyn ChatModel>,
options: DeepAgentOptions,
) -> Result<CompiledGraph<MessageState>, SynapticError>Expand description
Create a deep agent with the given model and options.
Assembles a middleware stack and tool set:
- DeepMemoryMiddleware — loads memory file into system prompt
- SkillsMiddleware — progressive disclosure of skills
- FilesystemMiddleware — 6–7 filesystem tools + large result eviction
- SubAgentMiddleware —
tasktool for child agent spawning - DeepSummarizationMiddleware — auto-summarize context on overflow
- PatchToolCallsMiddleware — fix malformed tool calls
- User-provided middleware