Skip to content

Create Invocation

bedrockagentruntime_create_invocation R Documentation

Creates a new invocation within a session

Description

Creates a new invocation within a session. An invocation groups the related invocation steps that store the content from a conversation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Related APIs

  • list_invocations

  • list_sessions

  • get_session

Usage

bedrockagentruntime_create_invocation(description, invocationId,
  sessionIdentifier)

Arguments

description

A description for the interactions in the invocation. For example, "User asking about weather in Seattle".

invocationId

A unique identifier for the invocation in UUID format.

sessionIdentifier

[required] The unique identifier for the associated session for the invocation. You can specify either the session's sessionId or its Amazon Resource Name (ARN).

Value

A list with the following syntax:

list(
  createdAt = as.POSIXct(
    "2015-01-01"
  ),
  invocationId = "string",
  sessionId = "string"
)

Request syntax

svc$create_invocation(
  description = "string",
  invocationId = "string",
  sessionIdentifier = "string"
)