pub struct ExecutionStatus {Show 21 fields
pub id: String,
pub project_id: i64,
pub script_name: String,
pub status: String,
pub started_at: Option<String>,
pub finished_at: Option<String>,
pub version_id: Option<i64>,
pub channel: Option<String>,
pub error: Option<String>,
pub error_kind: Option<String>,
pub result: Option<Value>,
pub documents: Option<Value>,
pub triggered_by: Option<String>,
pub input_tokens: i64,
pub output_tokens: i64,
pub tool_tokens: i64,
pub cost_usd: Option<f64>,
pub result_type: Option<TypeRef>,
pub type_defs: Option<Value>,
pub parent_execution_id: Option<String>,
pub parent_node_id: Option<String>,
}Fields§
§id: String§project_id: i64§script_name: String§status: String§started_at: Option<String>§finished_at: Option<String>§version_id: Option<i64>§channel: Option<String>§error: Option<String>§error_kind: Option<String>§result: Option<Value>§documents: Option<Value>§triggered_by: Option<String>§input_tokens: i64§output_tokens: i64§tool_tokens: i64Tokens consumed by tool-response payloads (task 39b).
cost_usd: Option<f64>§result_type: Option<TypeRef>Workflow’s declared return TypeRef, when statically resolvable
from the source the execution ran against. Lets clients dispatch
directly into a typed renderer (e.g. list[Patent] → typed table)
instead of inferring shape from the raw value. None when the
server couldn’t determine the type (older servers, unparseable
source, workflows without an explicit terminal return <call>(...)).
type_defs: Option<Value>Declared record types from the source the execution ran against,
keyed by type Name: identifier (#1172). Lets clients render
results back to their declared shape (named records, typed columns)
instead of falling through to JSON shape inference. None from
older servers; an empty map when the source couldn’t be parsed.
parent_execution_id: Option<String>ID of the parent execution that spawned this one via
spawn_child_execution. None for top-level executions.
parent_node_id: Option<String>The node ID within the parent execution at which this child was
spawned. None when parent_execution_id is None.
Trait Implementations§
Source§impl Clone for ExecutionStatus
impl Clone for ExecutionStatus
Source§fn clone(&self) -> ExecutionStatus
fn clone(&self) -> ExecutionStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more