mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-29 19:06:23 +02:00
refine code. move azure tts to tool, refactor actions
This commit is contained in:
parent
33c58d97fe
commit
62f34db137
9 changed files with 32 additions and 106 deletions
|
|
@ -18,6 +18,7 @@ import asyncio
|
|||
import json
|
||||
import os.path
|
||||
import uuid
|
||||
from abc import ABC
|
||||
from asyncio import Queue, QueueEmpty, wait_for
|
||||
from json import JSONDecodeError
|
||||
from pathlib import Path
|
||||
|
|
@ -265,7 +266,7 @@ class MessageQueue:
|
|||
T = TypeVar("T", bound="BaseModel")
|
||||
|
||||
|
||||
class BaseContext(BaseModel):
|
||||
class BaseContext(BaseModel, ABC):
|
||||
@classmethod
|
||||
@handle_exception
|
||||
def loads(cls: Type[T], val: str) -> Optional[T]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue