Class StreamOptions
Options for controlling streaming behavior
public class StreamOptions
- Inheritance
-
StreamOptions
- Inherited Members
Properties
Default
Creates default options
public static StreamOptions Default { get; }
Property Value
FullOptions
Default options for full featured streaming
public static StreamOptions FullOptions { get; }
Property Value
IncludeFunctionCalls
Include function calling support (default: true)
public bool IncludeFunctionCalls { get; set; }
Property Value
IncludeMetadata
Include metadata in streaming content (default: true when using StreamingContent)
public bool IncludeMetadata { get; set; }
Property Value
IncludeReasoning
Include reasoning/thinking content from reasoning models like GPT-5, o3 (default: false)
public bool IncludeReasoning { get; set; }
Property Value
Minimal
Creates options for minimal overhead streaming
public static StreamOptions Minimal { get; }
Property Value
TextOnly
Filter out everything except text content (default: false)
public bool TextOnly { get; set; }
Property Value
TextOnlyOptions
Default options for simple text streaming
public static StreamOptions TextOnlyOptions { get; }
Property Value
WithFunctions
Creates options for function calling scenarios
public static StreamOptions WithFunctions { get; }
Property Value
Methods
AsTextOnly(bool)
Builder pattern for fluent configuration
public StreamOptions AsTextOnly(bool textOnly = true)
Parameters
textOnlybool
Returns
Clone()
Creates a copy of these options
public StreamOptions Clone()
Returns
WithFunctionCalls(bool)
Builder pattern for fluent configuration
public StreamOptions WithFunctionCalls(bool include = true)
Parameters
includebool
Returns
WithMetadata(bool)
Builder pattern for fluent configuration
public StreamOptions WithMetadata(bool include = true)
Parameters
includebool
Returns
WithReasoning(bool)
Builder pattern for fluent configuration
public StreamOptions WithReasoning(bool include = true)
Parameters
includebool