kandil_code 2.1.1

Intelligent development platform (CLI + TUI + Multi-Agent System) with cross-platform AI model benchmarking, system diagnostics, and advanced development tools
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Common traits for Kandil Code
//!
//! Contains shared traits that are used across different modules.

use crate::errors::LocalModelError;
use async_trait::async_trait;

#[async_trait]
pub trait AIProvider: Send + Sync {
    async fn complete(&self, prompt: &str) -> Result<String, LocalModelError>;
    async fn is_available(&self) -> bool;
    async fn name(&self) -> String;
}