harn-vm 0.10.18

Async bytecode virtual machine for the Harn programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub(super) fn append_finalized_marker(
    session_id: &str,
    final_status: &str,
    stop_reason: &str,
    iterations: i64,
) {
    let mut fields = serde_json::Map::new();
    fields.insert("session_id".to_string(), serde_json::json!(session_id));
    fields.insert("final_status".to_string(), serde_json::json!(final_status));
    fields.insert("stop_reason".to_string(), serde_json::json!(stop_reason));
    fields.insert("iterations".to_string(), serde_json::json!(iterations));
    fields.insert("terminal".to_string(), serde_json::json!(true));
    super::agent_observe::append_llm_observability_entry("agent_session_finalized", fields);
}