serdes-ai-agent 0.1.5

Agent implementation for serdes-ai
Documentation

serdes-ai-agent

Crates.io Documentation License: MIT

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.