mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-29 02:46:24 +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
19
metagpt/configs/role_custom_config.py
Normal file
19
metagpt/configs/role_custom_config.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
@Time : 2024/4/22 16:33
|
||||
@Author : Justin
|
||||
@File : role_custom_config.py
|
||||
"""
|
||||
from metagpt.configs.llm_config import LLMConfig
|
||||
from metagpt.utils.yaml_model import YamlModel
|
||||
|
||||
|
||||
class RoleCustomConfig(YamlModel):
|
||||
"""custom config for roles
|
||||
role: role's className or role's role_id
|
||||
To be expanded
|
||||
"""
|
||||
role: str = ""
|
||||
llm: LLMConfig
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue