brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
agents-and-middlewareWork 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.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.