ModelArmorParams#
- class langchain_google_community.model_armor.base_runnable.ModelArmorParams[source]#
Bases:
BaseModel
Model Armor parameters.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- param client_info: Any | None = None#
Client info for the API client.
- param credentials: Credentials | None = None#
The default custom credentials to use when making API calls.
- param fail_open: bool = False#
If True, allows unsafe prompts/responses to pass through, otherwise, raises an error.
- param location: str | None = 'us-central1'#
The default location to use when making API calls.
- param project: str | None = None#
The default GCP project to use when making Model Armor API calls.
- param template_id: str | None = None#
Model Armor template ID for sanitization.
- param transport: str | None = 'grpc' (alias 'api_transport')#
The desired API transport method, can be either βgrpcβ or βrestβ.