Files
codex/codex-rs/api-client/src/client/mod.rs
jif-oai 769e9cc92c R4
2025-11-11 15:36:22 +00:00

25 lines
537 B
Rust

use async_trait::async_trait;
use codex_otel::otel_event_manager::OtelEventManager;
use tokio::sync::mpsc;
use crate::error::Result;
use crate::stream::WireEvent;
pub mod fixtures;
pub mod http;
pub mod rate_limits;
pub mod sse;
// Legacy ResponseEvent-based decoder removed
/// Decodes framed SSE JSON into WireEvent(s).
#[async_trait]
pub trait WireResponseDecoder {
async fn on_frame(
&mut self,
json: &str,
tx: &mpsc::Sender<Result<WireEvent>>,
otel: &OtelEventManager,
) -> Result<()>;
}