Contents

init(value:expectations:)

Creates a model sample output with an optional expected value and expectations.

Declaration

init(value: Value? = nil, expectations: Expectation? = nil)

Parameters

  • value:

    The expected output value for comparison.

  • expectations:

    The expected behavior, such as a tool-call trajectory.

Discussion

let output = ModelSampleOutput<String, TrajectoryExpectation>(value: "Paris", expectations: nil)