ExStreamClient.Model.ModerationResponse (ExStreamClient v0.1.7)

View Source

Schema representing a ModerationResponse

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.ModerationResponse{
  action: String.t(),
  automod_response: any(),
  explicit: float(),
  spam: float(),
  toxic: float()
}

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()