Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/deepagents/deepagents/middleware/subagents.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def task(
allowed_types = ", ".join([f"`{k}`" for k in subagent_graphs])
return f"We cannot invoke subagent {subagent_type} because it does not exist, the only allowed types are {allowed_types}"
subagent, subagent_state = _validate_and_prepare_state(subagent_type, description, runtime)
result = subagent.invoke(subagent_state)
result = subagent.invoke(subagent_state, runtime.config)
if not runtime.tool_call_id:
value_error_msg = "Tool call ID is required for subagent invocation"
raise ValueError(value_error_msg)
Expand All @@ -360,7 +360,7 @@ async def atask(
allowed_types = ", ".join([f"`{k}`" for k in subagent_graphs])
return f"We cannot invoke subagent {subagent_type} because it does not exist, the only allowed types are {allowed_types}"
subagent, subagent_state = _validate_and_prepare_state(subagent_type, description, runtime)
result = await subagent.ainvoke(subagent_state)
result = await subagent.ainvoke(subagent_state, runtime.config)
if not runtime.tool_call_id:
value_error_msg = "Tool call ID is required for subagent invocation"
raise ValueError(value_error_msg)
Expand Down
Loading