PermissionValueSpec

  • This document outlines the specifications for requesting user permissions within an agent.

  • It details the structure and fields necessary to define a permission request, including context, specific permissions, and update specifications.

  • UpdatePermissionValueSpec provides additional information required when requesting permission updates, such as the intent and related arguments.

  • JSON representations illustrate how to format the data for both permission requests and update specifications.

Spec for asking for permission.

JSON representation
{
  "optContext": string,
  "permissions": [
    enum (Permission)
  ],
  "updatePermissionValueSpec": {
    object (UpdatePermissionValueSpec)
  }
}
Fields
optContext

string

The context why agent needs to request permission.

permissions[]

enum (Permission)

List of permissions requested by the agent.

updatePermissionValueSpec

object (UpdatePermissionValueSpec)

Additional information needed to fulfill update permission request.

UpdatePermissionValueSpec

Additional information needed for requesting an update permission.

JSON representation
{
  "intent": string,
  "arguments": [
    {
      object (Argument)
    }
  ]
}
Fields
intent

string

The intent that the user wants to get updates from.

arguments[]

object (Argument)

The list of arguments necessary to fulfill an update.