Class Session (1.140.0)

Session(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A session contains a set of actions between users and Vertex agents.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
expire_time google.protobuf.timestamp_pb2.Timestamp
Optional. Timestamp of when this session is considered expired. This is *always* provided on output, regardless of what was sent on input. The minimum value is 24 hours from the time of creation. This field is a member of oneof_ expiration.
ttl google.protobuf.duration_pb2.Duration
Optional. Input only. The TTL for this session. The minimum value is 24 hours. This field is a member of oneof_ expiration.
name str
Identifier. The resource name of the session. Format: 'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Timestamp when the session was created.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. Timestamp when the session was updated.
display_name str
Optional. The display name of the session.
labels MutableMapping[str, str]
The labels with user-defined metadata to organize your Sessions. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
session_state google.protobuf.struct_pb2.Struct
Optional. Session specific memory which stores key conversation points.
user_id str
Required. Immutable. String id provided by the user

Classes

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

Methods

Session

Session(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A session contains a set of actions between users and Vertex agents.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields