Skip to content

Build and run agents you can see, understand and trust.

fix(docs): fix the typos in the docstrings (#919)

qbc5c3a7705c3a9
diff --git a/src/agentscope/pipeline/_msghub.py b/src/agentscope/pipeline/_msghub.py
index d13ae1611..969f1c347 100644
--- a/src/agentscope/pipeline/_msghub.py
+++ b/src/agentscope/pipeline/_msghub.py
@@ -16,7 +16,7 @@ class MsgHub:
Example:
In the following example, the reply message from `agent1`, `agent2`,
- and `agent3` will be broadcasted to all the other agents in the MsgHub.
+ and `agent3` will be broadcast to all the other agents in the MsgHub.
.. code-block:: python
@@ -49,9 +49,9 @@ class MsgHub:
"""Initialize a MsgHub context manager.
Args:
- participants (`list[AgentBase]`):
- A list of agents that participate in the MsgHub.
- announcement (`list[Msg] | Msg | None`):
+ participants (`Sequence[AgentBase]`):
+ A sequence of agents that participate in the MsgHub.
+ announcement (`list[Msg] | Msg | None`):
The message that will be broadcast to all participants when
entering the MsgHub.
enable_auto_broadcast (`bool`, defaults to `True`):