cliai 0.1.0

A small Rust library for invoking AI tools through CLI backends like Ollama and GitHub Copilot CLI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Text returned by an AI backend.
#[derive(Debug, Clone)]
pub struct GenerateResponse {
    /// Generated text content.
    pub text: String,
}

impl GenerateResponse {
    /// Creates a new response with the given text.
    pub fn new(text: impl Into<String>) -> Self {
        Self { text: text.into() }
    }
}