Agent Frameworks — Agent Reference

LangGraph, CrewAI, AutoGen, LlamaIndex, and the Vercel AI SDK — how Claude plugs into agentic systems.

How do you use Claude with LangGraph?

To use Claude with LangGraph, install the '@langchain/anthropic' integration package, initialize ChatAnthropic with your target...

Last verified: July 2026

How do you set Claude as the LLM in CrewAI?

To configure CrewAI to use Claude, initialize an LLM class instance using CrewAI's library, passing the model identifier 'anthr...

Last verified: July 2026

How do you integrate Claude with AutoGen?

To use Claude in AutoGen, configure the LLM configuration dictionary with API key credentials and set 'api_type' to 'anthropic'.

Last verified: July 2026

What is the Anthropic SDK for Python and how do you install it?

The Anthropic Python SDK is the official package for interacting with Claude. Install it using pip: 'pip install anthropic'.

Last verified: July 2026

How do you use Claude with LangChain?

To use Claude in LangChain, install the '@langchain/anthropic' package (JS/TS) or 'langchain-anthropic' (Python), and initializ...

Last verified: July 2026

What agent loop patterns work well with Claude?

Claude excels in ReAct (Reasoning and Acting) loops, Plan-and-Solve patterns, and multi-agent reflection loops due to its stron...

Last verified: July 2026

How do you use Claude with LlamaIndex?

To use Claude with LlamaIndex, install 'llama-index-llms-anthropic', initialize the Anthropic class model, and configure it as ...

Last verified: July 2026

How do you use Claude with the Vercel AI SDK?

To integrate Claude in the Vercel AI SDK, install '@ai-sdk/anthropic', import 'anthropic', and invoke target models via 'genera...

Last verified: July 2026

How do you build a ReAct agent loop manually with Claude?

Build a manual ReAct loop by creating a while-loop that passes tools, reads Claude's tool_use calls, executes the matching code...

Last verified: July 2026

How do you handle session state and memory persistence for agents?

Store conversation history in a database keyed by session ID, load recent turns during requests, and summarize old messages to ...

Last verified: July 2026

Common questions

How do you use Claude with LangGraph?

To use Claude with LangGraph, install the '@langchain/anthropic' integration package, initialize ChatAnthropic with your target model string, and bind it to your graph nodes.

How do you set Claude as the LLM in CrewAI?

To configure CrewAI to use Claude, initialize an LLM class instance using CrewAI's library, passing the model identifier 'anthropic/claude-3-5-sonnet-20241022', and assign it to your agents.

How do you integrate Claude with AutoGen?

To use Claude in AutoGen, configure the LLM configuration dictionary with API key credentials and set 'api_type' to 'anthropic'.

What is the Anthropic SDK for Python and how do you install it?

The Anthropic Python SDK is the official package for interacting with Claude. Install it using pip: 'pip install anthropic'.

How do you use Claude with LangChain?

To use Claude in LangChain, install the '@langchain/anthropic' package (JS/TS) or 'langchain-anthropic' (Python), and initialize the ChatAnthropic model class.