diff --git a/src/controlflow/agents/agent.py b/src/controlflow/agents/agent.py index ef1be609..e14ee063 100644 --- a/src/controlflow/agents/agent.py +++ b/src/controlflow/agents/agent.py @@ -238,7 +238,7 @@ async def run_async( objective: str, *, turn_strategy: Optional["TurnStrategy"] = None, - handlers: Optional[list["Handler"]] = None, + handlers: Optional[list[Union["Handler", "AsyncHandler"]]] = None, **task_kwargs, ): return await controlflow.run_async(