Contents

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.Reasoning.Action

Parameters

  • text:

    The replacement text for the segment.

  • segmentID:

    The identifier of the segment to replace, or nil for the current segment.

  • tokenCount:

    The number of the tokens the replacement text carries.

See Also

Reasoning actions