fabricatio_question.utils

Utility functions for asking questions.

Functions

ask_retain(…)

Asks the user to retain a list of candidates.

ask_edit(→ List[str])

Asks the user to edit a list of texts.

Module Contents

async fabricatio_question.utils.ask_retain[V](candidates: List[str]) List[str]
async fabricatio_question.utils.ask_retain(candidates: List[str], value_mapping: List[V]) List[V]

Asks the user to retain a list of candidates.

async fabricatio_question.utils.ask_edit(text_seq: List[str]) List[str]

Asks the user to edit a list of texts.

Parameters:

text_seq (List[str]) – A list of texts to be edited.

Returns:

A list of edited texts. If the user does not edit a text, it will not be included in the returned list.

Return type:

List[str]