mirror of
https://github.com/microsoft/autogen.git
synced 2025-09-04 13:57:42 +00:00
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_task = asyncio.create_task(
|
||||||
agent.on_messages(
|
agent.on_messages(
|
||||||
[TextMessage(content="What is your name? ", source="user")],
|
[TextMessage(content="What is your name? ", source="user")],
|
||||||
cancellation_token=CancellationToken(),
|
cancellation_token=token,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
response = await agent_task
|
response = await agent_task
|
||||||
|
Loading…
x
Reference in New Issue
Block a user