mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 09:46:24 +02:00
Merge branch 'feature-circle-import' into 'mgx_ops'
fix circle import See merge request pub/MetaGPT!361
This commit is contained in:
commit
4e82d86166
1 changed files with 5 additions and 2 deletions
|
|
@ -2,12 +2,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# @Desc : base environment
|
||||
|
||||
import typing
|
||||
from abc import abstractmethod
|
||||
from typing import Any, Optional
|
||||
|
||||
from metagpt.base.base_env_space import BaseEnvAction, BaseEnvObsParams
|
||||
from metagpt.base.base_serialization import BaseSerialization
|
||||
from metagpt.schema import Message
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from metagpt.schema import Message
|
||||
|
||||
|
||||
class BaseEnvironment(BaseSerialization):
|
||||
|
|
@ -31,7 +34,7 @@ class BaseEnvironment(BaseSerialization):
|
|||
"""Implement this to feed a action and then get new observation from the env"""
|
||||
|
||||
@abstractmethod
|
||||
def publish_message(self, message: Message, peekable: bool = True) -> bool:
|
||||
def publish_message(self, message: "Message", peekable: bool = True) -> bool:
|
||||
"""Distribute the message to the recipients."""
|
||||
|
||||
@abstractmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue