Represents the action to take for a tool call that requires confirmation.
JSON representation |
---|
{
"answerRecord": string,
"parameters": {
object
},
"action": enum ( |
Fields | |
---|---|
answerRecord |
Required. Format: |
parameters |
Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters. |
action |
Optional. The type of action to take with the tool. |
sendTime |
Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Action
Indicate what type of action to take with the tool call.
Enums | |
---|---|
ACTION_UNSPECIFIED |
Action not specified. |
CANCEL |
Indicates the user chooses to not make the tool call. It is only applicable to tool calls that are waiting for user confirmation. |
REVISE |
Makes the tool call with provided parameters. This action is intended for tool calls that only read but not write data. |
CONFIRM |
Makes the tool call with provided parameters. This action is intended for tool calls that may write data. |