Skip to main content

events

Creates, updates, deletes, gets or lists an events resource.

Overview

Nameevents
TypeResource
Idgoogle.aiplatform.events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the event. Format:projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}.
actionsobjectOptional. Actions executed by the agent. (id: GoogleCloudAiplatformV1EventActions)
authorstringRequired. The name of the agent that sent the event, or user.
contentobjectThe structured data content of a message. A Content message contains a role field, which indicates the producer of the content, and a parts field, which contains the multi-part data of the message. (id: GoogleCloudAiplatformV1Content)
errorCodestringOptional. Error code if the response is an error. Code varies by model.
errorMessagestringOptional. Error message if the response is an error.
eventMetadataobjectOptional. Metadata relating to this event. (id: GoogleCloudAiplatformV1EventMetadata)
invocationIdstringRequired. The invocation id of the event, multiple events can have the same invocation id.
timestampstring (google-datetime)Required. Timestamp when the event was created on client side.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprojectsId, locationsId, reasoningEnginesId, sessionsIdorderBy, pageToken, pageSize, filterLists Events in a given session.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
reasoningEnginesIdstring
sessionsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Lists Events in a given session.

SELECT
name,
actions,
author,
content,
errorCode,
errorMessage,
eventMetadata,
invocationId,
timestamp
FROM google.aiplatform.events
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND reasoningEnginesId = '{{ reasoningEnginesId }}' -- required
AND sessionsId = '{{ sessionsId }}' -- required
AND orderBy = '{{ orderBy }}'
AND pageToken = '{{ pageToken }}'
AND pageSize = '{{ pageSize }}'
AND filter = '{{ filter }}'
;