mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 01:36:29 +02:00
add: add role's custom config
This commit is contained in:
parent
313d5d41f3
commit
ac9a5e9ec9
4 changed files with 85 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ from metagpt.configs.browser_config import BrowserConfig
|
|||
from metagpt.configs.llm_config import LLMConfig, LLMType
|
||||
from metagpt.configs.mermaid_config import MermaidConfig
|
||||
from metagpt.configs.redis_config import RedisConfig
|
||||
from metagpt.configs.role_custom_config import RoleCustomConfig
|
||||
from metagpt.configs.s3_config import S3Config
|
||||
from metagpt.configs.search_config import SearchConfig
|
||||
from metagpt.configs.workspace_config import WorkspaceConfig
|
||||
|
|
@ -76,6 +77,9 @@ class Config(CLIParams, YamlModel):
|
|||
azure_tts_subscription_key: str = ""
|
||||
azure_tts_region: str = ""
|
||||
|
||||
# Role's custom configuration, Priority: Role's configuration > Global configuration
|
||||
roles: Optional[List[RoleCustomConfig]] = None
|
||||
|
||||
@classmethod
|
||||
def from_home(cls, path):
|
||||
"""Load config from ~/.metagpt/config2.yaml"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue