replaceTextSegment(_:segmentID:tokenCount:)
Creates an action that replaces the entry’s current text segment.
Declaration
static func replaceTextSegment(_ text: String, segmentID: String? = nil, tokenCount: Int) -> LanguageModelExecutorGenerationChannel.Response.ActionParameters
- text:
The replacement text for the segment.
- segmentID:
The identifier of the segment to replace, or
nilfor the current segment. - tokenCount:
The number of the tokens the replacement text carries.