LLMGuardrail
Defined in the extras module.Rust AI Agent SDK LLM-based guardrail for content validation
Fields
| Name | Type | Description |
|---|---|---|
name | String | Name of the guardrail |
description | String | Description of what the guardrail checks |
prompt_template | String | The prompt template for the LLM check |
model | String | Model to use for the guardrail check |
block_on_failure | bool | Whether to block on failure |
Methods
new
| Name | Type |
|---|---|
name | impl Into<String> |
description | impl Into<String> |
with_prompt
| Name | Type |
|---|---|
prompt | impl Into<String> |
with_model
| Name | Type |
|---|---|
model | impl Into<String> |
block_on_failure
| Name | Type |
|---|---|
block | bool |
Source
View on GitHub
praisonai/src/parity/extras.rs at line 260
