cliai 0.1.0

A small Rust library for invoking AI tools through CLI backends like Ollama and GitHub Copilot CLI.
Documentation
/// Input passed to an AI backend.
#[derive(Debug, Clone)]
pub struct GenerateRequest {
    /// The main user prompt.
    pub prompt: String,
    /// Optional higher-level instructions applied before the prompt.
    pub instructions: Option<String>,
}

impl GenerateRequest {
    /// Creates a new request with no instructions.
    pub fn new(prompt: impl Into<String>) -> Self {
        Self {
            prompt: prompt.into(),
            instructions: None,
        }
    }

    /// Adds instructions to the request.
    pub fn with_instructions(mut self, instructions: impl Into<String>) -> Self {
        self.instructions = Some(instructions.into());
        self
    }
}