llmprogram 0.1.0

A Rust library that provides a structured and powerful way to create and run programs that use Large Language Models (LLMs). It uses a YAML-based configuration to define the behavior of your LLM programs, making them easy to create, manage, and share.
Documentation
pub mod core;
pub mod cli;
pub mod analytics;
pub mod yaml_generator;
pub mod dataset_generator;

pub use crate::core::program::LLMProgram;

#[cfg(test)]
mod tests {
    use std::fs;

    #[test]
    fn test_sentiment_analysis_yaml_exists() {
        assert!(fs::metadata("examples/sentiment_analysis.yaml").is_ok());
    }

    #[test]
    fn test_code_generator_yaml_exists() {
        assert!(fs::metadata("examples/code_generator.yaml").is_ok());
    }

    #[test]
    fn test_email_generator_yaml_exists() {
        assert!(fs::metadata("examples/email_generator.yaml").is_ok());
    }

    #[test]
    fn test_sentiment_inputs_json_exists() {
        assert!(fs::metadata("examples/sentiment_inputs.json").is_ok());
    }

    #[test]
    fn test_sentiment_batch_inputs_json_exists() {
        assert!(fs::metadata("examples/sentiment_batch_inputs.json").is_ok());
    }

    #[test]
    fn test_code_inputs_json_exists() {
        assert!(fs::metadata("examples/code_inputs.json").is_ok());
    }

    #[test]
    fn test_email_inputs_json_exists() {
        assert!(fs::metadata("examples/email_inputs.json").is_ok());
    }

    #[test]
    fn test_examples_readme_exists() {
        assert!(fs::metadata("examples/README.md").is_ok());
    }
}