Przejdź do treści
Biblioteka skilli
AI i agenci · Budowanie i kod

langchain

/langchain

Buduje agentów z gotową architekturą i integracjami dla dowolnego modelu lub narzędzia: agenci wywołujący narzędzia, zmiana dostawców modeli i ustrukturyzowane wyjście.

Repozytorium
docs ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
12
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Buduje agentów z gotową architekturą i integracjami dla dowolnego modelu lub narzędzia: agenci wywołujący narzędzia, zmiana dostawców modeli i ustrukturyzowane wyjście.

Oryginalny opis (EN)

Build agents with a prebuilt architecture and integrations for any model or tool. Use when creating tool-calling agents, switching model providers, or adding structured output.

Jak działa

  1. When to use
  2. When NOT to use
  3. Install
  4. Quick reference
  5. Gotchas
  6. Key documentation
  7. API reference
  8. Related skills
Sekcje z nagłówków SKILL.md, w oryginale · 113 linii, 458 słów
Podgląd SKILL.md
---
name: langchain
description: Build agents with a prebuilt architecture and integrations for any model or tool. Use when creating tool-calling agents, switching model providers, or adding structured output.
license: MIT
compatibility: Python 3.10+, Node.js 22+
metadata:
  author: langchain-ai
  version: "1.0"
---

# LangChain

LangChain is an open-source framework with a prebuilt agent architecture and integrations for any model or tool. Build agents and LLM-powered applications in under 10 lines of code, with integrations for OpenAI, Anthropic, Google, and hundreds more.

## When to use

Use LangChain when you need to:
- **Build tool-calling agents** with `create_agent()` and a prebuilt agent loop
- **Switch model providers** without changing application code via `init_chat_model()`
- **Add structured output** to parse LLM responses into typed objects
- **Integrate with any model or tool** using LangChain's provider packages
- **Use middleware** for cross-cutting concerns like rate limiting and caching

## When NOT to use

- For complex multi-step workflows with custom control flow, use [LangGraph](https://docs.langchain.com/oss/langgraph/overview) instead
- For a batteries-included agent with planning, subagents, and context management, use [Deep Agents](https://docs.langchain.com/oss/deepagents/overview) instead
- LangChain provides the **core building blocks**; LangGraph adds orchestration; Deep Agents adds high-level capabilities on top

## Install

```bash
# Python
pip install -U langchain

# JavaScript/TypeScript
npm install langchain @langchain/core
```

Install a provider integration:

```bash
# Python
pip install -U langchain-openai       # or langchain-anthropic, langchain-google-genai

# JavaScript/TypeScript
npm install @langchain/openai         # or @langchain/anthropic, @langchain/google-genai
```

## Quick reference

### Create an agent

```python
from langchain.agents import create_agent

def get_weather(city: str) -> str:
    """Get weather for a given city."""
    return f"It's always sunny in {city}!"

agent = create_agent(
    model="openai:gpt-5.5",
    tools=[get_weather],
    system_prompt="You are a helpful assistant",
)

result = agent.invoke(
    {"messages": [{"role": "user", "content": "What is the weather in SF?"}]}
)
```

### Initialize a chat model

```python
from langchain.chat_models import init_chat_model

# Switch providers by changing the string
model = init_chat_model("openai:gpt-5.5")
model = init_chat_model("anthropic:claude-opus-4-8")
model = init_chat_model("google_genai:gemini-3.6-flash")
```

### Define a tool

```python
from langchain.tools import tool

@tool
def search(query: str) -> str:
    """Search the web for information."""
    return "search results"
```

## Gotchas

1. **Snake_case tool names**—Tool function names must be valid Python identifiers. Use `get_weather`, not `get-weather`.
2. **Reserved parameters**—Do not name tool parameters `type`, `name`, or `description` as these conflict with the tool schema.
3. **Provider packages**—Models live in separate packages (e.g., `langchain-openai`). The base `langchain` package does not include providers.
4. **Model string format**—Use `"provider:model-name"` format with `init_chat_model()` (e.g., `"openai:gpt-5.5"`).

## Key documentation

- [Overview](https://docs.langchain.com/oss/langchain/overview)—What LangChain is and how to get started
- [Quickstart](https://docs.langchain.com/oss/langchain/quickstart)—Build your first agent
- [Agents](https://docs.langchain.com/oss/langchain/agents)—Prebuilt agent architecture
- [Models](https://docs.langchain.com/oss/langchain/models)—Chat models and provider integrations
- [Tools](https://docs.langchain.com/oss/langchain/tools)—Define and use tools
- [Structured output](https://docs.langchain.com/oss/langchain/structured-output)—Parse LLM responses into typed objects
- [MCP integration](https://docs.langchain.com/oss/langchain/mcp)—Use Model Context Protocol servers as tools

## API reference

For SDK class and method details, use the [LangChain API Reference](https://reference.langchain.com) site:
- Browse: `https://reference.langchain.com/python/langchain-core`
- MCP server: `https://reference.langchain.com/mcp`

## Related skills

- **langgraph**—Low-level orchestration for stateful, durable agent workflows
- **deep-agents**—Batteries-included agent harness built on LangChain
- **langsmith**—Trace, evaluate, and deploy your LangChain agents

Wersje

RepozytoriumWynikLicencja
Ta strona · langchain-ai/docs100MIT
znlgis/opengis-skills100MIT
svngoku/coding-agents-skills100MIT
synthetic-sciences/openscience100Apache-2.0
dhar174/langgraph_system_generator100MIT
claude-dev-suite/claude-dev-suite100MIT
G1Joshi/Agent-Skills100MIT
TerminalSkills/skills98Apache-2.0
magnus919/agent-skills90MIT

Migawka bazy z 28.10.2026 · wersja paczki 658db28e6306 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100langchain-core-workflow-b
    Buduje agentów LangChain z narzędziami do autonomicznego wykonywania zadań, obejmując wywoływanie narzędzi i przepływy decyzyjne.
  • 98langchain-architecture
    Projektuje aplikacje LLM w LangChain: agentów, pamięć i integrację narzędzi według sprawdzonych wzorców.
  • 100build-agents
    Dostarcza domyślne wskazówki budowy agentów AI: aplikacje agentów, agenci wywołujący narzędzia, agenci trwałe, systemy wieloagentowe i agenci zaplanowani.
  • 98langchain-architecture
    Pomaga projektować aplikacje LLM we frameworku LangChain z agentami, pamięcią i integracją narzędzi.
  • 98langchain-architecture
    Pomaga projektować aplikacje LLM we frameworku LangChain z agentami, pamięcią i integracją narzędzi.
  • 98langchain-architecture
    Pomaga projektować aplikacje LLM we frameworku LangChain z agentami, pamięcią i integracją narzędzi.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.