Package com.google.genai.gaos
Class Decisions
java.lang.Object
com.google.genai.gaos.Decisions
-
Method Summary
Modifier and TypeMethodDescriptionasync()Switches to the async SDK.create()Evaluates a batch of structured decision questions against a shared context state.create(CreateDecisionRequest body) Evaluates a batch of structured decision questions against a shared context state.create(String apiVersion, CreateDecisionRequest body, Options options) Evaluates a batch of structured decision questions against a shared context state.
-
Method Details
-
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
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
-