Streaming: translate one legacy SSE event to its modern equivalent.
Returns the input unchanged when the event_type is not one of the legacy ones we know how to map. Two non-trivial cases:
event_type
content.start
content: <Content>
step.start
step: {type: 'model_output', content: [<Content>]}
interaction.start
interaction.complete
interaction
outputs
Streaming: translate one legacy SSE event to its modern equivalent.
Returns the input unchanged when the
event_typeis not one of the legacy ones we know how to map. Two non-trivial cases:content.startcarriescontent: <Content>— the modernstep.startexpectsstep: {type: 'model_output', content: [<Content>]}.interaction.start/interaction.completewrap aninteractionobject that may itself carry the legacyoutputsfield; recurse.