Class Session (0.11.11)

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

External session proto definition.

Attributes

NameDescription
name str
Immutable. Fully qualified name project/*/locations/global/collections/{collection}/engines/{engine}/sessions/*
state google.cloud.discoveryengine_v1beta.types.Session.State
The state of the session.
user_pseudo_id str
A unique identifier for tracking users.
turns MutableSequence[google.cloud.discoveryengine_v1beta.types.Session.Turn]
Turns.
start_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time the session started.
end_time google.protobuf.timestamp_pb2.Timestamp
Output only. The time the session finished.

Classes

State

State(value)

Enumeration of the state of the session.

Values: STATE_UNSPECIFIED (0): State is unspecified. IN_PROGRESS (1): The session is currently open.

Turn

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

Represents a turn, including a query from the user and a answer from service.