Package io.github.jbastgen.stemma.app.ai
Class AiCall
java.lang.Object
io.github.jbastgen.stemma.app.ai.AiCall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Stops the request: the connection is dropped or the tool is killed, andresult()fails with "Cancelled".result()Completes with the answer, or exceptionally with anAiException.
-
Constructor Details
-
AiCall
public AiCall()
-
-
Method Details
-
result
Completes with the answer, or exceptionally with anAiException. -
cancel
public void cancel()Stops the request: the connection is dropped or the tool is killed, andresult()fails with "Cancelled".
-