DOC: Remove duplicated pretty_print_messages helper from multi-agent supervisor tutorial #827

Closed
opened 2026-02-20 17:41:57 -05:00 by yindo · 0 comments
Owner

Originally created by @srikantoraj on GitHub (Jul 22, 2025).

Issue with current documentation:

In docs/docs/tutorials/multi_agent/agent_supervisor.md (and the parallel example in examples/multi_agent/agent_supervisor.ipynb), the helper

from langchain_core.messages import convert_to_messages
def pretty_print_message(message, indent=False): …
def pretty_print_messages(update, last_message=False): …

is defined twice, back‑to‑back in two consecutive cells. This duplication is unnecessary and may confuse readers.

Idea or request for content:

Remove the second, redundant definition of pretty_print_message/pretty_print_messages so that the tutorial only defines that helper once. No other changes are needed—just delete the duplicate cell and leave the first copy in place.

Originally created by @srikantoraj on GitHub (Jul 22, 2025). ### Issue with current documentation: In [docs/docs/tutorials/multi_agent/agent_supervisor.md](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/multi_agent/agent_supervisor.md#L144-L182) (and the parallel example in examples/multi_agent/agent_supervisor.ipynb), the helper from langchain_core.messages import convert_to_messages def pretty_print_message(message, indent=False): … def pretty_print_messages(update, last_message=False): … is defined twice, back‑to‑back in two consecutive cells. This duplication is unnecessary and may confuse readers. ### Idea or request for content: Remove the second, redundant definition of pretty_print_message/pretty_print_messages so that the tutorial only defines that helper once. No other changes are needed—just delete the duplicate cell and leave the first copy in place.
yindo added the documentation label 2026-02-20 17:41:57 -05:00
yindo closed this issue 2026-02-20 17:41:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#827