Toolverse
All skills

langsmith-fetch

by ComposioHQ

Debug LangChain and LangGraph agents by fetching execution traces from LangSmith Studio. Use when debugging agent behavior, investigating errors, analyzing tool calls, checking memory operations, or examining agent performance. Automatically fetches recent traces and analyzes

Installation

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

Installation

Quick info

Category
Testing
Views
6

About this skill

Debug LangChain and LangGraph agents by fetching execution traces from LangSmith Studio. Use when debugging agent behavior, investigating errors, analyzing tool calls, checking memory operations, or examining agent performance. Automatically fetches recent traces and analyzes execution patterns. Requires langsmith-fetch CLI installed.

How to use

  1. Zainstaluj langsmith-fetch za pomocą pip install langsmith-fetch w swoim środowisku Python.

  2. Skonfiguruj zmienne środowiskowe: ustaw LANGSMITH_API_KEY na swój klucz API z LangSmith oraz LANGSMITH_PROJECT na nazwę projektu, który chcesz debugować. Możesz zweryfikować konfigurację poleceniami echo $LANGSMITH_API_KEY i echo $LANGSMITH_PROJECT.

  3. Aktywuj umiejętność, gdy pytasz o debugowanie agenta — na przykład "Debug mój agent", "Co się stało?", "Pokaż mi ostatnie ślady" lub "Sprawdź błędy".

  4. Wykonaj polecenie langsmith-fetch traces --last-n-minutes 5 --limit 5 --format pretty, aby pobrać i wyświetlić ostatnie ślady z ostatnich 5 minut w czytelnym formacie.

  5. Przeanalizuj raport, który zawiera liczbę znalezionych śladów, status każdego (sukces lub błąd), nazwy wywoływanych narzędzi, czasy wykonania oraz zużycie tokenów.

  6. Na podstawie wyników zidentyfikuj problemy — błędy połączenia, nieudane wywołania narzędzi lub anomalie w wydajności — i podejmij odpowiednie działania naprawcze.

Related skills