Fix: Correct cancellation token usage in UserProxyAgent docstring (#4874)

Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
This commit is contained in:
WcW 2025-01-03 01:46:01 +09:00 committed by GitHub
parent 16ceded2d2
commit a1d782d3ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class UserProxyAgent(BaseChatAgent):
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