1#![forbid(unsafe_code)]
13
14pub mod engine;
17pub mod host;
18pub mod journal;
19pub mod meta;
20pub mod run;
21pub mod store;
22pub mod validate;
23
24pub use engine::{WorkflowRunParams, run_workflow};
25pub use host::{AgentOpts, AgentResult, BudgetState, HostError, WorkflowHostRequest};
26pub use journal::{
27 HOST_ERROR_KEY, JOURNAL_VERSION_HEADER, Journal, JournalEntry, JournalError, MAX_JOURNAL_BYTES,
28 MAX_JOURNAL_ENTRIES, canonical_json, host_error_message, host_error_sentinel,
29 is_host_error_sentinel, request_hash,
30};
31pub use meta::{MetaError, WorkflowMeta, extract_meta};
32pub use run::{PauseKind, WorkflowOutcome};
33pub use store::{
34 FileWorkflowRunStore, MemoryWorkflowRunStore, StoreError, WorkflowRunRecord, WorkflowRunStatus,
35 WorkflowRunStore,
36};
37pub use validate::{
38 ValidationError, ValidationReport, default_probe_args, validate_script,
39 validate_script_with_agent_budget,
40};
41
42pub const DEFAULT_AGENT_BUDGET: u64 = 128;
44pub const MAX_AGENT_BUDGET: u64 = 1_024;
46pub const MAX_PARALLEL: usize = 1_024;
48pub const MAX_HOST_CALLS: u64 = 10_000;