@guardrails-ai/core / Exports / Guard
Name |
---|
T |
• new Guard<T
>(pyGuard
): Guard
<T
>
Name |
---|
T |
Name | Type |
---|---|
pyGuard |
any |
Guard
<T
>
• Private
_history: Stack
<Call
<T
>>
• Private
pyGuard: any
• get
history(): Stack
<Call
<T
>>
▸ cloneHistory(): Promise
<void
>
Promise
<void
>
▸ cloneProperties(): Promise
<void
>
Promise
<void
>
▸ parse(llmOutput
, opts?
): Promise
<ValidationOutcome
<T
>>
Name | Type |
---|---|
llmOutput |
string |
opts |
ParseOptions |
Promise
<ValidationOutcome
<T
>>
▸ fromRail(railFile
, opts?
): Promise
<Guard
<string
| Dictionary
>>
Name | Type |
---|---|
railFile |
string |
opts |
FromRailOptions |
Promise
<Guard
<string
| Dictionary
>>
▸ fromRailString(railString
, opts?
): Promise
<Guard
<string
| Dictionary
>>
Name | Type |
---|---|
railString |
string |
opts |
FromRailOptions |
Promise
<Guard
<string
| Dictionary
>>
▸ fromString(validators
, opts?
): Promise
<Guard
<string
>>
Name | Type |
---|---|
validators |
any [] |
opts |
FromStringOptions |
Promise
<Guard
<string
>>