vv-agent 0.1.3

VectorVein agent runtime, SDK, CLI, tools, and workspace backends
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::collections::BTreeMap;

use serde::Serialize;
use serde_json::Value;

pub type Metadata = BTreeMap<String, Value>;
pub type ToolArguments = BTreeMap<String, Value>;
pub type ToolSchema = Value;

pub fn json_value_from_serializable<T: Serialize>(value: &T) -> Value {
    serde_json::to_value(value).unwrap_or(Value::Null)
}