Skip to content

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

@victordibia

Description

@victordibia

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions