Skip to content

Commit

Permalink
Fix: Correct cancellation token usage in UserProxyAgent docstring (#4874
Browse files Browse the repository at this point in the history
)

Co-authored-by: Jack Gerrits <[email protected]>
  • Loading branch information
w121211 and jackgerrits authored Jan 2, 2025
1 parent 16ceded commit a1d782d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def cancellable_user_agent():
agent_task = asyncio.create_task(
agent.on_messages(
[TextMessage(content="What is your name? ", source="user")],
cancellation_token=CancellationToken(),
cancellation_token=token,
)
)
response = await agent_task
Expand Down

0 comments on commit a1d782d

Please sign in to comment.