Class FunctionPrompter.PromptResult
java.lang.Object
uno.anahata.ai.tools.FunctionPrompter.PromptResult
- Enclosing interface:
FunctionPrompter
A value object holding the results of a user confirmation prompt.
- Author:
- anahata
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanFlag indicating if the user cancelled the entire dialog.final Map<com.google.genai.types.FunctionCall, FunctionConfirmation> A map linking each proposedFunctionCallto the user'sFunctionConfirmation.final StringAny text the user entered in the comment box of the dialog. -
Constructor Summary
ConstructorsConstructorDescriptionPromptResult(Map<com.google.genai.types.FunctionCall, FunctionConfirmation> functionConfirmations, String userComment, boolean cancelled) Constructs a new PromptResult. -
Method Summary
-
Field Details
-
functionConfirmations
A map linking each proposedFunctionCallto the user'sFunctionConfirmation. -
userComment
Any text the user entered in the comment box of the dialog. -
cancelled
public final boolean cancelledFlag 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.
-
