klieo-flows 3.4.0

Multi-agent composition shapes (Sequential / Parallel / Loop / Graph) for the klieo agent framework.
Documentation
//! Shared test fixtures used across the flow modules.
//!
//! Internal-only — gated on `#[cfg(test)]` and `pub(crate)` so it never
//! escapes the crate.

#![allow(dead_code)] // not every consumer of this helper uses every export

use klieo_core::agent::AgentContext;
use klieo_core::test_utils::fake_context;

/// Build a no-op AgentContext suitable for unit tests that don't exercise
/// LLM / bus / memory behaviour.
pub(crate) fn ctx() -> AgentContext {
    fake_context("test")
}

/// Build a context whose cancellation token is already tripped, for asserting
/// that a flow stops at its next iteration / step boundary.
pub(crate) fn cancelled_ctx() -> AgentContext {
    let ctx = fake_context("test");
    ctx.cancel.cancel();
    ctx
}