Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS: Fixed small errors in the text and made code format more consistent #5664

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@
"The group chat manager's constructor takes a list of participants' topic types\n",
"as an argument.\n",
"To prompt the next speaker to work, \n",
"the it publishes a `RequestToSpeak` message to the next participant's topic.\n",
"the `GroupChatManager` agent publishes a `RequestToSpeak` message to the next participant's topic.\n",
"\n",
"In this example, we also make sure the group chat manager always picks a different\n",
"participant to speak next, by keeping track of the previous speaker.\n",
Expand Down Expand Up @@ -457,7 +457,7 @@
"source": [
"## Creating the Group Chat\n",
"\n",
"To set up the group chat, we create an {py:class}`~autogen_core.SingleThreadedAgentRuntime`\n",
"To set up the group chat, we create a {py:class}`~autogen_core.SingleThreadedAgentRuntime`\n",
"and register the agents' factories and subscriptions.\n",
"\n",
"Each participant agent subscribes to both the group chat topic as well as its own\n",
Expand Down Expand Up @@ -539,7 +539,9 @@
"user_agent_type = await UserAgent.register(\n",
" runtime,\n",
" user_topic_type,\n",
" lambda: UserAgent(description=user_description, group_chat_topic_type=group_chat_topic_type),\n",
" lambda: UserAgent(\n",
" description=user_description,\n",
" group_chat_topic_type=group_chat_topic_type),\n",
")\n",
"await runtime.add_subscription(TypeSubscription(topic_type=user_topic_type, agent_type=user_agent_type.type))\n",
"await runtime.add_subscription(TypeSubscription(topic_type=group_chat_topic_type, agent_type=user_agent_type.type))\n",
Expand Down