runifold-workflow 0.5.3

Durable workflow and Agent orchestration runtime for Runifold
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::collections::BTreeMap;

use runifold_core::Usage;
use serde::{Deserialize, Serialize};
use serde_json::Value;

use crate::StepId;

/// Successful terminal workflow state.
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
pub struct WorkflowOutcome {
    /// Output of the final executed node.
    pub output: Value,
    /// Stable output captured after every completed node.
    pub steps: BTreeMap<StepId, Value>,
    /// Shared run-tree usage snapshot at completion.
    pub usage: Usage,
}