Package com.google.genai.gaos
Class Interactions
java.lang.Object
com.google.genai.gaos.Interactions
-
Method Summary
Modifier and TypeMethodDescriptionasync()Switches to the async SDK.cancel()Canceling an interactionCanceling an interactionCanceling an interactioncreate()Creating an interactionCreating an interactioncreate(String apiVersion, CreateInteractionRequestBody body, Options options) Creating an interactiondelete()Deleting an interactionDeleting an interactionDeleting an interactionget()Retrieving an interactionget(GetInteractionByIdRequest request) Retrieving an interactionget(GetInteractionByIdRequest request, Options options) Retrieving an interaction
-
Method Details
-
async
Switches to the async SDK.- Returns:
- The async SDK
-
create
Creating an interactionCreates a new interaction.
- Returns:
- The call builder
-
create
Creating an interactionCreates a new interaction.
- Parameters:
body- The request body.- Returns:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
create
public CreateInteractionResponse create(@Nullable String apiVersion, @Nonnull CreateInteractionRequestBody body, @Nullable Options options) Creating an interactionCreates a new interaction.
- Parameters:
apiVersion- Which version of the API to use.body- The request body.options- additional options- Returns:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
delete
Deleting an interactionDeletes the interaction by id.
- Returns:
- The call builder
-
delete
Deleting an interactionDeletes the interaction by id.
- Parameters:
id- The unique identifier of the interaction to delete.- Returns:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
delete
public DeleteInteractionResponse delete(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Deleting an interactionDeletes the interaction by id.
- Parameters:
apiVersion- Which version of the API to use.id- The unique identifier of the interaction to delete.options- additional options- Returns:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
get
Retrieving an interactionRetrieves the full details of a single interaction based on its `Interaction.id`.
- Returns:
- The call builder
-
get
Retrieving an interactionRetrieves the full details of a single interaction based on its `Interaction.id`.
- Parameters:
request- The request object containing all the parameters for the API call.- Returns:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
get
public GetInteractionByIdResponse get(@Nonnull GetInteractionByIdRequest request, @Nullable Options options) Retrieving an interactionRetrieves the full details of a single interaction based on its `Interaction.id`.
- Parameters:
request- The request object containing all the parameters for the API call.options- additional options- Returns:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
cancel
Canceling an interactionCancels an interaction by id. This only applies to background interactions that are still running.
- Returns:
- The call builder
-
cancel
Canceling an interactionCancels an interaction by id. This only applies to background interactions that are still running.
- Parameters:
id- The unique identifier of the interaction to cancel.- Returns:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-
cancel
public CancelInteractionByIdResponse cancel(@Nullable String apiVersion, @Nonnull String id, @Nullable Options options) Canceling an interactionCancels an interaction by id. This only applies to background interactions that are still running.
- Parameters:
apiVersion- Which version of the API to use.id- The unique identifier of the interaction to cancel.options- additional options- Returns:
- The response from the API call
- Throws:
RuntimeException- subclass if the API call fails
-