Skip to main content

Crate agents

Crate agents 

Source
Expand description

Public crate for building typed agents.

agents includes:

  • provider-neutral LLM requests and providers
  • the Agent trait and SessionAgent
  • tool, context, and storage integration
  • agent-side derive macros like #[derive(Agent)] and #[derive(Tool)]

Re-exports§

pub use agent::*;
pub use llm::*;

Modules§

agent
Core agent traits and the default SessionAgent implementation.
llm
Provider-neutral typed APIs for completions, tools, and transcription.

Derive Macros§

Agent
Derives agents::agent::Agent by delegating to an inner field marked with #[agent].
Tool
Derives the typed tool metadata needed by SessionAgent.