LanguageModelExecutorGenerationChannel.TextSegmentReplacement
Replace a streaming entry’s current text segment with content.
Declaration
struct TextSegmentReplacementOverview
The tokenCount is the producer’s count of tokens carried by content and is used by safety or usage accounting to credit the replacement against
Topics
Handling the replacement
See Also
Accessing the event types
LanguageModelExecutorGenerationChannel.EventKindLanguageModelExecutorGenerationChannel.MetadataLanguageModelExecutorGenerationChannel.ReasoningLanguageModelExecutorGenerationChannel.ReasoningSignatureLanguageModelExecutorGenerationChannel.TextFragmentLanguageModelExecutorGenerationChannel.ResponseLanguageModelExecutorGenerationChannel.ToolCallsLanguageModelExecutorGenerationChannel.Usage