REST Resource: projects.agent.sessions.contexts

Resource: Context

Represents a context.

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

string

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

The Context ID is always converted to lowercase, may only contain characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long.

lifespanCount

integer

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 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.

Methods

create

Creates a context.

delete

Deletes the specified context.

get

Retrieves the specified context.

list

Returns the list of all contexts in the specified session.

patch

Updates the specified context.
¿Te sirvió esta página? Envíanos tu opinión:

Enviar comentarios sobre…

¿Necesitas ayuda? Visita nuestra página de asistencia.