Package dev.dokimos.core
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.
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 TypeMethodDescriptionRun the task on the givenExampleand produce a result with optional metrics.
-
Method Details
-
run
Run the task on the givenExampleand produce a result with optional metrics.- Parameters:
example- the example containing inputs and expected outputs- Returns:
- the task result produced by the task
-