Skip to content

Commit

Permalink
fix(agent.py): update handlers type annotation to support both Handle…
Browse files Browse the repository at this point in the history
…r and AsyncHandler
  • Loading branch information
teocns committed Nov 2, 2024
1 parent f328387 commit 92f6e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controlflow/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 92f6e24

Please sign in to comment.