Skip to main content

agent_completion_chunk_rows

Function agent_completion_chunk_rows 

Source
pub fn agent_completion_chunk_rows<'a>(
    chunk: &'a AgentCompletionChunk,
) -> WriterItems<'a>
Expand description

Entry: walk an agent-completion chunk. Emits a WriterItem::Usage first when the chunk carries a non-None usage (its total_tokens snapshot), then every streaming-content row keyed by the chunk’s own id and agent_instance_hierarchy.