adk_gemini_safety (erlang_adk v0.7.0)

View Source

Strict, atom-safe Gemini safety-setting normalization and REST encoding.

The adjustable Gemini filters are deliberately represented with a small Erlang atom vocabulary. No value is converted to an atom at runtime.

Summary

Types

category/0

-type category() :: adk_safety_settings:category().

setting/0

-type setting() :: adk_safety_settings:setting().

threshold/0

-type threshold() :: adk_safety_settings:threshold().

Functions

encode(Settings)

-spec encode(term()) -> {ok, [map()]} | {error, term()}.

normalize(Settings)

-spec normalize(term()) -> {ok, [setting()]} | {error, term()}.