dspy-rs 0.7.3

A DSPy rewrite(not port) to Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub fn get_iter_from_value(
    value: &serde_json::Value,
) -> impl Iterator<Item = (String, serde_json::Value)> {
    value
        .as_object()
        .unwrap()
        .iter()
        .map(|(k, v)| (k.to_string(), v.clone()))
        .collect::<Vec<_>>()
        .into_iter()
}