mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 18:36:22 +02:00
refine code. move azure tts to tool, refactor actions
This commit is contained in:
parent
a06acbbbe8
commit
4d78dbce40
10 changed files with 32 additions and 108 deletions
|
|
@ -19,6 +19,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
|
||||
|
|
@ -281,7 +282,7 @@ class MessageQueue(BaseModel):
|
|||
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