StreamChunk
Interface: StreamChunk
Defined in: packages/agent/src/unified/types/libTypes.ts:385
Stream chunk for real-time responses
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
content | string | Chunk content | packages/agent/src/unified/types/libTypes.ts:389 |
error? | string | Error information if applicable | packages/agent/src/unified/types/libTypes.ts:395 |
metadata? | Record<string, unknown> | Additional metadata | packages/agent/src/unified/types/libTypes.ts:397 |
toolCall? | ToolCall | Tool call information if applicable | packages/agent/src/unified/types/libTypes.ts:391 |
toolResult? | ToolResult | Tool result if applicable | packages/agent/src/unified/types/libTypes.ts:393 |
type | "text" | "error" | "tool_call" | "tool_result" | "done" | Type of chunk | packages/agent/src/unified/types/libTypes.ts:387 |