langgraph-supervisor
add
, multiply
, divide
)TavilySearch
tool from langchain-tavily
:
pretty_print_messages
helper to render the streamed agent outputs nicelylanggraph-supervisor
create_supervisor
from the prebuilt langgraph-supervisor
library:
create_react_agent
:
Send()
primitive to directly send data to the worker agents during the handoff. See the task delegation example belowtask_description
parameter to the handoff_tool
function.
Send()
primitive in the handoff_tool
. This means that instead of receiving the full supervisor
graph state as input, each worker agent only sees the contents of the Send
payload. In this example, we’re sending the task description as a single “human” message.