Agent observability and evaluation, explained
Everything you need to understand agent observability and evaluation.
Featured
How to evaluate AI agents
Evaluate an AI agent by running real tasks several times, grading the final outcome and the steps taken, and tracking reliability with pass^k as well as success.
What is AI agent reliability?
AI agent reliability is how consistently an agent succeeds across repeated runs, rephrased inputs and tool faults. The four dimensions, pass^k and how to measure it.
How to trace AI agents
To trace an AI agent, wrap each task in one root span, record every model call and tool call under it, and carry the trace context across every boundary.
MCP security
MCP security covers the attacks on MCP servers and clients, from tool poisoning to token passthrough, and the controls the spec and OWASP list for each.
Build agents
What are deep agents?
A deep agent is an LLM tool-calling loop plus planning, subagents and a filesystem, so it can work on long tasks. What each part does and when you need it.
AI agent frameworks compared
Nine agent frameworks side by side on license, languages, orchestration, state, human approval and MCP, with AutoGen's archived status called out.
Structured output from LLMs: JSON mode, schemas and what still breaks
Structured output makes an LLM return JSON that matches your schema. OpenAI, Claude and Gemini differ on supported keywords, and valid JSON can still be wrong.
Google ADK vs LangGraph vs OpenAI Agents SDK: how they differ
ADK, LangGraph and the OpenAI Agents SDK compared on workflows, multi-agent design, state, human approval, MCP, models and tracing.
Pydantic AI vs LangChain vs LangGraph: how they differ and which to use
LangChain agents run on LangGraph, so the choice is a typed agent loop (Pydantic AI), a minimal agent harness you extend (LangChain) or a graph you write (LangGraph).
What are agent skills?
Agent skills are folders with a SKILL.md file that an agent loads on demand, so it gets procedures without carrying them in context.
What are subagents?
A subagent is an AI agent that a lead agent calls for one task. It works in its own context window and returns a short result instead of its full work.
What is agent memory? Types, storage and how agents write it
Agent memory is information an agent keeps outside the model's context window and reads back later. The types, where it lives and how it gets written.
What is AGENTS.md?
AGENTS.md is a plain Markdown file at the root of a repository that tells AI coding agents how to build, test and work in the project.
What is DSPy? How it works and how to evaluate it
DSPy is an open-source Python framework, started at Stanford NLP, where you declare tasks as signatures and modules, then optimize them against a metric.
What is an agent harness?
An agent harness is everything in an AI agent except the model: the prompts, tools, sandbox, hooks and checks that turn a model into an agent.
What is an MCP gateway?
An MCP gateway is a service between MCP clients and several MCP servers. What the spec says it must handle, what it adds, and what it cannot fix.
What is LLM model routing?
Model routing sends each request to the model that fits it. How routers decide, what research shows about savings, and where they fail.
LangGraph vs CrewAI vs AutoGen: how they differ and which to use
LangGraph controls flow as a graph, CrewAI pairs role-based Crews with Flows, and AutoGen is archived in favor of Microsoft Agent Framework.
Synthetic data generation with LLMs: methods for training and RAG data
Synthetic data generation uses a model to write training or retrieval data. The main methods, what each was shown to do, and how to avoid model collapse.
What are MCP Apps?
MCP Apps is an official MCP extension that lets a tool return an interactive HTML interface, rendered in a sandboxed iframe inside the chat.
What is Microsoft AutoGen? How it works and how to evaluate it
Microsoft AutoGen is an open-source multi-agent framework that Microsoft has archived in favor of Microsoft Agent Framework. What it is and how to trace it.
RAG chunking strategies: how to split documents for retrieval
Chunking splits documents into pieces a retriever can find. Compare the main strategies, the evidence on each and sensible starting settings.
What are computer use agents?
A computer use agent operates a screen the way a person does, by reading screenshots and sending clicks and keystrokes. How the loop works and where it is risky.
LlamaIndex vs LangChain: how they differ and which to use
LlamaIndex starts from your data (loading, indexing, retrieval). LangChain starts from the agent loop. Both do RAG and agents.
MCP vs A2A: what each protocol does
MCP connects an AI agent to its tools and data. A2A connects one agent to another.
RAG vs fine-tuning: which to use
Use RAG when the model lacks facts, fine-tuning when it lacks consistent behavior. Start with prompts, then add one, and combine them only when evals show you need to.
What are recursive language models?
A recursive language model (RLM) keeps a long prompt in a code environment and calls itself on pieces of it, instead of reading it all in one context window.
What is an LLM gateway?
An LLM gateway is a middleware layer between your app and model providers. What it does per request, what it cannot fix, and when you need one.
AI agent architecture patterns
AI agent architecture is the model, tools, memory and control flow, plus a pattern. Compare single-agent, planning, loop and multi-agent patterns.
What is agentic RAG?
Agentic RAG lets an LLM agent decide when to retrieve, grade what comes back and search again, instead of running one fixed retrieve-then-generate pass.
MCP vs API: how they differ
MCP is not a replacement for APIs. It is a standard way to describe and call them for AI apps.
What is agentic coding?
Agentic coding is software development where an AI agent plans, edits, runs and checks code in a loop while you set the goal and review.
What is LangChain? How it works and how to evaluate it
LangChain is an open-source framework for building agents and LLM apps. Its create_agent runs a model-and-tools loop on LangGraph, with middleware to control it.
What are multi-agent systems?
A multi-agent system is several LLM agents working together on one task. It can beat one agent, but it costs far more tokens and adds failure modes.
What is Google ADK? How it works and how to evaluate it
Google ADK is an open-source, code-first framework for building, evaluating and deploying AI agents, with graph workflows and built-in evals.
What are Semantic Kernel and Microsoft Agent Framework?
Semantic Kernel is Microsoft's SDK for AI agents. Microsoft Agent Framework is its successor, merging Semantic Kernel and AutoGen.
What is agent orchestration?
Agent orchestration coordinates how agents, tools and handoffs run together. Five common patterns exist, and one agent is often enough.
What is CrewAI? How it works and how to evaluate it
CrewAI is an open-source Python framework for multi-agent systems, pairing Crews of role-based agents with Flows that control state and steps.
What is OpenAI Agent Builder? What it does and what replaces it
OpenAI Agent Builder is a visual canvas for agent workflows that OpenAI is shutting down on November 30, 2026. What it does and how to migrate to the Agents SDK.
What is the A2A (Agent2Agent) protocol?
A2A is an open standard that lets independent AI agents discover each other and work on tasks over HTTP, without sharing their internals.
How to build an AI agent, with evals from day one
Build an AI agent by starting with the simplest design that works: a model, tools and a stop condition in a loop. Write 20 to 50 evals before you scale it.
What is LangGraph? How it works and how to evaluate it
LangGraph is LangChain's open-source framework for building long-running, stateful AI agents as graphs of nodes with shared state, persistence and human pauses.
What is OpenAI Agents SDK? How it works and how to evaluate it
The OpenAI Agents SDK is a Python framework for agents, handoffs and guardrails with built-in tracing. How the run loop works, its limits, and how to evaluate it.
Trace agents
Trace vs span
A span is one timed operation, such as a model call. A trace is the tree of spans for one request, and in an LLM app it covers one agent run.
What is LLM tracing?
LLM tracing records one request to an LLM app as a tree of timed spans, one per model call, retrieval or tool call, so you can see what each step did.
OpenTelemetry for LLM apps
How OpenTelemetry's GenAI semantic conventions name model, agent and tool spans, which attributes are opt-in, and what to check before relying on them.
What is OpenTelemetry?
OpenTelemetry is an open source, vendor-neutral standard for generating and exporting traces, metrics and logs. It includes GenAI conventions for LLM and agent spans.
Evaluate agents
How to evaluate RAG systems
Evaluate RAG in two parts: did retrieval find the right passages, and did the model answer from them. Metrics, test sets and fixes for each.
LLM regression testing in CI
LLM regression testing reruns a fixed eval set on every prompt, model or code change in CI and fails the build when scores drop against a baseline.
Online vs offline evaluation for LLM apps
Offline evaluation scores a fixed dataset before release. Online evaluation scores live traffic after it. They catch different failures, so most teams run both.
What is the GAIA benchmark?
GAIA is a benchmark of real-world assistant questions that need browsing, tools and reasoning, scored by exact match on three difficulty levels.
How to detect LLM hallucinations
Detect LLM hallucinations by checking claims against source text, by sampling and comparing answers, or by human review. What each method needs and misses.
What is ARC-AGI? The benchmark, its three versions and how to read a score
ARC-AGI is François Chollet's benchmark of grid puzzles that tests how efficiently AI learns new rules. It has three versions, and the third is interactive.
AIME benchmark for LLMs: what it measures and how to read scores
AIME is a US math contest whose integer-answer problems, 30 a year through 2026, test LLM reasoning. Scores depend on setup and contamination.
Limits and biases of LLM-as-a-judge
An LLM judge can be wrong on reasoning, favor its own text, over-pass answers and score far from humans. The documented limits and what to check.
LLM-as-a-judge vs human evaluation: when to use each
Use code checks first, an LLM judge for volume on subjective criteria, and people for ground truth and high stakes. Check the judge against human labels.
LMArena (now Arena) explained: how its leaderboard ranks models
LMArena (now Arena) ranks models from anonymous pairwise human votes using a Bradley-Terry model. What the score means and where it misleads.
What is a golden dataset?
A golden dataset is a small, expert-reviewed set of inputs with reference answers that you rerun to test every change. How to build and keep one.
What is G-Eval?
G-Eval has an LLM write evaluation steps, then score text against criteria with a probability-weighted rating. How it works and where it falls short.
What is SimpleQA? Measuring factuality
SimpleQA is OpenAI's benchmark of 4,326 short fact questions, graded correct, incorrect or not attempted. How it is built, scored and where it stops.
Agent benchmarks explained: SWE-bench, OSWorld, WebArena, BrowseComp and more
Agent benchmarks score AI agents on tasks like fixing code, using a computer or browsing the web. What each measures, how it is graded, and how to read a score.
How to run human evaluation of LLM outputs
Run human evaluation of LLM outputs by reviewing about 100 real traces, labeling pass or fail, using one domain expert, and checking agreement.
What are LLM hallucinations?
An LLM hallucination is fluent output that is false or unsupported by its input. Types, causes, and what reduces them, from the main surveys and papers.
Agent evaluation metrics
Agent metrics fall into outcome, tool call, trajectory, reliability and efficiency groups. Each group answers a different question and is computed differently.
What is LLM-as-a-judge?
LLM-as-a-judge uses one language model to grade another model's output against a rubric. Formats, known biases, and how to check a judge.
How to choose LLM evaluation tools
Choose an LLM evaluation tool by what it lets you do: review real traces, grow datasets, validate graders, gate releases and score production.
LLM evaluation metrics explained: which to use and when
Pick an LLM evaluation metric by what you have: a reference answer, retrieved context, tests or a rubric. Table of metric families, with the papers behind each.
What is Terminal-Bench? Versions 2.0 to 4.0 and how scores work
Terminal-Bench tests whether AI agents can finish real command-line tasks, scored by tests on the final container state, across versions 2.0, 2.1, 3.0 and 4.0.
How to test AI agents
Test an AI agent in layers: unit-test tools with no model, script the model, mock tools around a live one, then run evals in CI and watch production.
What is tau-bench? Tool-agent-user benchmark and pass^k
tau-bench tests AI agents in simulated customer service chats with tools and policies. See how it scores, what pass^k means and how tau2 and tau3 differ.
How to generate synthetic test data for LLM evals
Synthetic test data for LLM evals is generated inputs used when real traffic is thin. It covers the main methods and checks, and where it misleads.
Inter-annotator agreement and Cohen's kappa
Inter-annotator agreement measures how often labelers agree beyond chance. Cohen's kappa is the standard score, and it is how you check an LLM judge against humans.
What is LiveCodeBench? Scenarios, versions and scoring
LiveCodeBench tests LLMs on new contest problems to limit contamination. See its four scenarios, release versions, how pass@1 works and what Pro adds.
What is LLM evaluation?
LLM evaluation tests whether a model or LLM app gives good outputs, by grading its answers on test cases with code checks, LLM judges or human review.
Monitor in production
MLOps vs LLMOps
MLOps runs the training and serving of your own models. LLMOps runs apps built on a foundation model: prompts, evals, traces and inference cost.
What is LLMOps?
LLMOps is the set of practices for running LLM applications: versioning prompts, evals, tracing, monitoring, cost control and handling model changes.
How to reduce LLM costs: levers, trade-offs and what to track
Seven ways to cut LLM spend: prompt caching, batch APIs, model routing, context trimming, output limits, semantic caching and token tracking.
LLM monitoring: what to track on a production LLM app
Monitor an LLM app on four signals: latency, traffic, errors and saturation, then add token cost, quality scores and model retirement dates.
What is semantic caching?
Semantic caching reuses an LLM answer when a new query means the same as an old one. How it works, where it fails, and what to track.
Data drift vs concept drift in LLM apps
Data drift is a change in what goes into your LLM app; concept drift is a change in what a correct answer is.
Improve prompts and agents
Prompt engineering techniques
Which prompt engineering techniques still work, and which Anthropic, OpenAI and Google now advise against on reasoning models, with a table matching each to a problem.
How to manage prompts in production
Decide where prompts live, what to record with each one, and how to release, trace and roll back prompt changes without redeploying blind.
How to reduce hallucinations in LLM apps
Reduce LLM app hallucinations by fixing the layer that causes them: retrieval, context order, citations, abstention or verification.
What is prompt versioning?
Prompt versioning gives every change to a prompt an identifier and a history, so you can compare versions, trace outputs to them and roll back.
What is context engineering? Techniques and the controls providers ship
Context engineering is choosing what goes into a model's context at each step. Techniques, and the Anthropic, OpenAI and Google controls for each.
How to do error analysis for LLM apps
Error analysis is reading real LLM traces, noting what went wrong, grouping the notes into failure modes and counting them to decide what to fix.
Prompt engineering vs fine-tuning: when to tune
Prompt first and keep an eval set. Fine-tune only when prompts plateau or token cost at scale bites, and check that your provider still offers it.
What is context rot?
Context rot is the drop in an LLM's accuracy and recall as its input grows longer, even when the task stays the same.
Secure and govern
What is an LLM jailbreak?
An LLM jailbreak is an input that gets a model to ignore its safety training and produce content it would refuse. How they work and how to test.
What is automated red teaming?
Automated red teaming uses an attacker model, a target and a scorer to generate and grade attacks at scale. The method families and how to read the scores.
AI agent security
AI agent security protects agents that plan and use tools from hijacking, misuse and data loss. This map pairs OWASP's ten agent risks with controls.
How to red team an LLM application
Red team an LLM app in rounds: pick people and layers, probe open-ended, build a harm list, record each finding, report, then replay fixes as tests.
LLM security risks
LLM security risks are the ways a language model app can leak data, take harmful actions or be abused. OWASP's 2026 list has ten.
AI agent guardrails
AI agent guardrails limit what an agent can do as well as what it says. They combine tool permissions, argument checks, approvals, step limits and sandboxes.
Red teaming vs penetration testing
A pentest tries to break a defined system's security features. A red team emulates an adversary against an organization. AI red teaming also covers harmful output.
OWASP Top 10 for LLM applications
The OWASP Top 10 for LLM applications lists the ten biggest risks in apps built on language models. The 2026 edition reorders the 2025 list and renames one entry.
What is AI agent identity?
AI agent identity is a distinct, verifiable identity for an agent, separate from its user and shared keys, so systems can authenticate it and trace its actions.
What is human-in-the-loop AI?
Human-in-the-loop AI keeps a person in an automated system's workflow to review, correct or approve its outputs.
What is AI red teaming?
AI red teaming is adversarial testing of an AI system to find harmful behavior and vulnerabilities before attackers or users do. It mixes human testers and automation.