From 8f2063f863bd94cbf78e5c5c0304918b45a94295 Mon Sep 17 00:00:00 2001 From: AumJavalgikar <99173843+AumJavalgikar@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:26:06 +0530 Subject: [PATCH] Update nextpy/ai/agent/userproxy_agent.py using async way of receiving user input Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- nextpy/ai/agent/userproxy_agent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextpy/ai/agent/userproxy_agent.py b/nextpy/ai/agent/userproxy_agent.py index 6c9f0f38..5297a128 100644 --- a/nextpy/ai/agent/userproxy_agent.py +++ b/nextpy/ai/agent/userproxy_agent.py @@ -75,4 +75,5 @@ async def a_receive_user_input(self): :return: The user input. :rtype: str """ - return input('Provide feedback to chat_manager:') + import asyncio + return await asyncio.to_thread(input, 'Provide feedback to chat_manager:')