diff --git a/README.md b/README.md index ad9065ec9..227ef5601 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ To simplify the construction of agents communication, AgentScope provides two he ```python from agentscope.pipelines.functional import sequentialpipeline - x3 = sequentialpipeline(operators=[agent1, agent2, agent3], x=input_msg) + x3 = sequentialpipeline([agent1, agent2, agent3], x=input_msg) ``` - **MsgHub**: To achieve a group conversation, AgentScope provides message hub. @@ -213,7 +213,7 @@ To simplify the construction of agents communication, AgentScope provides two he agent2.observe(x1) # The message x1 should be broadcast to other agents agent3.observe(x1) - x2 = agent2(x1) + x2 = agent2(x1) agent1.observe(x2) agent3.observe(x2) ``` diff --git a/src/agentscope/agents/__init__.py b/src/agentscope/agents/__init__.py index b6578c990..14723727c 100644 --- a/src/agentscope/agents/__init__.py +++ b/src/agentscope/agents/__init__.py @@ -1,10 +1,11 @@ # -*- coding: utf-8 -*- """ Import all agent related modules in the package. """ from .agent import AgentBase +from .operator import Operator from .rpc_agent import RpcAgentBase from .dialog_agent import DialogAgent from .dict_dialog_agent import DictDialogAgent -from .operator import Operator +from .user_agent import UserAgent __all__ = [ @@ -13,4 +14,5 @@ "RpcAgentBase", "DialogAgent", "DictDialogAgent", + "UserAgent", ]