Parses the result of an LLM call with a given prompt. By default, it
simply calls parseResult.
parseResultWithPrompt(
generations: Generation[] | ChatGeneration[],
_prompt: BasePromptValueInterface,
callbacks: Callbacks
): Promise<string>| Name | Type | Description |
|---|---|---|
generations* | Generation[] | ChatGeneration[] | The generations from an LLM call. |
_prompt* | BasePromptValueInterface | The prompt used in the LLM call. |
callbacks | Callbacks | Optional callbacks. |