Class FunctionPrompter.PromptResult

java.lang.Object
uno.anahata.ai.tools.FunctionPrompter.PromptResult
Enclosing interface:
FunctionPrompter

public static class FunctionPrompter.PromptResult extends Object
A value object holding the results of a user confirmation prompt.
Author:
anahata
  • Field Details

    • functionConfirmations

      public final Map<com.google.genai.types.FunctionCall, FunctionConfirmation> functionConfirmations
      A map linking each proposed FunctionCall to the user's FunctionConfirmation.
    • userComment

      public final String userComment
      Any text the user entered in the comment box of the dialog.
    • cancelled

      public final boolean cancelled
      Flag indicating if the user cancelled the entire dialog.
  • Constructor Details

    • PromptResult

      public PromptResult(Map<com.google.genai.types.FunctionCall, FunctionConfirmation> functionConfirmations, String userComment, boolean cancelled)
      Constructs a new PromptResult.
      Parameters:
      functionConfirmations - The map of confirmations.
      userComment - The user's comment.
      cancelled - Whether the prompt was cancelled.