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