The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
//! Bridge the `tinyagents` harness event stream onto openhuman's
//! [`AgentProgress`] + cost tracker (issue #4249).
//!
//! tinyagents emits a typed [`AgentEvent`] stream (model started/delta/completed,
//! tool started/completed, usage) through an [`EventSink`] that callers attach
//! to a [`RunContext`]. This listener translates those into the same
//! `AgentProgress` events the legacy `run_turn_engine` produced — restoring the
//! live tool timeline, streaming text, and the cost/token footer on the
//! tinyagents path — and feeds per-call usage into the global cost tracker.
mod bridge_types;
mod cache_layout;
mod event_bridge;
mod event_projection;
mod tool_progress_projection;
#[cfg(test)]
use std::sync::Arc;
#[cfg(test)]
use tinyinference_llm::usage::Usage;
#[cfg(test)]
use crate::progress::AgentProgress;
pub(crate) use bridge_types::{ProviderUsageCarry, SubagentScope, ToolFailureMap, ToolNameMap};
pub(crate) use cache_layout::surface_cache_layout_events;
pub(crate) use event_bridge::OpenhumanEventBridge;
#[cfg(test)]
#[path = "observability_tests.rs"]
mod tests;