langchain-fundamentals
<create_agent>
Creating Agents with create_agent
create_agent() is the recommended way to build agents. It handles the agent loop, tool execution, and state management.
Agent Configuration Options
| Parameter | Purpose | Example |
|---|---|---|
model |
LLM to use | "anthropic:claude-sonnet-4-5" or model instance |
tools |
List of tools | [search, calculator] |
system_prompt / systemPrompt |
Agent instructions | "You are a helpful assistant" |
checkpointer |
State persistence | MemorySaver() |
middleware |
Processing hooks | [HumanInTheLoopMiddleware] (Python) / [humanInTheLoopMiddleware({...})] (TypeScript) |
| </create_agent> |
More from langchain-ai/skills-benchmarks
react-components
Modern React component patterns with hooks and TypeScript
34api-docs
OpenAPI documentation and REST API design patterns
22langsmith-trace
INVOKE THIS SKILL when working with LangSmith tracing OR querying traces. Covers adding tracing to applications and querying/exporting trace data. Uses the langsmith CLI tool.
22testing-patterns
Unit testing and integration testing best practices
22langchain-rag
INVOKE THIS SKILL when building ANY retrieval-augmented generation (RAG) system. Covers document loaders, RecursiveCharacterTextSplitter, embeddings (OpenAI), and vector stores (Chroma, FAISS, Pinecone).
22langgraph-fundamentals
INVOKE THIS SKILL when writing ANY LangGraph code. Covers StateGraph, state schemas, nodes, edges, Command, Send, invoke, streaming, and error handling.
22