@guardrails-ai/core / Exports / History / Outputs
History.Outputs
Name |
---|
T |
- _error
- _exception
- _failedValidations
- _llmResponseInfo
- _parsedOutput
- _rawOutput
- _reasks
- _status
- _validatedOutput
- _validationOutput
- _validatorLogs
- error
- exception
- failedValidations
- llmResponseInfo
- parsedOutput
- rawOutput
- reasks
- status
- validatedOutput
- validationOutput
- validatorLogs
• new Outputs<T
>(llmResponseInfo?
, rawOutput?
, parsedOutput?
, validationOutput?
, validatedOutput?
, reasks?
, validatorLogs?
, error?
, exception?
, failedValidations?
, status?
): Outputs
<T
>
Name |
---|
T |
Name | Type |
---|---|
llmResponseInfo? |
LLMResponse |
rawOutput? |
string |
parsedOutput? |
T |
validationOutput? |
ReAsk | T |
validatedOutput? |
T |
reasks? |
ReAsk [] |
validatorLogs? |
ValidatorLogs [] |
error? |
string |
exception? |
Error |
failedValidations? |
ValidatorLogs [] |
status? |
string |
Outputs
<T
>
• Private
Optional
_error: string
The error message from any exception that raised and interrupted the process.
• Private
Optional
_exception: Error
The exception that interrupted the process.
• Private
Optional
_failedValidations: ValidatorLogs
[]
A subset of validatorLogs for any validations that did not pass.
• Private
Optional
_llmResponseInfo: LLMResponse
Information from the LLM response.
• Private
Optional
_parsedOutput: T
The output parsed from the LLM response as it was passed into validation.
• Private
Optional
_rawOutput: string
The exact output from the LLM.
• Private
Optional
_reasks: ReAsk
[]
Information from the validation process used to construct a ReAsk to the LLM on validation failure.
• Private
Optional
_status: string
Representation of the end state of the validation run OneOf: pass, fail, error, not run
• Private
Optional
_validatedOutput: T
The valid output after validation. Could be only a partial structure if field level reasks occur. Could contain fixed values.
• Private
Optional
_validationOutput: ReAsk
| T
The output from the validation process.
• Private
Optional
_validatorLogs: ValidatorLogs
[]
The results of each individual validation.
• get
error(): undefined
| string
undefined
| string
• get
exception(): undefined
| Error
undefined
| Error
• get
failedValidations(): undefined
| ValidatorLogs
[]
undefined
| ValidatorLogs
[]
• get
llmResponseInfo(): undefined
| LLMResponse
undefined
| LLMResponse
• get
parsedOutput(): undefined
| T
undefined
| T
• get
rawOutput(): undefined
| string
undefined
| string
• get
reasks(): undefined
| ReAsk
[]
undefined
| ReAsk
[]
• get
status(): undefined
| string
undefined
| string
• get
validatedOutput(): undefined
| T
undefined
| T
• get
validationOutput(): undefined
| ReAsk
| T
undefined
| ReAsk
| T
• get
validatorLogs(): undefined
| ValidatorLogs
[]
undefined
| ValidatorLogs
[]
▸ fromPyOutputs<U
>(pyOutputs
): Promise
<Outputs
<Awaited
<U
>>>
Name |
---|
U |
Name | Type |
---|---|
pyOutputs |
any |
Promise
<Outputs
<Awaited
<U
>>>