원클릭으로
langchain
LangChain framework for building AI agents and LLM applications with tools, memory, and streaming support
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
LangChain framework for building AI agents and LLM applications with tools, memory, and streaming support
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Comprehensive skill framework from obra/superpowers for AI-assisted development workflows, covering planning, implementation, debugging, code review, and more
独立开发者 Web/SaaS 项目专属 Vibe Coding 全流程。Invoke when starting a new web product project to run a complete 14-skill pipeline from idea to launch, with controlled feedback loops.
NestJS best practices and architecture patterns for building production-ready applications. This skill should be used when writing, reviewing, or refactoring NestJS code to ensure proper patterns for modules, dependency injection, security, and performance.
Personal coding conventions and best practices
MUST be used for React tasks. Strongly recommends functional components with Hooks and TypeScript as standard approach. Covers React 19, Next.js, SSR. Load for any React, .tsx files, React Router, Redux, or Vite with React work.
基于 Vue 3 的企业级 UI 组件库,提供 68+ 高质量组件。IMPORTANT: 这是 Ant Design Vue,不是 React 版本。使用 a- 前缀组件(如 a-button, a-table)。
| name | langchain |
| description | LangChain framework for building AI agents and LLM applications with tools, memory, and streaming support |
| version | 1.0.0 |
| license | MIT |
| metadata | {"author":"LangChain","tags":["llm","ai","agent","langchain","python"],"official_docs":"https://docs.langchain.com/oss/python/langchain"} |
LangChain is the easy way to build custom agents and applications powered by LLMs. With under 10 lines of code, you can connect to OpenAI, Anthropic, Google, and more.
create_agent as the unified interface for creating agents| Topic | Description | Reference |
|---|---|---|
| Agents | Core agent architecture with create_agent | agents-basics.md |
| Models | Model integration (OpenAI, Anthropic, etc.) | models-integration.md |
| Messages | Message formats and conversation structure | messages-format.md |
| Tools | Tool definition and dynamic tool selection | agents-tools.md |
| Memory | Short-term and conversation memory | memory-short-term.md |
| Streaming | Streaming output for real-time responses | streaming-output.md |
| Structured Output | Structured data extraction from LLMs | structured-output.md |
| Topic | Description | Reference |
|---|---|---|
| Middleware Overview | Middleware architecture and patterns | middleware-overview.md |
| Human-in-the-Loop | Add human intervention to agents | middleware-human-in-loop.md |
| Topic | Description | Reference |
|---|---|---|
| Prompt Templates | Reusable prompt templates | prompt-templates.md |
| RAG Basics | Retrieval Augmented Generation | rag-basics.md |
| Error Handling | Production error handling patterns | error-handling.md |
from langchain.agents import create_agent
def get_weather(city: str) -> str:
"""Get weather for a given city."""
return f"It's always sunny in {city}!"
agent = create_agent(
model="claude-sonnet-4-6",
tools=[get_weather],
system_prompt="You are a helpful assistant",
)
result = agent.invoke(
{"messages": [{"role": "user", "content": "what is the weather in sf"}]}
)
from langchain.agents import create_agent
from langchain_openai import ChatOpenAI
model = ChatOpenAI(
model="gpt-4",
temperature=0.1,
max_tokens=1000,
timeout=30
)
agent = create_agent(model, tools=[get_weather])
from langchain.agents import create_agent
agent = create_agent(
model="gpt-4",
tools=[get_weather],
streaming=True
)
async for chunk in agent.stream({"messages": [...]}):
print(chunk.content, end="", flush=True)
from pydantic import BaseModel
from langchain.agents import create_agent
class WeatherReport(BaseModel):
city: str
temperature: float
condition: str
agent = create_agent(
model="gpt-4",
output_schema=WeatherReport
)
result = agent.invoke({"messages": [...]})
weather = result.structured_output
from langchain.agents import create_agent
from langchain.tools import tool
from langchain_openai import ChatOpenAI
from langchain_anthropic import ChatAnthropic
from langchain.agents.middleware import (
wrap_model_call,
SummarizationMiddleware,
HumanInTheLoopMiddleware
)