Skip to content

Commit

Permalink
fix typo in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Jan 16, 2024
2 parents b4e5c3b + 1d6d98d commit ce4f390
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
```
Expand Down
4 changes: 3 additions & 1 deletion src/agentscope/agents/__init__.py
Original file line number Diff line number Diff line change
@@ -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__ = [
Expand All @@ -13,4 +14,5 @@
"RpcAgentBase",
"DialogAgent",
"DictDialogAgent",
"UserAgent",
]

0 comments on commit ce4f390

Please sign in to comment.