mirror of
https://github.com/microsoft/autogen.git
synced 2025-07-12 03:21:14 +00:00

<!-- 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
19 lines
504 B
Python
19 lines
504 B
Python
# api/config.py
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
DATABASE_URI: str = "sqlite:///./autogen0404.db"
|
|
API_DOCS: bool = False
|
|
CLEANUP_INTERVAL: int = 300 # 5 minutes
|
|
SESSION_TIMEOUT: int = 3600 # 1 hour
|
|
CONFIG_DIR: str = "configs" # Default config directory relative to app_root
|
|
DEFAULT_USER_ID: str = "guestuser@gmail.com"
|
|
UPGRADE_DATABASE: bool = False
|
|
|
|
class Config:
|
|
env_prefix = "AUTOGENSTUDIO_"
|
|
|
|
|
|
settings = Settings()
|