类 StreamOptions.Builder
- 封闭类:
StreamOptions
StreamOptions.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()eventTypes(EventType... types) Set which event types to stream.includeActingChunk(boolean includeActingChunk) Include or exclude tool execution chunk emissions.includeReasoningChunk(boolean includeReasoningChunk) Include or exclude incremental reasoning chunk emissions.includeReasoningResult(boolean includeReasoningResult) Include or exclude the final consolidated reasoning result emission.includeSummaryChunk(boolean includeSummaryChunk) Include or exclude summary chunk emissions.includeSummaryResult(boolean includeSummaryResult) Include or exclude the final consolidated summary result emission.incremental(boolean incremental) Set whether to use incremental mode for streaming content.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
eventTypes
Set which event types to stream.Only events matching these types will be emitted in the Flux. Use
EventType.ALLto receive all types.- 参数:
types- One or more event types- 返回:
- this builder
-
incremental
Set whether to use incremental mode for streaming content.Controls how streaming content is delivered:
- true (incremental): Only new content in each emission
- false (cumulative): All accumulated content in each emission
- 参数:
incremental- true for incremental mode, false for cumulative mode- 返回:
- this builder
-
includeReasoningChunk
Include or exclude incremental reasoning chunk emissions.When
EventType.REASONINGis enabled, some providers emit reasoning deltas (chunks) as the model thinks. Set to false to hide these.- 参数:
includeReasoningChunk- true to include chunk emissions, false to filter them out- 返回:
- this builder
-
includeReasoningResult
Include or exclude the final consolidated reasoning result emission.When
EventType.REASONINGis enabled, some providers emit a final reasoning result. Set to false to hide it.- 参数:
includeReasoningResult- true to include the final reasoning result, false to filter it out- 返回:
- this builder
-
includeActingChunk
Include or exclude tool execution chunk emissions.When
EventType.TOOL_RESULTis enabled, tools may emit intermediate chunks via ToolEmitter. Set to false to hide these and only receive the final tool result.- 参数:
includeActingChunk- true to include chunk emissions, false to filter them out- 返回:
- this builder
-
includeSummaryChunk
Include or exclude summary chunk emissions.When
EventType.SUMMARYis enabled, summary generation may emit intermediate chunks. Set to false to hide these and only receive the final summary result.- 参数:
includeSummaryChunk- true to include chunk emissions, false to filter them out- 返回:
- this builder
-
includeSummaryResult
Include or exclude the final consolidated summary result emission.When
EventType.SUMMARYis enabled, the final summary result is emitted after generation completes. Set to false to hide it.- 参数:
includeSummaryResult- true to include the final summary result, false to filter it out- 返回:
- this builder
-
build
-