prompt_graph_core/
lib.rs

1extern crate protobuf;
2
3use crate::proto::{ChangeValue, Path, SerializedValue};
4use crate::proto::serialized_value::Val;
5pub mod graph_definition;
6pub mod execution_router;
7pub mod utils;
8pub mod templates;
9pub mod proto;
10pub mod build_runtime_graph;
11
12
13/// Our local server implementation is an extension of this. Implementing support for multiple
14/// agent implementations to run on the same machine.
15pub fn create_change_value(address: Vec<String>, val: Option<Val>, branch: u64) -> ChangeValue {
16    ChangeValue{
17        path: Some(Path {
18            address,
19        }),
20        value: Some(SerializedValue {
21            val,
22        }),
23        branch,
24    }
25}