Skip to main content

StreamChunk

@codebolt/agent


Interface: StreamChunk

Defined in: packages/agent/src/unified/types/libTypes.ts:385

Stream chunk for real-time responses

Properties

PropertyTypeDescriptionDefined in
contentstringChunk contentpackages/agent/src/unified/types/libTypes.ts:389
error?stringError information if applicablepackages/agent/src/unified/types/libTypes.ts:395
metadata?Record<string, unknown>Additional metadatapackages/agent/src/unified/types/libTypes.ts:397
toolCall?ToolCallTool call information if applicablepackages/agent/src/unified/types/libTypes.ts:391
toolResult?ToolResultTool result if applicablepackages/agent/src/unified/types/libTypes.ts:393
type"text" | "error" | "tool_call" | "tool_result" | "done"Type of chunkpackages/agent/src/unified/types/libTypes.ts:387