StreamOptions
Options controlling streaming behavior for LLM API calls. Passed alongside the model options when streaming is enabled.
Class Diagram
Section titled “Class Diagram”---
title: StreamOptions
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class StreamOptions {
+boolean includeUsage
}
Yaml Example
Section titled “Yaml Example”includeUsage: trueProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| includeUsage | boolean | When true, the final streaming chunk includes token usage statistics |