AGENT SKILL

integrations

Work on LangChain partner integration packages under libs/partners and provider model-profile data: package metadata, provider clients, chat/LLM/embedding/vector store classes, credentials, tests, cassettes, optional dependencies, and profile refresh workflows.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
integrations
license
MIT
metadata
{ "disco-role": "operating" }
description
Work on LangChain partner integration packages under libs/partners and provider model-profile data: package metadata, provider clients, chat/LLM/embedding/vector store classes, credentials, tests, cassettes, optional dependencies, and profile refresh workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Integrations

Use this sub-skill for practical work on LangChain-maintained partner packages and provider model-profile data. It covers provider-specific packages such as OpenAI, Anthropic, Ollama, Qdrant, Chroma, DeepSeek, Fireworks, Groq, Hugging Face, MistralAI, Nomic, Perplexity, OpenRouter, xAI, and Exa.

When to Use

  • The user asks to add, change, or debug a provider package under libs/partners/<provider>.
  • The work touches provider chat models, LLMs, embeddings, vector stores, retrievers, tools, provider clients, middleware, output parsers, optional dependencies, credentials, or environment-variable handling.
  • The user asks about package-local pyproject.toml, extras/dependency groups, import/version scripts, provider-specific unit or integration tests, VCR/cassette isolation, or model-profile refresh for provider data directories.
  • The user needs safe validation that avoids network calls by default and escalates only when credentials, services, and permission are available.

Route Elsewhere

  • For package-agnostic langchain-core primitives, use ../core-primitives/SKILL.md.
  • For high-level langchain v1 agent construction, middleware routing, or init_chat_model behavior outside a provider package, use ../agents-and-middleware/SKILL.md.
  • For monorepo-wide package metadata, CI labels, release wiring, contributor conventions, or root development workflow, use ../monorepo-development/SKILL.md.
  • For implementing shared standard-test suites or model-profile CLI internals, route to ../testing-and-profiles/SKILL.md when that sibling is present; this sub-skill only covers partner-side usage and provider data refresh.

Reference Map

  • Start with references/provider-patterns.md for partner package layout, representative public classes, dependency patterns, source/test locations, edit workflows, and validation signals.
  • Use references/credentials-and-testing.md for API keys, local service checks, no-network unit tests, integration-test skip conditions, VCR cassette handling, and OpenAI Codex cassette safety.
  • Use references/model-profiles.md for provider profile data directories, langchain-profiles refresh, augmentation files, generated profile diffs, and profile drift review.
  • Use references/troubleshooting.md for missing optional SDKs, credential failures, cassette isolation, model-profile drift, vector store service availability, and provider response/tool-call shape mismatches.
  • Run scripts/partner_package_check.py for a read-only metadata/layout check of a partner package when a Python interpreter is available.

Fast Workflow

  1. Identify the provider package, then work from its package directory: libs/partners/<provider>.
  2. Inspect pyproject.toml, the langchain_<provider>/ package root, tests/unit_tests/, tests/integration_tests/, and package-local scripts/ before editing.
  3. Keep provider-specific behavior in the partner package. Shared interfaces, message schemas, callbacks, base vector-store contracts, and standard-test framework changes belong to sibling skills.
  4. Add deterministic unit tests for new behavior. Network-backed tests must be opt-in, credential-gated, and isolated from default no-network unit test runs.
  5. Validate narrowly first with package-local uv commands when uv is available; do not use pip, poetry, conda, or ad-hoc virtual environments for this monorepo.

Safe Validation

From a partner package directory, prefer targeted checks such as:

uv run --group test pytest tests/unit_tests/test_imports.py
uv run --group test pytest tests/unit_tests/test_chat_models.py
uv run --group test pytest tests/unit_tests/test_embeddings.py
uv run --group test pytest tests/unit_tests/test_vectorstores.py
uv run --group lint python scripts/check_imports.py $(find langchain_* -name '*.py')
uv run python scripts/check_version.py

Adjust test filenames to the package. Some packages use make test, make check_imports, make check_version, make lint_package, or make type; run these from the package directory only after confirming the package Makefile supports them. Skip network-heavy integration tests unless the user explicitly provides credentials or a local service and asks for those checks.

For a safe metadata/layout check that does not import provider SDKs or contact services:

python skills/langchain/sub-skills/integrations/scripts/partner_package_check.py libs/partners/openai

Guardrails

  • Preserve public provider class signatures and exported names unless the user explicitly accepts a breaking change.
  • Do not add a provider SDK dependency to an unrelated package; partner SDKs belong in that partner package's metadata.
  • Do not run credentialed examples, cassette recording, vector database services, or live provider calls without explicit user permission.
  • Do not manually edit generated _profiles.py as the primary fix for profile drift; refresh through the model-profile workflow and review the generated diff.
  • Do not link runtime instructions to source checkout docs, examples, or scripts; use the bundled references and scripts in this sub-skill.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351