-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server working with agent library #97
Conversation
The task hangs in
|
@kvchitrapu lmk if you're still able to repro this--I think I've fixed it. |
Happy path worked fine. However, any syntax error in action json drops connection in session.py:56. How about sending back an error to the client indicating bad json? Here is a bad json message with extra '}' at the end to illustrate the problem on the client side. Client side
Server side
|
Good catch! Fixed the JSON parsing issue I just got it to hang again, so I'm digging in a little further. |
Figured out some of the hanging. It seems like I've fixed it by adding |
Nice work! Bad json input gave an error:
|
LGTM |
For our next steps, it's important we address the following to enhance our project's stability and cleanliness:
@rbren, if that sounds good to you, I'll proceed to create an enhancement issue and follow up with a pull request. |
👍 totally agree! re: cleanup, I think I'm doing some basic cleanup already, but it could probably be improved. re: sessions, I think we can assume 1 session per server for MVP, but would be great to make sessions more robust |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* server working with agent library * update readme * add messages to events * factor out steps * fix websocket messages * allow user to run arbitrary actions * allow user to run commands before a task is started * fix main.py * check JSON * handle errors in controller better * fix memory issue * better error handling and task cancellation * fix monologue len * fix imports * remove server from lint check * fix lint issues * fix lint errors
This PR modifies the websocket server so that it uses the main Agent API to start an agent.
It removes the docker container mgmt, which is now controlled by the DockerInteractive sandbox.
Sample output. The first line is the only message sent to the server, everything else is a response