Tin

Examples · learn/17-typed-replies · 229 of 339

wrapped

examples/learn/17-typed-replies/wrapped.tintin run examples/learn/17-typed-replies/wrapped.tin
type Score = {
  /// From 0.0 (bad) to 1.0 (great)
  value: float
}

agent Judge { model: "mock" }

fn main() {
  let s: Score = Judge("how good is this draft? 0.8")
  print(s.value)
}