Uses of Interface
dev.dokimos.core.PriceTable
Packages that use PriceTable
Package
Description
-
Uses of PriceTable in dev.dokimos.embabel
Methods in dev.dokimos.embabel with parameters of type PriceTableModifier and TypeMethodDescriptionEmbabelTraceCollector.callMetrics(String model, PriceTable prices) Returns theCallMetricscaptured from the completed run, lighting up the run's metrics cards. -
Uses of PriceTable in dev.dokimos.langchain4j
Methods in dev.dokimos.langchain4j with parameters of type PriceTableModifier 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. -
Uses of PriceTable in dev.dokimos.springai
Methods in dev.dokimos.springai with parameters of type PriceTableModifier and TypeMethodDescriptionstatic AsyncTaskSpringAiSupport.measuredAsyncTask(org.springframework.ai.chat.client.ChatClient client, String modelId, PriceTable prices) Creates a measuredAsyncTaskthat calls a Spring AIChatClientand captures token usage, latency, and (when aPriceTableis supplied) cost, lighting up the run's metrics cards.static AsyncTaskSpringAiSupport.measuredAsyncTask(org.springframework.ai.chat.client.ChatClient client, String modelId, PriceTable prices, Executor executor) static AsyncTaskSpringAiSupport.measuredAsyncTask(org.springframework.ai.chat.client.ChatClient client, String inputKey, String outputKey, String modelId, PriceTable prices, Executor executor) Creates a measuredAsyncTaskwith caller-chosen input and output keys, dispatching each blocking call on the suppliedExecutor(or the commonForkJoinPoolwhenexecutorisnull). -
Uses of PriceTable in dev.dokimos.springai.alibaba
Methods in dev.dokimos.springai.alibaba with parameters of type PriceTableModifier 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)