Class AiCall

java.lang.Object
io.github.jbastgen.stemma.app.ai.AiCall

public final class AiCall extends Object
A request that is running (or has run): wait for result(), or cancel() it.
  • Constructor Details

    • AiCall

      public AiCall()
  • Method Details

    • result

      public CompletableFuture<AiResult> result()
      Completes with the answer, or exceptionally with an AiException.
    • cancel

      public void cancel()
      Stops the request: the connection is dropped or the tool is killed, and result() fails with "Cancelled".