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 JSON object.
The result of the LLM call.
Whether to parse partial JSON objects.
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.