Context

Represents a context.

JSON representation
{
  "name": string,
  "lifespanCount": number,
  "parameters": {
    object
  }
}
Fields
name

string

Required. The unique identifier of the context. Format: projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>.

lifespanCount

number

Optional. The number of conversational query requests after which the context expires. If set to 0 (the default) the context expires immediately. Contexts expire automatically after 20 minutes even if there are no matching queries.

parameters

object (Struct format)

Optional. The collection of parameters associated with this context. Refer to this doc for syntax.