MediaPipeTasksDecision Framework Reference

ScoreQuestion

public struct ScoreQuestion : Sendable, Equatable

Configuration for evaluating an ordered rubric of levels and computing a continuous expected score.

  • Ordered list of rubric levels from lowest (0.0) to highest (1.0).

    Declaration

    Swift

    public var rubric: [String]
  • Softmax temperature override.

    Declaration

    Swift

    public var temperature: Float
  • Optional task instructions prepended to the rubric prompt.

    Declaration

    Swift

    public var instructions: String