Skip to main content

map_agent_event

Function map_agent_event 

Source
pub fn map_agent_event(event: &AgentEvent) -> Option<SseEvent>
Expand description

Map an AgentEvent to an SseEvent for broadcasting to SSE clients.

Returns None for events that have no SSE equivalent (latency, tokens, etc.).