spec_ai/spec_ai_api/api/mod.rs
1pub mod auth;
2pub mod graph_handlers;
3pub mod handlers;
4pub mod mesh;
5pub mod middleware;
6pub mod models;
7/// REST API and WebSocket server for programmatic agent access
8///
9/// This module provides:
10/// - REST endpoints for agent interaction
11/// - WebSocket streaming for real-time responses
12/// - Bearer token authentication with optional user credentials
13/// - Mandatory TLS with self-signed certificates
14/// - JSON request/response format
15pub mod server;
16pub mod sync_handlers;
17pub mod tls;
18pub use crate::spec_ai_core::sync;
19
20pub use auth::{AuthService, TokenRequest, TokenResponse};
21pub use models::{ErrorResponse, QueryRequest, QueryResponse, StreamChunk};
22pub use server::{ApiConfig, ApiServer};
23pub use tls::{CertificateInfo, TlsConfig};