Logo: Llm Observability

Llm Observability

Communautéit
nahid-sparktales
llm-observability

See what an agent actually did — one trace per run with nested model, tool and retrieval spans, token and latency accounted per step, and failures clustered by mechanism instead of read one at a time. Use when an agent misbehaves in ways you cannot reproduce, when cost or latency is unexplained, when "it sometimes fails" is the whole bug report, or before writing evals when you do not yet know which failures exist. Not for judging whether an output is correct (agent-evals), and not a replacement for the application's own monitoring.

Iwwersiicht

Editeurnahid-sparktales
Repositoryagent-dispatcher
Skill-Nummllm-observability
Stären
58
Forks
5
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    nahid-sparktales huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Llm Observability an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/ai/llm-observability
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/ai/llm-observability .claude/skills/llm-observability
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Llm Observability an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Llm Observability automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Llm Observability net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

LLM observability

An agent run is a tree of decisions, most of which nobody saw. Without a trace you are left re-running the prompt and hoping the failure happens again while you watch.

When this fires

A failure that will not reproduce, a cost or latency number nobody can account for, a "sometimes" bug, or the start of eval work where the failure modes are still unknown. It does not fire for a single deterministic call whose input and output you already hold.

Procedure

  1. State the question first. "Why did run X do Y", "where is the cost going", "which failures share a cause". Instrumentation added without a question becomes expensive noise nobody reads.
  2. One trace per run, nested by causality. The run is the root; each model call, tool call, retrieval and retry is a child span in the place it actually happened. A flat log of lines loses the one thing you need — which step caused which.
  3. Record per span what cannot be reconstructed afterwards: model id, prompt or system-prompt version, sampling parameters, input and output token counts, stop reason, tool name and arguments, result size, error class, retry index, cache hit, and the latency of that span alone. If the project already has a tracing library, use it rather than inventing a format; check its current API rather than recalling it.
  4. Give every run an id the user can quote. Surface it in the UI, the log line and the error message, so a report maps to a trace instead of to a time range and a guess.
  5. Redact at the boundary, before anything leaves the process. Prompts, retrieved documents and tool arguments carry user data, credentials and PII. Decide per field: stored in full, hashed, truncated or dropped. Sending raw prompts to a third-party backend is a data-export decision — it stops and asks rather than being enabled as a default.
  6. Account tokens where they are spent. Per run, then per step. The useful unit is cost per run and per step, not per token; the largest line is usually conversation history re-sent each turn, retrieved context, or retries nobody counted.
  7. Split latency before attributing it. Time to first token, time in the model, time in tools, time waiting on retries and rate limits. An agent's slow tail is normally one step's worst case plus a retry, and the aggregate hides both.
  8. Sample deliberately and say how. Keep every failure; keep a stated fraction of successes. Sampling by what looked interesting produces a corpus that confirms whatever you suspected.
  9. Cluster failures rather than reading them individually. Group by error class, failing tool, stop reason (length cap, refusal, parse failure, tool error), step index and prompt version. Then read a few from each cluster. Name each cluster by mechanism — "the model emits prose around the JSON when the retrieved chunk is empty" — not by symptom.
  10. Reproduce from the trace. Replay the recorded inputs into the same configuration. If the trace does not contain enough to replay, that gap is the finding: fix the instrumentation before theorising about the bug.
  11. Hand the clusters to evals. Each named mechanism becomes cases in the eval suite. A cluster you merely explained will come back.
  12. Propose thresholds; do not arm them. Error rate, p95 latency and cost per run are worth alerting on, but creating alert rules, dashboards or retention settings changes shared production configuration — write the proposed thresholds and ask before creating them.

Checklist

  • The question the instrumentation answers is written down
  • Runs produce one nested trace, not a flat log
  • Spans carry model, prompt version, tokens, stop reason, tool arguments, retries, errors
  • A run id is visible wherever a user or log can quote it
  • Redaction decided per field, with any third-party export raised rather than assumed
  • Tokens and cost attributed per step, not just per run
  • Latency split into first-token, model, tool and retry time
  • Sampling policy stated; all failures retained
  • Failures clustered and each cluster named by mechanism
  • At least one failure replayed from its trace

Failure handling

  • The trace cannot explain the run — a field is missing. Add it and wait for the next occurrence; do not close the bug with the most plausible story.
  • Nothing reproduces on replay — check what the replay did not restore: retrieval results, tool responses, time, sampling seed, conversation state. An unexplained non-reproduction is a finding, not a fix.
  • Cost jumped with no code change — look at context size and retry counts before the model. Growing history and a silently retrying step are the usual causes.
  • One cluster dominates everything — fix it and re-cluster. The second-largest cause is routinely invisible underneath the first.
  • No tracing backend available — instrument to structured local logs with the same span fields and say so. Report that production behaviour was not observed; do not describe local runs as production evidence.

Evidence to report

Quote run ids and the span path that led to the failure. Give the cluster table: mechanism, share of failures, the sample size it was computed from, and the window it covers. Give token and latency numbers per step with their units, not a total with an adjective. Say which conclusions came from observed traces and which from a replayed run, and name the failures still unexplained — an unexplained cluster reported as unexplained is a result; one quietly dropped is not.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Llm Observability?

See what an agent actually did — one trace per run with nested model, tool and retrieval spans, token and latency accounted per step, and failures clustered by mechanism instead of read one at a time. Use when an agent misbehaves in ways you cannot reproduce, when cost or latency is unexplained, when "it sometimes fails" is the whole bug report, or before writing evals when you do not yet know which failures exist. Not for judging whether an output is correct (agent-evals), and not a replacement for the application's own monitoring.

Firwat Llm Observability op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Llm Observability besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Llm Observability an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/ai/llm-observability an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Llm Observability benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Llm Observability benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Llm Observability domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Llm Observability gratis?

Jo. nahid-sparktales huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇