Skip to content
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

Autogenstudio Updates [Upload/Dowload of Skills/Workflows, Streaming Agent Replies, Agent Message Summarization] #1801

Merged
merged 58 commits into from
Mar 16, 2024

Conversation

victordibia
Copy link
Collaborator

@victordibia victordibia commented Feb 27, 2024

Why are these changes needed?

Improves functionality of autogen studio

  • Ability to upload/download skills, agents, models, workflows
    • Test: Build -> workflow -> download .... then upload and test in playground
  • Streaming intermediate agent replies to the UI. Previously only final results of all agents were shown resulting in long delays before viewing any updates. Also refactors to use websockets for sending message requests where available.
    • Test: Playground -> make a request ... intermediate agent messages should be streamed to UI
  • Implement summarization of agent responses (previously, only the last message was supported)
    • Test: Workflow -> change summary method to llm, go to playground, make a request. The message shown should be an llm summary of the agent conversation chain
  • Enable renaming sessions in UI , thanks to @jluey1
    • Test: Playground -> in sessions on the left, click ellipsis, edit/rename session
  • Synchronize description field in AGS with newly added description field in Conversable Agent
  • Add a sample Dockerfile, demonstrating good practices in using gunicorn webserver for improved performance.
  • Create independent working directories for each session and sub dirs for each request in a session (based on time of request). This ensures files generated in each session is independent (not overwritten)
    • Test: Spin up multiple workers via gunicorn, run concurrent tasks in playground, verify that the artifacts shown (images, files etc) are indeed only applicable to the current session
  • Support a better default application directory scoped to the user's home directory /home//.autogenstudio
  • Add initial db migration code (update database to add new fields or columns)

Related issue number

Closes #1986 , #1942 #1641

Checks

victordibia and others added 29 commits February 6, 2024 10:25
… extend GroupChat and Conversable agent and override process_message method. Allow passing a message processor.

Fixes bug where the last message from a groupchat manager does not get called via register_reply.
Adding ability to rename sessions in AutoGenStudio
@victordibia victordibia marked this pull request as ready for review March 14, 2024 23:46
@victordibia victordibia added the proj-studio Related to AutoGen Studio. label Mar 15, 2024
@victordibia victordibia requested a review from ekzhu March 15, 2024 15:27
@sonichi sonichi requested a review from jluey1 March 16, 2024 02:43
@sonichi sonichi added this pull request to the merge queue Mar 16, 2024
Merged via the queue into main with commit 4429d4d Mar 16, 2024
23 checks passed
@sonichi sonichi deleted the autogenstudio branch March 16, 2024 17:20
@victordibia victordibia restored the autogenstudio branch March 18, 2024 14:12
@victordibia victordibia deleted the autogenstudio branch March 18, 2024 14:15
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
…Agent Replies, Agent Message Summarization] (microsoft#1801)

* update default agent system message

* session friendly name functionality

* minor formatting

* fix issues with groupchat and version bump

* fix issues with groupchat and version bump. address microsoft#1580

* update groupchat system message

* add support for copying message in chatbox

* rewrite how agent history is maintained in workflow manager. Directly extend GroupChat and Conversable agent and override process_message method. Allow passing a message processor.
Fixes bug where the last message from a groupchat manager does not get called via register_reply.

* general qol updates

* add support for downloading + copying skills, models and agents from UI

* add regex check to agent name, address microsoft#1507

* add support for uploading workflow files

* refactor, add support for streaming intermediate agent response to ui

* improve streaming ux

* add support for uploading  skills, models, agents, workflows

* add datamodel for socket message

* version update

* fix chatbox height bug

* fix csv pagination issue

* improve hidden menu for uploading entities

* fix minor issue with animation timing on chat interface

* version bump, css fixes

* use description field in autogen conversable class for description

* add implementation for llm summarization of agent chat

* support for llm summary of agent history

* formatting fixes

* formatting updates

* add dockerfile to run autogenstudio in a docker contailer

* autogenstudio docker container

* updates to websockets

* update socket connection logic,

* support using socket for passing message requests where a socket is available

* improve command for building frontend

* formatting updates

* remove duplicated code

# overwrite skills.py in work_dir is duplicated

* update description location

as Where the code calls is like  config.description

* version bump

* refactor to ensure each session and call within a session has an independent working directory

* support use of socket for sending messages where available

* use rsync to copy built files to ui direction instead of cp -rT

* spelling correctino

* readme update

* fix numpy version

* version bump

* add support for dot env variables and updating default app dir to /home/<user>/.autogenstudio

* formatting update

* update gitignore

* formatting updates

---------

Co-authored-by: James Woffinden-Luey <[email protected]>
Co-authored-by: cillyfly <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proj-studio Related to AutoGen Studio.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Error occurred while creating agent: table agents has no column named description
6 participants