mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
1.9 KiB
1.9 KiB
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
SafetySetting interface
Safety setting that can be sent as part of request parameters.
Signature:
export interface SafetySetting
Properties
| Property | Type | Description |
|---|---|---|
| category | HarmCategory | |
| method | HarmBlockMethod | The harm block method.This property is only supported in the Agent Platform Gemini API (AgentPlatformBackend). When using the Gemini Developer API (GoogleAIBackend), an AIError will be thrown if this property is defined. |
| threshold | HarmBlockThreshold |
SafetySetting.category
Signature:
category: HarmCategory;
SafetySetting.method
The harm block method.
This property is only supported in the Agent Platform Gemini API (AgentPlatformBackend). When using the Gemini Developer API (GoogleAIBackend), an AIError will be thrown if this property is defined.
Signature:
method?: HarmBlockMethod;
SafetySetting.threshold
Signature:
threshold: HarmBlockThreshold;