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)
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.
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.
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.
All Facts (3)
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.
50%Unverifiedcreate_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.
50%UnverifiedSetting 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.
50%