IllyroidCode

langchainLangChain Agent Templates

Python · ZIP
// Code · Intermediate · Free

LangChain Agent Templates

Plug-and-play LangChain starters with tool use, memory, streaming output, and async support for GPT-4 and Claude.

langchainagentspythonFree

Overview

A set of small, focused LangChain templates — each one solves a single common task and can be copied straight into a project.

All templates support streaming and async, and switch between GPT-4 and Claude with one setting.

Key highlights

Tool-using agent template
Conversation memory template
Streaming output template
Async batch processing template
Switch between GPT-4 and Claude
Minimal dependencies

What's inside

Tool agent

An agent that calls your own functions.

Memory chat

A chatbot that remembers the conversation.

Streaming

Token-by-token output for responsive UIs.

Async batch

Processing many requests in parallel.

Retrieval

A simple document Q&A starter.

Configuration

Keys, models and settings in one place.

Tools & technologies

PythonLangChainLangGraphOpenAIAnthropic

Is this for you?

Who it's for

Developers already using or evaluating LangChain.

Before you start

Python and basic LangChain knowledge.