It seems we have 2 competing paradigms with how co...
# proj-sdk
s
It seems we have 2 competing paradigms with how conversations should be run, and all of us are "Touching the Elephant" The AgentSDK Team seems to expect: • Add event(s). • Invoke
run
- conversation proceeds until agent enters FINISHED, PAUSED or STUCK state. The Frontend Team seems to expect: • Add event(s). • The agent server automatically proceeds with the conversation while there are events to process. To accommodate both of these, I've added this PR: https://github.com/All-Hands-AI/agent-sdk/pull/729 Basically, when starting a conversation, we add an
run
flag which determines which paradigm we will use. (RemoteConversation defaults to
False
, sending a message via websocket defaults to
True
) @chilly-france-44439 / @freezing-spoon-14104 - can I get your 👀 on this PR?
acknowledged 1
c
> • The agent server automatically proceeds with the conversation while there are events to process. I wonder if it is easy to just modify the frontend so we are hitting "/run" whenever user sends a message to keep the parity here? I think this PR overall is a good idea, but left two comments to make sure we are not breaking the RemoteConverstaion pattern
s
I wonder if it is easy to just modify the frontend so we are hitting "/run" whenever user sends a message to keep the parity here?
I think it is less complex to run the conversation when a message is received via websocket - less issues with synchronization. I will update the setting to false for the sake of parity.
👍 2
Updated