Uses of Interface
dev.dokimos.core.AsyncTask
Packages that use AsyncTask
Package
Description
-
Uses of AsyncTask in dev.dokimos.core
Methods in dev.dokimos.core with parameters of type AsyncTaskModifier and TypeMethodDescriptionSets an asynchronous task that produces aTaskResultas aCompletableFuture. -
Uses of AsyncTask in dev.dokimos.langchain4j
Methods in dev.dokimos.langchain4j that return AsyncTaskModifier and TypeMethodDescriptionstatic AsyncTaskLangChain4jSupport.asyncRagTask(Function<String, dev.langchain4j.service.Result<String>> assistantCall) Creates anAsyncTaskfor RAG evaluation from a function that returnsResult.static AsyncTaskLangChain4jSupport.asyncRagTask(Function<String, dev.langchain4j.service.Result<String>> assistantCall, String inputKey, String outputKey, String contextKey) Creates anAsyncTaskfor RAG evaluation with custom key names.static AsyncTaskLangChain4jSupport.asyncRagTask(Function<String, dev.langchain4j.service.Result<String>> assistantCall, String inputKey, String outputKey, String contextKey, Executor executor) Creates anAsyncTaskfor RAG evaluation that dispatches each blocking assistant call on the suppliedExecutor(or the commonForkJoinPoolwhenexecutorisnull).static AsyncTaskLangChain4jSupport.asyncRagTask(Function<String, dev.langchain4j.service.Result<String>> assistantCall, Executor executor) static AsyncTaskLangChain4jSupport.asyncTask(dev.langchain4j.model.chat.ChatModel model) Creates a simpleAsyncTaskfor Q&A evaluation from a LangChain4jChatModel.static AsyncTaskCreates a simpleAsyncTaskfor Q&A evaluation that writes the response under a caller-chosen key.static AsyncTaskLangChain4jSupport.asyncTask(dev.langchain4j.model.chat.ChatModel model, String outputKey, Executor executor) Creates a simpleAsyncTaskfor Q&A evaluation that dispatches each blockingmodel.chat(...)call on the suppliedExecutor(or the commonForkJoinPoolwhenexecutorisnull).static AsyncTask -
Uses of AsyncTask in dev.dokimos.springai
Methods in dev.dokimos.springai that return AsyncTaskModifier and TypeMethodDescriptionstatic AsyncTaskSpringAiSupport.asyncTask(org.springframework.ai.chat.client.ChatClient client) Creates anAsyncTaskthat calls a Spring AIChatClientoff the calling thread and writes the response under thedefault output key.static AsyncTaskSpringAiSupport.asyncTask(org.springframework.ai.chat.client.ChatClient client, String inputKey, String outputKey) Creates anAsyncTaskthat calls a Spring AIChatClientoff the calling thread using caller-chosen input and output keys.static AsyncTaskSpringAiSupport.asyncTask(org.springframework.ai.chat.client.ChatClient client, String inputKey, String outputKey, Executor executor) Creates anAsyncTaskthat calls a Spring AIChatClientusing caller-chosen input and output keys, dispatching each blocking call on the suppliedExecutor(or the commonForkJoinPoolwhenexecutorisnull).static AsyncTaskstatic 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).static 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 AsyncTask in dev.dokimos.springai.alibaba
Methods in dev.dokimos.springai.alibaba that return AsyncTaskModifier 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)