Generate greedily until a stopping sequence :param requests: list[Instance] A list of Instance objects with property `args` which returns a tuple (context, until). context: str Context string until: [str] The string sequenc
(self, requests)
| 98 | # TODO: Add an optional max length |
| 99 | @abc.abstractmethod |
| 100 | def generate_until(self, requests) -> List[str]: |
| 101 | """Generate greedily until a stopping sequence |
| 102 | |
| 103 | :param requests: list[Instance] |
| 104 | A list of Instance objects with property `args` which returns a tuple (context, until). |
| 105 | context: str |
| 106 | Context string |
| 107 | until: [str] |
| 108 | The string sequences to generate until. These string sequences |
| 109 | may each span across multiple tokens, or may be part of one token. |
| 110 | :return: list[str] |
| 111 | A list of strings continuation |
| 112 | continuation: str |
| 113 | The generated continuation. |
| 114 | """ |
| 115 | pass |
| 116 | |
| 117 | @classmethod |
| 118 | def create_from_arg_string( |
nothing calls this directly
no outgoing calls
no test coverage detected