Full name: projects.locations.reasoningEngines.memories.ingestEvents
Ingests events for a Memory Bank.
Endpoint
posthttps://{service-endpoint}/v1beta1/{parent}/memories:ingestEvents
Where {service-endpoint} is one of the supported service endpoints.
Path parameters
parentstring
Required. The resource name of the ReasoningEngine to ingest events to. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}
Request body
The request body contains data with the following structure:
streamIdstring
Optional. The id of the stream to ingest events into. If not provided, a new one will be created.
Optional. Configuration for triggering memory generation from this ingestion. If not set, then the stream will be force flushed immediately.
scopemap (key: string, value: string)
Required. The scope of the memories that should be generated from the stream. Memories will be consolidated across memories with the same scope. scope values cannot contain the wildcard character '*'.
forceFlushboolean
Optional. Forces a flush of all pending events in the stream and triggers memory generation immediately bypassing any conditions configured in the generationTriggerConfig.
sourceUnion type
source can be only one of the following:Ingest events directly from the request.
Response body
If successful, the response body contains an instance of Operation.
IngestionDirectContentsSource
Event
A single event to ingest.
Required. The content of the event.
eventIdstring
Optional. A unique identifier for the event. If an event with the same eventId is ingested multiple times, it will be de-duplicated.
Optional. The time at which the event occurred. If provided, this timestamp will be used for ordering events within a stream. If not provided, the server-side ingestion time will be used.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
| JSON representation |
|---|
{
"content": {
object ( |