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
- 参考文档references/credentials-and-testing.md7.1 KB
- 参考文档references/model-profiles.md5.2 KB
- 参考文档references/provider-patterns.md8.3 KB
- 参考文档references/troubleshooting.md6.0 KB
- 脚本scripts/partner_package_check.py4.2 KB
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-coreprimitives, use../core-primitives/SKILL.md. - For high-level
langchainv1 agent construction, middleware routing, orinit_chat_modelbehavior 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.mdwhen 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
- Identify the provider package, then work from its package directory:
libs/partners/<provider>. - Inspect
pyproject.toml, thelangchain_<provider>/package root,tests/unit_tests/,tests/integration_tests/, and package-localscripts/before editing. - 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.
- 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.
- Validate narrowly first with package-local
uvcommands whenuvis available; do not usepip,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.pyas 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
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.
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.
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.
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.
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.
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).