Class Decisions

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

public class Decisions extends Object
  • Method Details

    • async

      public AsyncDecisions async()
      Switches to the async SDK.
      Returns:
      The async SDK
    • create

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

      public CreateDecisionResponse create(@Nonnull CreateDecisionRequest body)
      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:
      The response from the API call
      Throws:
      RuntimeException - subclass if the API call fails
    • create

      public 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:
      The response from the API call
      Throws:
      RuntimeException - subclass if the API call fails