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

Add a configuration manager to AGS to enable loading component specs to DB #4189

Open
Tracked by #4006
victordibia opened this issue Nov 14, 2024 · 0 comments · May be fixed by #4210
Open
Tracked by #4006

Add a configuration manager to AGS to enable loading component specs to DB #4189

victordibia opened this issue Nov 14, 2024 · 0 comments · May be fixed by #4210
Assignees
Labels
proj-studio Related to AutoGen Studio.
Milestone

Comments

@victordibia
Copy link
Collaborator

victordibia commented Nov 14, 2024

Add a configuration manage that can import declarative specs (#4007 ) into the internal AGS database.
This provides basic infrastructure to initialize AGS using team configurations in a folder or file or from a gallery.

from autogenstudio.database import ConfigurationManager   

config_manager = ConfigurationManager(dbmanager)

# import a single component (could be agent, team, tool, etc)
result = await config_manager.import_component("team.json", user_id="user_id", check_exists=True)
print(result) 

# import entire folder 
result = await config_manager.import_directory(".", user_id="user_id", check_exists=False)
print(result)
@victordibia victordibia added the proj-studio Related to AutoGen Studio. label Nov 14, 2024
@victordibia victordibia self-assigned this Nov 14, 2024
@victordibia victordibia added this to the 0.4.0 milestone Nov 14, 2024
@victordibia victordibia linked a pull request Nov 15, 2024 that will close this issue
3 tasks
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 a pull request may close this issue.

1 participant