enact-core 0.0.2

Core agent runtime for Enact - Graph-Native AI agents
Documentation
//! Background Module - Background execution and triggers
//!
//! This module provides the infrastructure for background callable execution:
//!
//! - **Triggers**: Event-based callable invocation
//! - **Executor**: Background execution with different modes
//! - **Target Binding**: Binds execution results to targets
//!
//! ## Background Execution Modes
//!
//! - `FireAndForget`: Don't wait for result, no streaming
//! - `Silent`: Wait for result, but suppress streaming events
//! - `Deferred`: Queue for later execution
//!
//! ## Triggers
//!
//! Triggers watch for specific events and spawn background executions:
//! - Event: Fired by execution/step events
//! - Schedule: Fired by cron/interval schedules
//! - Webhook: Fired by external webhooks
//! - Threshold: Fired when metrics cross thresholds
//! - Lifecycle: Fired by thread/user lifecycle events
//!
//! @see packages/enact-schemas/src/execution.schemas.ts
//! @see docs/TECHNICAL/32-SPAWN-MODE.md

pub mod executor;
pub mod target_binding;
pub mod trigger;

// Re-exports - Trigger
pub use trigger::{
    RetryConfig, TargetBindingConfig as TriggerTargetBindingConfig,
    TargetBindingType as TriggerTargetBindingType, ThresholdOperator, Trigger, TriggerAction,
    TriggerCondition, TriggerFiredEvent, TriggerId, TriggerStatus, TriggerType,
};

// Re-exports - Executor
pub use executor::{
    BackgroundExecution, BackgroundExecutionConfig, BackgroundExecutionMode,
    BackgroundExecutionQueue, BackgroundExecutionStatus,
};

// Re-exports - Target Binding
pub use target_binding::{
    apply_transform, TargetBindingConfig, TargetBindingResult, TargetBindingTransform,
    TargetBindingType,
};