Generate greedily until a stopping sequence :param requests: list A list of pairs (context, until) context: str Context string until: [str] The string sequences to generate until. These string sequences may
(self, requests)
| 91 | # TODO: Add an optional max length |
| 92 | @abstractmethod |
| 93 | def greedy_until(self, requests): |
| 94 | """Generate greedily until a stopping sequence |
| 95 | |
| 96 | :param requests: list |
| 97 | A list of pairs (context, until) |
| 98 | context: str |
| 99 | Context string |
| 100 | until: [str] |
| 101 | The string sequences to generate until. These string sequences |
| 102 | may each span across multiple tokens, or may be part of one token. |
| 103 | :return: list |
| 104 | A list of strings continuation |
| 105 | continuation: str |
| 106 | The generated continuation. |
| 107 | """ |
| 108 | pass |
| 109 | |
| 110 | @classmethod |
| 111 | def create_from_arg_string(cls, arg_string, additional_config=None): |
nothing calls this directly
no outgoing calls
no test coverage detected