---
title: RELKIT_AGENT_OUTPUT_VALIDATION
description: "Agent output is invalid."
pagination: false
search:
  keywords: [RELKIT_AGENT_OUTPUT_VALIDATION]
sidebar:
  icon: triangle-alert
---

{/* Generated by apps/docs/scripts/generate.ts. Do not edit. */}

**Agent output is invalid.**

## What happened

The agent's final answer did not match its output schema.

## What to do

Make the output schema and its descriptions clearer in the agent's instructions, or loosen the schema if the answer is acceptable.

Reported by `@relkit/langchain`, `relkit/agent-adapters`, `relkit/diagnostics`.

See [all error codes](/docs/errors).
