Uses of Interface
dev.dokimos.core.MeasuredTask
Packages that use MeasuredTask
-
Uses of MeasuredTask in dev.dokimos.core
Methods in dev.dokimos.core with parameters of type MeasuredTaskModifier and TypeMethodDescriptionExperiment.Builder.measuredTask(MeasuredTask measuredTask) Sets a measured task that carriesCallMetricsthrough to eachItemResult. -
Uses of MeasuredTask in dev.dokimos.langchain4j
Methods in dev.dokimos.langchain4j that return MeasuredTaskModifier and TypeMethodDescriptionstatic MeasuredTaskLangChain4jSupport.measuredRagTask(Function<String, dev.langchain4j.service.Result<String>> assistantCall, String modelId, PriceTable prices) Creates a measured RAGMeasuredTaskfrom a function returningResult, capturing thetoken usage, latency, and (when aPriceTableis supplied) cost alongside the output and retrieved context.static MeasuredTaskLangChain4jSupport.measuredRagTask(Function<String, dev.langchain4j.service.Result<String>> assistantCall, String inputKey, String outputKey, String contextKey, String modelId, PriceTable prices) Creates a measured RAGMeasuredTaskwith custom key names.static MeasuredTaskLangChain4jSupport.measuredTask(dev.langchain4j.model.chat.ChatModel model, String modelId, PriceTable prices) Creates a measured Q&AMeasuredTaskthat captures token usage, latency, and (when aPriceTableis supplied) cost, lighting up the run's metrics cards.static MeasuredTaskLangChain4jSupport.measuredTask(dev.langchain4j.model.chat.ChatModel model, String modelId, PriceTable prices, String outputKey) Creates a measured Q&AMeasuredTaskthat writes the response under a caller-chosen key.