协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
agents-and-middleware【开发与工程】Work on the actively maintained LangChain v1 agent package: init_chat_model, create_agent, structured output, tools, middleware, embeddings initialization, provider routing, and agent runtime customization. Use for libs/langchain_v1 agent workflows and route low-level core primitives or provider implementation details to sibling skills.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill for practical work in the actively maintained langchain package around v1 agents, middleware, model initialization, structured output, tools, and embeddings. This guidance is distilled from the LangChain v1 source and tests and is self-contained for future coding agents.
init_chat_model, create_agent, response_format, tool schemas, injected tool runtime, or configurable chat models.langchain v1 layer.langchain_core, use ../core-primitives/SKILL.md.langchain-openai, langchain-anthropic, langchain-ollama, or provider-specific parameters/classes, use ../integrations/SKILL.md.langchain-classic imports, chains, retrievers, or classic agents, use the sibling skill that owns classic APIs instead of rewriting v1 guidance.libs/langchain_v1; its distribution name is langchain and its package imports are langchain.*.langchain/chat_models/base.py, langchain/agents/factory.py, langchain/agents/structured_output.py, langchain/agents/middleware/, langchain/tools/, and langchain/embeddings/base.py.tests/unit_tests/agents, tests/unit_tests/chat_models, tests/unit_tests/tools, and tests/unit_tests/embeddings for expected public behavior.uv from libs/langchain_v1; do not use pip, poetry, or conda directly for this monorepo.From libs/langchain_v1, use targeted package tests when uv is available:
uv run --group test pytest tests/unit_tests/chat_models/test_chat_models.py tests/unit_tests/agents/test_response_format.py tests/unit_tests/tools/test_imports.py tests/unit_tests/embeddings/test_base.py
From this sub-skill directory, use the bundled smoke script with any Python environment that already has langchain installed:
python scripts/agent_import_smoke.py
The smoke script imports public APIs only and does not call providers, networks, shell commands, or external files.
langchain.chat_models, langchain.agents, langchain.agents.middleware, langchain.tools, and langchain.embeddings.langchain core code unless the package metadata intentionally lists them as optional extras.