Interface MeasuredTask

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MeasuredTask
A task that produces outputs together with optional CallMetrics describing the underlying LLM call. The returned TaskResult carries the metrics through to the resulting ItemResult.
  • Method Summary

    Modifier and Type
    Method
    Description
    run(Example example)
    Run the task on the given Example and produce a result with optional metrics.
  • Method Details

    • run

      TaskResult run(Example example)
      Run the task on the given Example and produce a result with optional metrics.
      Parameters:
      example - the example containing inputs and expected outputs
      Returns:
      the task result produced by the task