Uses of Record Class
dev.dokimos.core.Example
Packages that use Example
-
Uses of Example in dev.dokimos.core
Methods in dev.dokimos.core that return ExampleModifier and TypeMethodDescriptionExample.Builder.build()ItemResult.example()Returns the value of theexamplerecord component.Dataset.get(int index) Returns the example at the specified index.static ExampleCreates an example with a single input and expected output.Methods in dev.dokimos.core that return types with arguments of type ExampleModifier and TypeMethodDescriptionDataset.examples()Returns the examples in the dataset.Dataset.iterator()Methods in dev.dokimos.core with parameters of type ExampleModifier and TypeMethodDescriptionDataset.Builder.addExample(Example example) Adds an example to the dataset.Runs the task on the givenExampleand returns a future of its result.Run the task on the givenExampleand produce a result with optional metrics.Run the task on the givenExampleand produce outputs.Method parameters in dev.dokimos.core with type arguments of type ExampleModifier and TypeMethodDescriptionDataset.Builder.addExamples(List<Example> examples) Adds multiple examples to the dataset.static <T> TaskCreates aTaskthat produces a single typed value and stores it under the conventional"output"key, so callers can return a record, list, or other POJO from their task body instead of hand-building the output map.Constructors in dev.dokimos.core with parameters of type ExampleModifierConstructorDescriptionItemResult(Example example, Map<String, Object> actualOutputs, List<EvalResult> evalResults) Creates a result without call metrics.ItemResult(Example example, Map<String, Object> actualOutputs, List<EvalResult> evalResults, CallMetrics metrics) Creates an instance of aItemResultrecord class.Constructor parameters in dev.dokimos.core with type arguments of type Example -
Uses of Example in dev.dokimos.springai
Method parameters in dev.dokimos.springai with type arguments of type ExampleModifier and TypeMethodDescriptionstatic AsyncTaskSpringAiSupport.reactiveStringTask(Function<Example, reactor.core.publisher.Mono<String>> taskFunction) Adapts a ReactorMonoofStringoutput to anAsyncTask, wrapping the emitted string under thedefault output key.static AsyncTaskSpringAiSupport.reactiveTask(Function<Example, reactor.core.publisher.Mono<TaskResult>> taskFunction) -
Uses of Example in dev.dokimos.springai.alibaba
Method parameters in dev.dokimos.springai.alibaba with type arguments of type ExampleModifier and TypeMethodDescriptionstatic AsyncTaskSpringAiAlibabaSupport.measuredAsyncTask(Function<Example, SpringAiAlibabaSupport.AlibabaAgentResponse> agentCall, String model, PriceTable prices) Creates a measuredAsyncTaskthat runs a Spring AI Alibaba agent and captures latency automatically and, when aPriceTableand model id are supplied, cost, lighting up the run's metrics cards.static AsyncTaskSpringAiAlibabaSupport.measuredAsyncTask(Function<Example, SpringAiAlibabaSupport.AlibabaAgentResponse> agentCall, String model, PriceTable prices, Executor executor)