The content chunk received
Whether this is the final chunk
Optionalkind?: "final-response"Content discriminator for chat-client rendering. 'final-response' marks chunks
that are deltas of the user-facing final reply — safe for the conversation client
to accumulate and render into the message bubble as they arrive. Chunks WITHOUT a
kind are raw prompt output (e.g. a Loop agent's streamed JSON turn envelope) and
are not rendered by the conversation client. Emitters that compose the final
answer as plain prose (outside the turn envelope) set this on their compose
stream; future kinds (e.g. inter-turn progress narration) extend this union.
OptionalmodelName?: stringModel name producing this content (for prompt steps)
OptionalstepEntityId?: stringSpecific step entity ID producing this content
OptionalstepType?: "prompt" | "action" | "subagent" | "chat"Which step is producing this content
Callback function type for streaming content updates during agent execution