aparse_result(
self,
result: list[Generation],
*,
partial: bool = False
)| Name | Type | Description |
|---|---|---|
result* | list[Generation] | |
partial | bool | Default: False |
Parse a list of candidate model Generation objects into a specific format.
A list of Generation to be parsed.
The Generations are assumed to be different candidate outputs for a single model input.
Whether to parse the output as a partial result.
This is useful for parsers that can parse partial results.