microsoft / autogen

A programming framework for agentic AI 🤖
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
34.82k stars 5.04k forks source link

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

Closed victordibia closed 1 week ago

victordibia commented 1 week ago

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)