rpc_agent/lib.rs
1//! # rpc-agent
2//!
3//! This crate provides a modular framework for building RPC-based AI agent servers.
4//! It exposes core components for agent management, tool integration, error handling,
5//! and provider abstraction. Use the [`AgentServerBuilder`] to configure and launch
6//! your own agent server with custom tools and providers.
7
8mod agent;
9mod builder;
10mod error;
11mod providers;
12mod tools;
13
14/// Builder for configuring and launching an [`AgentServer`].
15pub use builder::AgentServerBuilder;
16
17/// Wrapper type for integrating tools into the agent server.
18pub use tools::ToolWrapper;
19
20/// Error type used throughout the crate.
21pub use error::Error;
22
23/// API error type used for provider-specific error responses.
24pub use error::ApiError;
25
26/// Main agent server type, responsible for handling requests and managing tools/providers.
27pub use agent::AgentServer;
28
29/// Enum of supported AI providers.
30pub use providers::Providers;