kova-sdk 0.9.0

Async-first Rust library for building LLM-powered agents with tool calling, streaming, MCP, and multi-agent orchestration
Documentation
pub mod agent;
pub mod embedding;
pub mod error;
pub mod mcp;
pub mod models;
pub mod provider;
pub mod streaming;
pub mod telemetry;
pub mod tool;
#[cfg(feature = "tools")]
pub mod tools;

pub use tool::ToolLifecycleHook;
pub use tool::approval::{ApprovalDecision, ToolApprovalHandler};

/// Convenience re-exports for the most commonly used types.
///
/// ```
/// use kova_sdk::prelude::*;
/// ```
pub mod prelude {
    pub use crate::agent::{Agent, AgentBuilder, AgentEvent, AgentResponse};
    pub use crate::embedding::EmbeddingProvider;
    pub use crate::error::{KovaError, ProviderErrorClass};
    pub use crate::models::{
        ContentBlock, ConversationMessage, InferenceConfig, ModelResponse, Role, StopReason,
        StreamEvent, ToolDefinition, ToolResult, UsageStats,
    };
    pub use crate::provider::{LlmProvider, RetryConfig};
    pub use crate::tool::approval::{ApprovalDecision, ToolApprovalHandler};
    pub use crate::tool::registry::ToolRegistry;
    pub use crate::tool::{Tool, ToolLifecycleHook};
    /// Re-exported for `Agent::run_cancellable` / `run_stream_cancellable`.
    pub use tokio_util::sync::CancellationToken;
}