pub type AgentEvent = AgentStreamEvent;Expand description
A single SSE event from an agent run stream.
Alias for AgentStreamEvent for backwards compatibility.
Aliased Type§
pub struct AgentEvent {
pub event_type: String,
pub data: HashMap<String, Value>,
}Fields§
§event_type: StringEvent type (e.g. “step”, “thought”, “tool_call”, “tool_result”, “message”, “error”, “done”).
data: HashMap<String, Value>Raw JSON payload for caller to interpret.