AppVersionSnapshotGuardrail class
Constructors
-
AppVersionSnapshotGuardrail({Input<
List< ? actions, Input<AppVersionSnapshotGuardrailAction> ?>List< ? codeCallbacks, Input<AppVersionSnapshotGuardrailCodeCallback> ?>List< ? contentFilters, Input<AppVersionSnapshotGuardrailContentFilter> ?>String?> ? createTime, Input<String?> ? description, Input<String?> ? displayName, Input<bool?> ? enabled, Input<String?> ? etag, Input<List< ? llmPolicies, Input<AppVersionSnapshotGuardrailLlmPolicy> ?>List< ? llmPromptSecurities, Input<AppVersionSnapshotGuardrailLlmPromptSecurity> ?>List< ? modelSafeties, Input<AppVersionSnapshotGuardrailModelSafety> ?>String?> ? name, Input<String?> ? updateTime}) -
Creates a new AppVersionSnapshotGuardrail.
actions(Output)codeCallbacks(Output)contentFilters(Output)createTime(Output)descriptionThe description of the app version.displayNameThe display name of the app version.enabled(Output)etag(Output)llmPolicies(Output)llmPromptSecurities(Output)modelSafeties(Output)name(Output)updateTime(Output)const -
AppVersionSnapshotGuardrail.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
actions
→ Input<
List< ?AppVersionSnapshotGuardrailAction> ?> -
(Output)
Action that is taken when a certain precondition is met.
Structure is documented below.
final
-
codeCallbacks
→ Input<
List< ?AppVersionSnapshotGuardrailCodeCallback> ?> -
(Output)
Guardrail that blocks the conversation based on the code callbacks
provided.
Structure is documented below.
final
-
contentFilters
→ Input<
List< ?AppVersionSnapshotGuardrailContentFilter> ?> -
(Output)
Guardrail that bans certain content from being used in the conversation.
Structure is documented below.
final
-
createTime
→ Input<
String?> ? -
(Output)
Timestamp when the toolset was created.
final
-
description
→ Input<
String?> ? -
The description of the app version.
final
-
displayName
→ Input<
String?> ? -
The display name of the app version.
final
-
enabled
→ Input<
bool?> ? -
(Output)
Whether the guardrail is enabled.
final
-
etag
→ Input<
String?> ? -
(Output)
ETag used to ensure the object hasn't changed during a read-modify-write
operation. If the etag is empty, the update will overwrite any concurrent
changes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
llmPolicies
→ Input<
List< ?AppVersionSnapshotGuardrailLlmPolicy> ?> -
(Output)
Guardrail that blocks the conversation if the LLM response is considered
violating the policy based on the LLM classification.
Structure is documented below.
final
-
llmPromptSecurities
→ Input<
List< ?AppVersionSnapshotGuardrailLlmPromptSecurity> ?> -
(Output)
Guardrail that blocks the conversation if the input is considered unsafe
based on the LLM classification.
Structure is documented below.
final
-
modelSafeties
→ Input<
List< ?AppVersionSnapshotGuardrailModelSafety> ?> -
(Output)
Model safety settings overrides. When this is set, it will override the
default settings and trigger the guardrail if the response is considered
unsafe.
Structure is documented below.
final
-
name
→ Input<
String?> ? -
(Output)
Identifier. The unique identifier of the toolset.
Format:
projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
updateTime
→ Input<
String?> ? -
(Output)
Timestamp when the toolset was last updated.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited