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)
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.