← 返回 Skills 市场
tangweigang-jpg

Langchain V1 Toolkit

作者 Tang Weigang · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
62
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install langchain-v1-toolkit
功能描述
LangChain v1:把 LLM、prompt、tool、retriever、parser 暴露为 Runnable,用 `|` 操作符(LCEL)组合成统一 invoke / stream / batch 接口的链。 LangChain v1: exposes LLMs, prompts, tools, r...
使用说明 (SKILL.md)

这个 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

安全使用建议
This skill is a documentation/knowledge pack for LangChain v1 and a finance blueprint; it requires the host to run Python checks and (if missing) pip installs and will read/create files (ZVT_HOME, host_workspace paths). Before installing or invoking: (1) review references/seed.yaml yourself to confirm it doesn't reference unexpected external endpoints or secrets; (2) run it in an isolated environment or container if you are worried about package installs or filesystem writes; (3) be aware the skill will expect access to your Python runtime, ability to run python3 -c commands, and write permissions under your home/workspace; (4) if you want to limit scope, reject or sandbox any automated pip installs and review precondition commands before allowing them to run.
功能分析
Type: OpenClaw Skill Name: langchain-v1-toolkit Version: 0.1.0 The skill bundle is a legitimate development toolkit for building LangChain v1 agents and quantitative trading strategies using the ZVT library. The core logic in `references/seed.yaml` and `SKILL.md` focuses on enforcing architectural constraints, coding standards (LCEL), and financial logic safety (e.g., preventing look-ahead bias and ensuring sell-before-buy ordering). While the bundle includes automated environment checks and package installation recipes (e.g., `pip install zvt`), these actions are strictly aligned with the stated purpose of setting up a quant trading environment and do not exhibit signs of malice, data exfiltration, or harmful prompt injection.
能力标签
cryptorequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description and included seed.yaml indicate an AI-engineering / LangChain v1 knowledge toolkit for building agents and finance workflows; that purpose aligns with the large seed.yaml, intent_router, and preconditions. However, the skill metadata declares no required env vars or binaries while the runtime content expects Python runtime/tools and provider packages (langchain, zvt, partner packages), so the declared requirements understate the actual runtime needs.
Instruction Scope
SKILL.md and seed.yaml instruct the host AI to re-read references/seed.yaml at runtime and to execute precondition check_commands such as python3 -c 'import zvt...' and filesystem checks (ZVT_HOME, write tests). The instructions therefore direct the host to run arbitrary Python commands, check and create files in the host workspace/home, and suggest pip installs. Those actions are within this skill's stated purpose (backtesting / LangChain patterns) but they expand the agent's scope to the host filesystem and environment — something the metadata did not declare explicitly.
Install Mechanism
There is no install spec (instruction-only), which avoids an automated download/execute risk. But the runtime docs and preconditions explicitly instruct to pip install langchain and provider packages if missing. That makes the effective installation manual/host-driven rather than automatic; it's expected but worth noting because the skill instructs host-side package installs.
Credentials
Declared required env vars: none. Yet seed.yaml and preconditions reference environment variables and filesystem state (ZVT_HOME, host_workspace, paths under {host_workspace}, checks that touch ~/.zvt). This is a discrepancy: the skill will read and act on environment variables and file paths even though none are declared. No explicit credential or network exfiltration env vars appear, but the mismatch is a proportionality and transparency concern.
Persistence & Privilege
always:false and no code files means it won't be force-included or install binaries by itself. The execution protocol expects writing to host workspace paths (scripts/, skills/, .trace/) and running write-permission checks in ~/.zvt; these are reasonable for a backtesting tool but do grant the skill the ability to create files on the host when the host follows its instructions. This is expected but should be considered when running on sensitive hosts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install langchain-v1-toolkit
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /langchain-v1-toolkit 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
LangChain v1 (LCEL + create_agent) skill — 51 constraints / 1 fatal. Covers v0→v1 migration traps.
元数据
Slug langchain-v1-toolkit
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Langchain V1 Toolkit 是什么?

LangChain v1:把 LLM、prompt、tool、retriever、parser 暴露为 Runnable,用 `|` 操作符(LCEL)组合成统一 invoke / stream / batch 接口的链。 LangChain v1: exposes LLMs, prompts, tools, r... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 62 次。

如何安装 Langchain V1 Toolkit?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install langchain-v1-toolkit」即可一键安装,无需额外配置。

Langchain V1 Toolkit 是免费的吗?

是的,Langchain V1 Toolkit 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Langchain V1 Toolkit 支持哪些平台?

Langchain V1 Toolkit 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Langchain V1 Toolkit?

由 Tang Weigang(@tangweigang-jpg)开发并维护,当前版本 v0.1.0。

💬 留言讨论