Class QuickAnswer
java.lang.Object
ai.redouble.demo.QuickAnswer
The quick question's answer as the page shows it: the answer and the model's reasoning, the
catalog entry that answered and the model that served it, and what the call cost, priced from
the catalog like every other result on the page. Built from the calls the finished job made, as
its completion event carries them (
capture(JobDispatcher, QuickLLMQuestionTool)), so the cost is there when the answer is.- Since:
- 0.1 (2026-09-27)
- Author:
- Andrey Santrosyan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe calls of one job, delivered by its completion event; seecapture(JobDispatcher, QuickLLMQuestionTool). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QuickAnswer.Capturecapture(JobDispatcher dispatcher, QuickLLMQuestionTool tool) Captures the calls of one quick-question job from its completion event, which carries its own copy of them.getCost()getModel()static QuickAnswerof(QuickLLMQuestionOutput output, List<LLMResponse<?>> responses) The answer of a finished job, with the calls it made.voidvoidvoidsetCurrency(String currency) voidvoidsetReasoning(String reasoning) voidsetServedModel(String servedModel)
-
Constructor Details
-
QuickAnswer
public QuickAnswer()
-
-
Method Details
-
capture
Captures the calls of one quick-question job from its completion event, which carries its own copy of them. The job's context is no source: the dispatcher releases a job's recorded calls from it once the job settles, and a caller that reads the context after the result races that release and finds nothing. Opened before the job is submitted, so the event cannot be missed; closed once the answer is built or the run failed. -
of
The answer of a finished job, with the calls it made. -
getAnswer
-
setAnswer
-
getReasoning
-
setReasoning
-
getModel
-
setModel
-
getServedModel
-
setServedModel
-
getCost
-
setCost
-
getCurrency
-
setCurrency
-