Package | Description | Installation |
---|---|---|
langgraph | Prebuilt components to create agents | npm install @langchain/langgraph @langchain/core |
langgraph-supervisor | Tools for building supervisor agents | npm install @langchain/langgraph-supervisor |
langgraph-swarm | Tools for building a swarm multi-agent system | npm install @langchain/langgraph-swarm |
langchain-mcp-adapters | Interfaces to MCP servers for tool and resource integration | npm install @langchain/mcp-adapters |
agentevals | Utilities to evaluate agent performance | npm install agentevals |
createReactAgent
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.preModelHook
: A function that is called before the model is invoked. It can be used to condense messages or perform other preprocessing tasks.postModelHook
: 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.responseFormat
: A data structure used to constrain the type of the final output (via Zod schemas).createReactAgent
: