vv-agent 0.2.0

VectorVein agent runtime, SDK, CLI, tools, and workspace backends
Documentation
1
2
3
4
5
6
7
8
use std::path::Path;

use crate::skills::errors::SkillError;

pub(super) fn read_utf8_lossy(path: &Path) -> Result<String, SkillError> {
    let bytes = std::fs::read(path)?;
    Ok(String::from_utf8_lossy(&bytes).into_owned())
}