Class AsyncDecisions

java.lang.Object
com.google.genai.gaos.AsyncDecisions

public class AsyncDecisions extends Object
  • Method Details

    • sync

      public Decisions sync()
      Switches to the sync SDK.
      Returns:
      The sync SDK
    • create

      Evaluates a batch of structured decision questions against a shared context state.
      Returns:
      The async call builder
    • create

      Evaluates a batch of structured decision questions against a shared context state.
      Parameters:
      body - Request message for `CreateDecision`. Evaluates one or more structured decision questions (Noul, Choice, or Score) against a shared `input`.
      Returns:
      CompletableFuture<CreateDecisionResponse> - The async response
    • create

      public CompletableFuture<CreateDecisionResponse> create(@Nullable String apiVersion, @Nonnull CreateDecisionRequest body, @Nullable Options options)
      Evaluates a batch of structured decision questions against a shared context state.
      Parameters:
      apiVersion - API version for request routing.
      body - Request message for `CreateDecision`. Evaluates one or more structured decision questions (Noul, Choice, or Score) against a shared `input`.
      options - additional options
      Returns:
      CompletableFuture<CreateDecisionResponse> - The async response