Skip to contents

Welcome to the Amazon Bedrock AgentCore Data Plane API reference. Data Plane actions process and handle data or workloads within Amazon Web Services services.

Usage

bedrockagentcore(
  config = list(),
  credentials = list(),
  endpoint = NULL,
  region = NULL
)

Arguments

config

Optional configuration of credentials, endpoint, and/or region.

  • credentials:

    • creds:

      • access_key_id: AWS access key ID

      • secret_access_key: AWS secret access key

      • session_token: AWS temporary session token

    • profile: The name of a profile to use. If not given, then the default profile is used.

    • anonymous: Set anonymous credentials.

  • endpoint: The complete URL to use for the constructed client.

  • region: The AWS Region used in instantiating the client.

  • close_connection: Immediately close all HTTP connections.

  • timeout: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

  • s3_force_path_style: Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

  • sts_regional_endpoint: Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

credentials

Optional credentials shorthand for the config parameter

  • creds:

    • access_key_id: AWS access key ID

    • secret_access_key: AWS secret access key

    • session_token: AWS temporary session token

  • profile: The name of a profile to use. If not given, then the default profile is used.

  • anonymous: Set anonymous credentials.

endpoint

Optional shorthand for complete URL to use for the constructed client.

region

Optional shorthand for AWS Region used in instantiating the client.

Value

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Service syntax

svc <- bedrockagentcore(
  config = list(
    credentials = list(
      creds = list(
        access_key_id = "string",
        secret_access_key = "string",
        session_token = "string"
      ),
      profile = "string",
      anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
      access_key_id = "string",
      secret_access_key = "string",
      session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

batch_create_memory_recordsCreates multiple memory records in a single batch operation for the specified memory with custom content
batch_delete_memory_recordsDeletes multiple memory records in a single batch operation from the specified memory
batch_update_memory_recordsUpdates multiple memory records with custom content in a single batch operation within the specified memory
complete_resource_token_authConfirms the user authentication session for obtaining OAuth2
create_ab_testCreates an A/B test for comparing agent configurations
create_eventCreates an event in an AgentCore Memory resource
create_payment_instrumentCreate a new payment instrument for a connector
create_payment_sessionCreate a new payment session
delete_ab_testDeletes an A/B test and its associated gateway rules
delete_batch_evaluationDeletes a batch evaluation and its associated results
delete_eventDeletes an event from an AgentCore Memory resource
delete_memory_recordDeletes a memory record from an AgentCore Memory resource
delete_payment_instrumentDeletes a payment instrument
delete_payment_sessionDeletes a payment session
delete_recommendationDeletes a recommendation and its associated results
evaluatePerforms on-demand evaluation of agent traces using a specified evaluator
get_ab_testRetrieves detailed information about an A/B test, including its configuration, status, and statistical results
get_agent_cardRetrieves the A2A agent card associated with an AgentCore Runtime agent
get_batch_evaluationRetrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details
get_browser_sessionRetrieves detailed information about a specific browser session in Amazon Bedrock AgentCore
get_code_interpreter_sessionRetrieves detailed information about a specific code interpreter session in Amazon Bedrock AgentCore
get_eventRetrieves information about a specific event in an AgentCore Memory resource
get_memory_recordRetrieves a specific memory record from an AgentCore Memory resource
get_payment_instrumentGet a payment instrument by ID
get_payment_instrument_balanceGet the balance of a payment instrument
get_payment_sessionGet a payment session
get_recommendationRetrieves detailed information about a recommendation, including its configuration, status, and results
get_resource_api_keyRetrieves the API key associated with an API key credential provider
get_resource_oauth_2_tokenReturns the OAuth 2
get_resource_payment_tokenGenerates authentication tokens for payment providers that use vendor-specific authentication mechanisms
get_workload_access_tokenObtains a workload access token for agentic workloads not acting on behalf of a user
get_workload_access_token_for_jwtObtains a workload access token for agentic workloads acting on behalf of a user, using a JWT token
get_workload_access_token_for_user_idObtains a workload access token for agentic workloads acting on behalf of a user, using the user's ID
invoke_agent_runtimeSends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time
invoke_agent_runtime_commandExecutes a command in a runtime session container and streams the output back to the caller
invoke_browserInvokes an operating system-level action on a browser session in Amazon Bedrock AgentCore
invoke_code_interpreterExecutes code within an active code interpreter session in Amazon Bedrock AgentCore
invoke_harnessOperation to invoke a Harness
list_ab_testsLists all A/B tests in the account
list_actorsLists all actors in an AgentCore Memory resource
list_batch_evaluationsLists all batch evaluations in the account, providing summary information about each evaluation's status and configuration
list_browser_sessionsRetrieves a list of browser sessions in Amazon Bedrock AgentCore that match the specified criteria
list_code_interpreter_sessionsRetrieves a list of code interpreter sessions in Amazon Bedrock AgentCore that match the specified criteria
list_eventsLists events in an AgentCore Memory resource based on specified criteria
list_memory_extraction_jobsLists all long-term memory extraction jobs that are eligible to be started with optional filtering
list_memory_recordsLists memory records in an AgentCore Memory resource based on specified criteria
list_payment_instrumentsList payment instruments for a manager
list_payment_sessionsList payment sessions
list_recommendationsLists all recommendations in the account, with optional filtering by status
list_sessionsLists sessions in an AgentCore Memory resource based on specified criteria
process_paymentProcesses a payment using a payment instrument within a payment session
retrieve_memory_recordsSearches for and retrieves memory records from an AgentCore Memory resource based on specified search criteria
save_browser_session_profileSaves the current state of a browser session as a reusable profile in Amazon Bedrock AgentCore
search_registry_recordsSearches for registry records using semantic, lexical, or hybrid queries
start_batch_evaluationStarts a batch evaluation job that evaluates agent performance across multiple sessions
start_browser_sessionCreates and initializes a browser session in Amazon Bedrock AgentCore
start_code_interpreter_sessionCreates and initializes a code interpreter session in Amazon Bedrock AgentCore
start_memory_extraction_jobStarts a memory extraction job that processes events that failed extraction previously in an AgentCore Memory resource and produces structured memory records
start_recommendationStarts a recommendation job that analyzes agent traces and generates optimization suggestions for system prompts or tool descriptions to improve agent performance
stop_batch_evaluationStops a running batch evaluation
stop_browser_sessionTerminates an active browser session in Amazon Bedrock AgentCore
stop_code_interpreter_sessionTerminates an active code interpreter session in Amazon Bedrock AgentCore
stop_runtime_sessionStops a session that is running in an running AgentCore Runtime agent
update_ab_testUpdates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status
update_browser_streamUpdates a browser stream

Examples

if (FALSE) { # \dontrun{
svc <- bedrockagentcore()
svc$batch_create_memory_records(
  Foo = 123
)
} # }