parse_result(
self,
result: list[Generation],
*,
partial: bool = False
)| Name | Type | Description |
|---|---|---|
result* | list[Generation] | |
partial | bool | Default: False |
Parse the result of an LLM call to a list of Pydantic objects.
The result of the LLM call.
Whether to parse partial JSON.
If True, the output will be a JSON object containing all the keys that
have been returned so far.
If False, the output will be the full JSON object.