8 releases
| 0.2.6 | Feb 20, 2026 |
|---|---|
| 0.2.5 | Feb 17, 2026 |
| 0.1.5 | Jan 27, 2026 |
#1825 in Development tools
299 downloads per month
Used in 8 crates
(2 directly)
715KB
17K
SLoC
serdes-ai-output
Output schema validation and structured output support for serdes-ai
This crate provides structured output support for SerdesAI agents:
Outputtrait 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