Toolverse
All skills

langgraph

by davila7

Expert in LangGraph - the production-grade framework for building stateful, multi-actor AI applications. Covers graph construction, state management, cycles and branches, persistence with checkpointers, human-in-the-loop patterns, and the ReAct agent pattern. Used in production

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
davila7
Category
Testing
Views
44

About this skill

Expert in LangGraph - the production-grade framework for building stateful, multi-actor AI applications. Covers graph construction, state management, cycles and branches, persistence with checkpointers, human-in-the-loop patterns, and the ReAct agent pattern. Used in production at LinkedIn, Uber, and 400+ companies. This is LangChain's recommended approach for building agents. Use when: langgraph, langchain agent, stateful agent, agent graph, react agent.

How to use

  1. Zainstaluj wymagane pakiety: Python 3.9+, langgraph oraz dostęp do API modelu (OpenAI, Anthropic lub inny). Upewnij się, że masz klucze dostępu do wybranego dostawcy LLM.

  2. Zdefiniuj stan agenta jako TypedDict z polami, które będą przechowywać wiadomości i dane aplikacji. Użyj reducera add_messages, aby automatycznie dołączać nowe wiadomości zamiast je nadpisywać.

  3. Utwórz narzędzia (tools) za pomocą dekoratora @tool, opisując ich funkcjonalność. Każde narzędzie powinno mieć jasny opis i zwracać string z wynikami.

  4. Skonstruuj graf agenta przy użyciu StateGraph, definiując węzły (nodes) dla logiki agenta i narzędzi, oraz krawędzie (edges) określające przepływ sterowania. Dodaj warunkowe routing do wyboru ścieżki na podstawie stanu.

  5. Skonfiguruj checkpointer do persystencji stanu między wywołaniami, jeśli potrzebujesz przywrócić sesję agenta. To szczególnie ważne w środowisku produkcyjnym.

  6. Uruchom agenta przez invoke() lub stream(), przekazując wiadomość początkową. Agent będzie iteracyjnie wywoływać narzędzia, aktualizować stan i zwracać wyniki aż do osiągnięcia warunku końcowego.

Related skills

langchain

by zechenzhangAGI

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering

Testing
21123

wcag-audit-patterns

by wshobson

Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.

Testing
1893

lean4-theorem-proving

by cameronfreer

Use when developing Lean 4 proofs, facing type class synthesis errors, managing sorries/axioms, or searching mathlib - provides build-first workflow, instance management patterns (haveI/letI), and domain-specific tactics

Testing
9108

textual

by KyleKing

Expert guidance for building TUI (Text User Interface) applications with the Textual framework. Invoke when user asks about Textual development, TUI apps, widgets, screens, CSS styling, reactive programming, or testing Textual applications.

Testing
69192

backtesting-frameworks

by wshobson

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

Testing
12105

webapp-testing

by anthropics

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

Testing
130255