-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update AGS to Use AgentChat Declarative Config Serialization (#5261)
<!-- Thank you for your contribution! Please review https://microsoft.github.io/autogen/docs/Contribute before opening a pull request. --> <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? This PR updates AGS to use the declarative config serialization native to AgentChat. The effect? You can build your teams/artifacts directly in python, run `team.dump_component()` and immediately run it in AGS. Some change details: - Removes ComponentFactory. Instead TeamManager just loads team specs directly using `Team.load_component`. - Some fixes to the UI to simplify drag and drop experience. - Improve layout of nodes... <!-- Please give a short summary of the change and the problem this solves. --> ## Related issue number <!-- For example: "Closes #1234" --> Closes #4439 Closes #5172 ## Checks - [ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally. - [ ] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [ ] I've made sure all auto checks have passed. cc @EItanya @nour-bouzid
- Loading branch information
1 parent
a1b08aa
commit b2800d7
Showing
49 changed files
with
3,485 additions
and
4,163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,6 @@ | ||
from .database.db_manager import DatabaseManager | ||
from .datamodel import Agent, AgentConfig, Model, ModelConfig, Team, TeamConfig, Tool, ToolConfig | ||
from .datamodel import Team | ||
from .teammanager import TeamManager | ||
from .version import __version__ | ||
|
||
__all__ = [ | ||
"Tool", | ||
"Model", | ||
"DatabaseManager", | ||
"Team", | ||
"Agent", | ||
"ToolConfig", | ||
"ModelConfig", | ||
"TeamConfig", | ||
"AgentConfig", | ||
"TeamManager", | ||
"__version__", | ||
] | ||
__all__ = ["DatabaseManager", "Team", "TeamManager", "__version__"] |
7 changes: 5 additions & 2 deletions
7
python/packages/autogen-studio/autogenstudio/database/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
from .component_factory import Component, ComponentFactory | ||
from .config_manager import ConfigurationManager | ||
from .db_manager import DatabaseManager | ||
from .gallery_builder import GalleryBuilder, create_default_gallery | ||
|
||
__all__ = [ | ||
"DatabaseManager", | ||
] |
Oops, something went wrong.