Package com.google.genai.gaos
Class AsyncDecisions
java.lang.Object
com.google.genai.gaos.AsyncDecisions
-
Method Summary
Modifier and TypeMethodDescriptioncreate()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.sync()Switches to the sync SDK.
-
Method Details
-
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
-