pyrit.prompt_converter.IndexSelectionStrategy#
- class IndexSelectionStrategy(*, start: int = 0, end: int | None = None)[source]#
Bases:
TextSelectionStrategySelects text based on absolute character indices.
- __init__(*, start: int = 0, end: int | None = None) None[source]#
Initialize the index selection strategy.
Methods
__init__(*[, start, end])Initialize the index selection strategy.
select_range(*, text)Select a range based on absolute character indices.