From dba0a65917866adfe2f5137a3eb2c15535b94e24 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Thu, 23 Oct 2025 16:06:14 -0400 Subject: [PATCH] chore: `create_deep_agent` return type annotation --- src/deepagents/graph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/deepagents/graph.py b/src/deepagents/graph.py index b6c8294d..1c04f319 100644 --- a/src/deepagents/graph.py +++ b/src/deepagents/graph.py @@ -52,7 +52,7 @@ def create_deep_agent( debug: bool = False, name: str | None = None, cache: BaseCache | None = None, -) -> CompiledStateGraph: +) -> CompiledStateGraph[Any, Any, Any, Any]: """Create a deep agent. This agent will by default have access to a tool to write todos (write_todos), @@ -69,11 +69,11 @@ def create_deep_agent( following keys: - `name` - `description` (used by the main agent to decide whether to call the - sub agent) + sub agent) - `prompt` (used as the system prompt in the subagent) - (optional) `tools` - (optional) `model` (either a LanguageModelLike instance or dict - settings) + settings) - (optional) `middleware` (list of AgentMiddleware) response_format: A structured output response format to use for the agent. context_schema: The schema of the deep agent.