Skip to content

Commit

Permalink
Update nextpy/ai/agent/userproxy_agent.py
Browse files Browse the repository at this point in the history
using async way of receiving user input

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
AumJavalgikar and coderabbitai[bot] committed Feb 19, 2024
1 parent 77a465c commit 8f2063f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nextpy/ai/agent/userproxy_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:')

0 comments on commit 8f2063f

Please sign in to comment.