fixbug: 修复通用智能体role及其相关的TalkAction和SkillAction

This commit is contained in:
莘权 马 2023-12-25 22:39:03 +08:00
parent 6261251279
commit 0fdb552468
12 changed files with 541 additions and 512 deletions

View file

@ -23,7 +23,7 @@ from abc import ABC
from asyncio import Queue, QueueEmpty, wait_for
from json import JSONDecodeError
from pathlib import Path
from typing import Any, Dict, List, Optional, Set, Type, TypedDict, TypeVar
from typing import Any, Dict, List, Optional, Set, Type, TypeVar
from pydantic import BaseModel, Field
@ -46,7 +46,7 @@ from metagpt.utils.serialize import (
)
class RawMessage(TypedDict):
class SimpleMessage(BaseModel):
content: str
role: str