obzenflow 0.1.2

High-performance event streaming and processing framework
Documentation
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-FileCopyrightText: 2025-2026 ObzenFlow Contributors
// https://obzenflow.dev

//! AI facade for ObzenFlow
//!
//! This module re-exports the provider-agnostic AI transforms from the adapters
//! layer. When the `ai-rig` feature is enabled, it also provides a fluent
//! builder API that constructs Rig-backed clients and wires them into
//! transforms without exposing infra types in user code.

pub use obzenflow_adapters::ai::{ChatTransform, EmbeddingTransform};

pub use obzenflow_core::ai::{
    remaining_budget, split_to_budget, EstimateSource, HeuristicTokenEstimator, SplitGroup,
    TokenCount, TokenEstimate, TokenEstimationError, TokenEstimator,
};

pub use obzenflow_infra::ai::estimator_for_model;

#[cfg(feature = "ai-tiktoken")]
pub use obzenflow_infra::ai::TiktokenEstimator;

#[cfg(feature = "ai-rig")]
mod rig_builder;

#[cfg(feature = "ai-rig")]
pub use rig_builder::{
    ChatRequestTemplate, ChatTransformBuilder, ChatTransformExt, EmbeddingTransformBuilder,
    EmbeddingTransformExt,
};