Skip to main content

stepflow_flow/
lib.rs

1// Copyright 2025 DataStax Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
4// in compliance with the License. You may obtain a copy of the License at
5//
6//     http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software distributed under the License
9// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
10// or implied. See the License for the specific language governing permissions and limitations under
11// the License.
12
13//! Stepflow workflow definition types.
14//!
15//! This crate provides the core data types for defining Stepflow workflows:
16//! - [`Flow`](workflow::Flow), [`Step`](workflow::Step): Workflow structure
17//! - [`ValueExpr`]: Value expressions for data flow between steps
18//! - [`FlowResult`], [`FlowError`]: Execution result types
19//! - [`SchemaRef`](schema::SchemaRef): JSON Schema references
20
21pub mod discriminator_schema;
22pub mod json_schema;
23pub mod schema;
24pub mod values;
25pub mod workflow;
26
27pub mod error_stack;
28
29mod flow_result;
30mod task_error_code;
31
32pub use error_stack::{ErrorStack, ErrorStackEntry};
33pub use flow_result::*;
34pub use task_error_code::TaskErrorCode;
35pub use values::ValueExpr;