spec-ai-api 0.4.15

HTTP API for spec-ai framework
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod handlers;
pub mod mesh;
pub mod middleware;
pub mod models;
/// REST API and WebSocket server for programmatic agent access
///
/// This module provides:
/// - REST endpoints for agent interaction
/// - WebSocket streaming for real-time responses
/// - API key authentication
/// - JSON request/response format
pub mod server;
pub mod sync_handlers;
pub use spec_ai_core::sync;

pub use models::{ErrorResponse, QueryRequest, QueryResponse, StreamChunk};
pub use server::{ApiConfig, ApiServer};