#json-schema #schema-validation #llm #validation

serdes-ai-output

Output schema validation and structured output support for serdes-ai

8 releases

0.2.6 Feb 20, 2026
0.2.5 Feb 17, 2026
0.1.5 Jan 27, 2026

#1825 in Development tools

Download history 5/week @ 2026-01-14 162/week @ 2026-01-21 161/week @ 2026-01-28 28/week @ 2026-02-04 43/week @ 2026-02-11 51/week @ 2026-02-18 73/week @ 2026-02-25 22/week @ 2026-03-04 66/week @ 2026-03-11 6/week @ 2026-03-18 23/week @ 2026-03-25 166/week @ 2026-04-01 95/week @ 2026-04-08

299 downloads per month
Used in 8 crates (2 directly)

MIT license

715KB
17K SLoC

serdes-ai-output

Crates.io Documentation License: MIT

Output schema validation and structured output support for serdes-ai

This crate provides structured output support for SerdesAI agents:

  • Output trait for types that can be extracted from LLM responses
  • JSON schema generation for output types
  • Validation and parsing utilities
  • Integration with serde

Installation

[dependencies]
serdes-ai-output = "0.1"

Usage

use serdes_ai_output::Output;
use serdes_ai_macros::Output;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Output)]
struct PersonInfo {
    name: String,
    age: u32,
}

let agent = Agent::new(model)
    .output_type::<PersonInfo>()
    .build();

Part of SerdesAI

This crate is part of the SerdesAI workspace.

For most use cases, you should use the main serdes-ai crate which re-exports these types.

License

MIT License - see LICENSE for details.

Dependencies

~13–21MB
~285K SLoC