Skip to content

Get Event

bedrockagentcore_get_event R Documentation

Retrieves information about a specific event in an AgentCore Memory resource

Description

Retrieves information about a specific event in an AgentCore Memory resource.

To use this operation, you must have the bedrock-agentcore:GetEvent permission.

Usage

bedrockagentcore_get_event(memoryId, sessionId, actorId, eventId)

Arguments

memoryId

[required] The identifier of the AgentCore Memory resource containing the event.

sessionId

[required] The identifier of the session containing the event.

actorId

[required] The identifier of the actor associated with the event.

eventId

[required] The identifier of the event to retrieve.

Value

A list with the following syntax:

list(
  event = list(
    memoryId = "string",
    actorId = "string",
    sessionId = "string",
    eventId = "string",
    eventTimestamp = as.POSIXct(
      "2015-01-01"
    ),
    payload = list(
      list(
        conversational = list(
          content = list(
            text = "string"
          ),
          role = "ASSISTANT"|"USER"|"TOOL"|"OTHER"
        ),
        blob = list()
      )
    ),
    branch = list(
      rootEventId = "string",
      name = "string"
    ),
    metadata = list(
      list(
        stringValue = "string"
      )
    )
  )
)

Request syntax

svc$get_event(
  memoryId = "string",
  sessionId = "string",
  actorId = "string",
  eventId = "string"
)