8 releases
| 0.2.6 | Feb 20, 2026 |
|---|---|
| 0.2.5 | Feb 17, 2026 |
| 0.1.5 | Jan 27, 2026 |
#1308 in Machine learning
132 downloads per month
Used in 5 crates
(3 directly)
1.5MB
32K
SLoC
serdes-ai-agent
Agent implementation for serdes-ai
This crate provides the core Agent type - the main abstraction for interacting with LLMs in SerdesAI.
Features
- Generic
Agent<D, O>type parameterized by dependencies and output - Builder pattern for agent construction
- Run context for dependency injection
- Support for tools, system prompts, and structured output
Installation
[dependencies]
serdes-ai-agent = "0.1"
Usage
use serdes_ai_agent::{Agent, AgentBuilder};
let agent = Agent::new(model)
.system_prompt("You are helpful.")
.build();
let result = agent.run("Hello!", ()).await?;
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
~16–26MB
~378K SLoC