[KongchangAI]
Productlanggraph-supervisor create_supervisor

create_supervisor

A factory function provided by the langgraph-supervisor library that attaches one or more worker agents under a central supervisor with a single line of code, automatically generating routing logic, a handoff state machine, and a message-passing pipeline.

Timeline (last 90 days)

Oct 14

The default behavior of LangGraph create_supervisor is that the Supervisor is re-invoked once after each worker completes, so if N workers are dispatched in sequence, the Supervisor runs N+1 times.

Unverified50%
Oct 14

create_supervisor is a factory function provided by the langgraph-supervisor library that can automatically generate routing logic, the handoff state machine, and the message-passing pipeline, and its default parameters (such as output_mode="last_message", add_handoff_messages=True) aim for general usability rather than cost optimality.

Unverified50%
Oct 14

Setting add_handoff_messages=False and add_handoff_back_messages=False in create_supervisor removes the paired handoff/return handoff messages from the history, thereby reducing Token consumption.

Unverified50%

All Facts (3)

Source Articles