mirror of https://github.com/microsoft/autogen.git
Fix: Correct cancellation token usage in UserProxyAgent docstring (#4874)
Co-authored-by: Jack Gerrits <jackgerrits@users.noreply.github.com>
This commit is contained in:
parent
16ceded2d2
commit
a1d782d3ec
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue