View Source ExOpenAI.Components.GraderStringCheck (ex_openai.ex v2.0.0-beta2)

A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.

Fields

  • :input - required - String.t()
    The input text. This may include template strings.

  • :name - required - String.t()
    The name of the grader.

  • :operation - required - :eq | :ne | :like | :ilike
    The string check operation to perform. One of eq, ne, like, or ilike.
    Allowed values: "eq", "ne", "like", "ilike"

  • :reference - required - String.t()
    The reference text. This may include template strings.

  • :type - required - :string_check
    The object type, which is always string_check.
    Allowed values: "string_check"

Summary

Types

@type t() :: %ExOpenAI.Components.GraderStringCheck{
  input: String.t(),
  name: String.t(),
  operation: ((:eq | :ne) | :like) | :ilike,
  reference: String.t(),
  type: :string_check
}