traiy_core 0.0.13

An utility to serve AI suggestions according to user-provided guidelines and (optionally) context
Documentation
1
2
3
4
5
6
7
8
9
use anyhow::Result;
use log::debug;
use std::{fs, path::PathBuf};

pub fn read_csv(path: &PathBuf) -> Result<String> {
    debug!("Reading file from path: {:?}", path);
    let content = fs::read_to_string(path)?;
    Ok(content)
}