invoke(
self,
input: T,
config: Optional[RunnableConfig] = None,
fail_open:| Name | Type | Description |
|---|---|---|
input* | T | The user prompt to sanitize. Can be |
config | Optional[RunnableConfig] | Default: NoneA config to use when invoking the |
fail_open | Optional[bool] | Default: None |
Sanitize a user prompt using Model Armor.
If True, allows unsafe prompts to pass through.