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