"""Output-event shaping helpers for the runtime pipeline.""" from __future__ import annotations from typing import Any, Dict def assistant_text_delta_event(text: str, **extra: Any) -> Dict[str, Any]: """Build a normalized assistant text delta payload.""" payload: Dict[str, Any] = {"type": "assistant.text.delta", "text": str(text)} payload.update(extra) return payload