Merge branch 'main'

This commit is contained in:
ziming 2023-09-25 22:24:09 +08:00
commit c18f384356
17 changed files with 373 additions and 20 deletions

View file

@ -14,7 +14,7 @@ from pydantic import BaseModel, Field
# from metagpt.environment import Environment
from metagpt.config import CONFIG
from metagpt.actions import Action, ActionOutput
from metagpt.llm import LLM
from metagpt import llm as LLM
from metagpt.logs import logger
from metagpt.memory import Memory, LongTermMemory
from metagpt.schema import Message
@ -94,7 +94,7 @@ class Role:
"""Role/Agent"""
def __init__(self, name="", profile="", goal="", constraints="", desc=""):
self._llm = LLM()
self._llm=LLM.DEFAULT_LLM
self._setting = RoleSetting(name=name, profile=profile, goal=goal, constraints=constraints, desc=desc)
self._states = []
self._actions = []