langchain-v1-toolkit

LangChain v1:把 LLM、prompt、tool、retriever、parser 暴露为 Runnable,用 `|` 操作符(LCEL)组合成统一 invoke / stream / batch 接口的链。 LangChain v1: exposes LLMs, prompts, tools, retrievers, and parsers as Runnables composed via the `|` operator (LCEL) into chains with uniform invoke / stream / batch semantics. create_agent returns a LangGraph CompiledStateGraph.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "langchain-v1-toolkit" with this command: npx skills add tangweigang-jpg/langchain-v1-toolkit

这个 skill 适合什么用户?能做哪些任务?

概览

LangChain 是构建 LLM 应用的事实标准 Python 框架(github.com/langchain-ai/langchain)。v1 包(v1.2.15)有意保持精简:核心是 agents.create_agent(返回 LangGraph CompiledStateGraph)、chat_models.init_chat_model 工厂、message types 重导出和 tools/embeddings shim。

历史 Chain / LLMChain / Memory / AgentExecutor 接口已迁到 `langchain-clas...

Doramagic 晶体页: https://doramagic.ai/zh/crystal/langchain-v1-toolkit

知识规模

  • 51 条约束 (1 fatal + 50 non-fatal)
  • 上游源码: langchain-ai/langchain @ commit 87ba30f0
  • 蓝图 ID: finance-bp-132

用法

Host AI(Claude Code / Cursor / OpenClaw)读 references/seed.yaml,按其中的:

  • intent_router 匹配用户意图
  • architecture 理解项目架构
  • constraints 应用 anti-pattern 约束
  • business_decisions 参考核心设计决策

FAQ 摘要

这个 skill 适合什么用户?能做哪些任务?

适合用 LangChain 构建 LLM 应用的工程师:tool-calling agent、结构化输出、RAG pipeline、流式输出、模型 fallback、PII 脱敏等。v1 后 agent 走 LangGraph 路径,旧 AgentExecutor 仍可用但建议迁移。访问 doramagic.ai/r/langchain 查看完整用例。

需要准备什么环境?依赖什么?

Python(具体版本见 langchain_v1/pyproject.toml),pip install langchain 自动带 LangGraph 作为硬运行时依赖。每个 provider 需单独安装 partner 包(如 langchain-openai、langchain-anthropic)。

会踩哪些坑?这个 skill 怎么防护?

本 skill 内置 51 条约束。典型踩坑:(1) BaseMemory 与所有 Conversation*Memory 已 @deprecated,BaseMemory 已从 langchain_core 删除;


完整文档: 见 references/seed.yaml (v6.1 schema). 浏览页: https://doramagic.ai/zh/crystal/langchain-v1-toolkit

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Instructor Structured Output

Instructor:声明 Pydantic BaseModel 即可从 20 个 LLM provider 拿到类型化实例。核心是 monkey-patch(instructor.patch / from_*)拦截 create(),注入 schema-aware kwargs,tenacity 重试 + In...

Registry SourceRecently Updated
490Profile unavailable
Coding

Mcp Python Sdk

MCP Python SDK:Anthropic 主导的 Model Context Protocol 参考实现。2 server 层 + 3 transport + 3 原语 + 4 协议版本 + 50 条约束。 MCP Python SDK: reference Python implementation o...

Registry SourceRecently Updated
530Profile unavailable
Automation

Crewai Multi Agent

CrewAI 多智能体框架:role-goal-backstory 声明智能体,sequential / hierarchical 双流程,ReAct 与 OpenAI native function-calling 双 tool 循环,统一 Memory + 5 个原生 LLM provider + Lit C...

Registry SourceRecently Updated
590Profile unavailable
Automation

Autogen Multi Agent

AutoGen v0.4:asyncio actor-runtime 多智能体框架(autogen-core / autogen-agentchat / autogen-ext 三包)。 AutoGen v0.4: asyncio actor-runtime multi-agent framework (auto...

Registry SourceRecently Updated
540Profile unavailable