ExStreamClient.Model.TextRuleParameters (ExStreamClient v0.2.0)

Copy Markdown View Source

Schema representing a TextRuleParameters

Summary

Functions

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

Types

t()

@type t() :: %ExStreamClient.Model.TextRuleParameters{
  blocklist_match: [String.t()] | nil,
  contains_url: boolean() | nil,
  harm_labels: [String.t()] | nil,
  llm_harm_labels: %{optional(String.t()) => String.t()} | nil,
  semantic_filter_min_threshold: float() | nil,
  semantic_filter_names: [String.t()] | nil,
  severity: String.t() | nil,
  threshold: integer() | nil,
  time_window: String.t() | nil
}

Functions

decode(map)

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

nested_components()