Package | Description | Installation |
---|---|---|
langgraph-prebuilt (part of langgraph ) | Prebuilt components to create agents | pip install -U langgraph langchain |
langgraph-supervisor | Tools for building supervisor agents | pip install -U langgraph-supervisor |
langgraph-swarm | Tools for building a swarm multi-agent system | pip install -U langgraph-swarm |
langchain-mcp-adapters | Interfaces to MCP servers for tool and resource integration | pip install -U langchain-mcp-adapters |
langmem | Agent memory management: short-term and long-term | pip install -U langmem |
agentevals | Utilities to evaluate agent performance | pip install -U agentevals |
create_react_agent
and to view an outline of the corresponding code.
It allows you to explore the infrastructure of the agent as defined by the presence of:
tools
: A list of tools (functions, APIs, or other callable objects) that the agent can use to perform tasks.pre_model_hook
: A function that is called before the model is invoked. It can be used to condense messages or perform other preprocessing tasks.post_model_hook
: A function that is called after the model is invoked. It can be used to implement guardrails, human-in-the-loop flows, or other postprocessing tasks.response_format
: A data structure used to constrain the type of the final output, e.g., a pydantic
BaseModel
.create_react_agent
: