R/bedrockagentcore_operations.R

Defines functions bedrockagentcore_update_browser_stream bedrockagentcore_update_ab_test bedrockagentcore_stop_runtime_session bedrockagentcore_stop_code_interpreter_session bedrockagentcore_stop_browser_session bedrockagentcore_stop_batch_evaluation bedrockagentcore_start_recommendation bedrockagentcore_start_memory_extraction_job bedrockagentcore_start_code_interpreter_session bedrockagentcore_start_browser_session bedrockagentcore_start_batch_evaluation bedrockagentcore_search_registry_records bedrockagentcore_save_browser_session_profile bedrockagentcore_retrieve_memory_records bedrockagentcore_process_payment bedrockagentcore_list_sessions bedrockagentcore_list_recommendations bedrockagentcore_list_payment_sessions bedrockagentcore_list_payment_instruments bedrockagentcore_list_memory_records bedrockagentcore_list_memory_extraction_jobs bedrockagentcore_list_events bedrockagentcore_list_code_interpreter_sessions bedrockagentcore_list_browser_sessions bedrockagentcore_list_batch_evaluations bedrockagentcore_list_actors bedrockagentcore_list_ab_tests bedrockagentcore_invoke_harness bedrockagentcore_invoke_code_interpreter bedrockagentcore_invoke_browser bedrockagentcore_invoke_agent_runtime_command bedrockagentcore_invoke_agent_runtime bedrockagentcore_get_workload_access_token_for_user_id bedrockagentcore_get_workload_access_token_for_jwt bedrockagentcore_get_workload_access_token bedrockagentcore_get_resource_payment_token bedrockagentcore_get_resource_oauth_2_token bedrockagentcore_get_resource_api_key bedrockagentcore_get_recommendation bedrockagentcore_get_payment_session bedrockagentcore_get_payment_instrument_balance bedrockagentcore_get_payment_instrument bedrockagentcore_get_memory_record bedrockagentcore_get_event bedrockagentcore_get_code_interpreter_session bedrockagentcore_get_browser_session bedrockagentcore_get_batch_evaluation bedrockagentcore_get_agent_card bedrockagentcore_get_ab_test bedrockagentcore_evaluate bedrockagentcore_delete_recommendation bedrockagentcore_delete_payment_session bedrockagentcore_delete_payment_instrument bedrockagentcore_delete_memory_record bedrockagentcore_delete_event bedrockagentcore_delete_batch_evaluation bedrockagentcore_delete_ab_test bedrockagentcore_create_payment_session bedrockagentcore_create_payment_instrument bedrockagentcore_create_event bedrockagentcore_create_ab_test bedrockagentcore_complete_resource_token_auth bedrockagentcore_batch_update_memory_records bedrockagentcore_batch_delete_memory_records bedrockagentcore_batch_create_memory_records

Documented in bedrockagentcore_batch_create_memory_records bedrockagentcore_batch_delete_memory_records bedrockagentcore_batch_update_memory_records bedrockagentcore_complete_resource_token_auth bedrockagentcore_create_ab_test bedrockagentcore_create_event bedrockagentcore_create_payment_instrument bedrockagentcore_create_payment_session bedrockagentcore_delete_ab_test bedrockagentcore_delete_batch_evaluation bedrockagentcore_delete_event bedrockagentcore_delete_memory_record bedrockagentcore_delete_payment_instrument bedrockagentcore_delete_payment_session bedrockagentcore_delete_recommendation bedrockagentcore_evaluate bedrockagentcore_get_ab_test bedrockagentcore_get_agent_card bedrockagentcore_get_batch_evaluation bedrockagentcore_get_browser_session bedrockagentcore_get_code_interpreter_session bedrockagentcore_get_event bedrockagentcore_get_memory_record bedrockagentcore_get_payment_instrument bedrockagentcore_get_payment_instrument_balance bedrockagentcore_get_payment_session bedrockagentcore_get_recommendation bedrockagentcore_get_resource_api_key bedrockagentcore_get_resource_oauth_2_token bedrockagentcore_get_resource_payment_token bedrockagentcore_get_workload_access_token bedrockagentcore_get_workload_access_token_for_jwt bedrockagentcore_get_workload_access_token_for_user_id bedrockagentcore_invoke_agent_runtime bedrockagentcore_invoke_agent_runtime_command bedrockagentcore_invoke_browser bedrockagentcore_invoke_code_interpreter bedrockagentcore_invoke_harness bedrockagentcore_list_ab_tests bedrockagentcore_list_actors bedrockagentcore_list_batch_evaluations bedrockagentcore_list_browser_sessions bedrockagentcore_list_code_interpreter_sessions bedrockagentcore_list_events bedrockagentcore_list_memory_extraction_jobs bedrockagentcore_list_memory_records bedrockagentcore_list_payment_instruments bedrockagentcore_list_payment_sessions bedrockagentcore_list_recommendations bedrockagentcore_list_sessions bedrockagentcore_process_payment bedrockagentcore_retrieve_memory_records bedrockagentcore_save_browser_session_profile bedrockagentcore_search_registry_records bedrockagentcore_start_batch_evaluation bedrockagentcore_start_browser_session bedrockagentcore_start_code_interpreter_session bedrockagentcore_start_memory_extraction_job bedrockagentcore_start_recommendation bedrockagentcore_stop_batch_evaluation bedrockagentcore_stop_browser_session bedrockagentcore_stop_code_interpreter_session bedrockagentcore_stop_runtime_session bedrockagentcore_update_ab_test bedrockagentcore_update_browser_stream

# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include bedrockagentcore_service.R
NULL

#' Creates multiple memory records in a single batch operation for the
#' specified memory with custom content
#'
#' @description
#' Creates multiple memory records in a single batch operation for the specified memory with custom content.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_batch_create_memory_records/](https://www.paws-r-sdk.com/docs/bedrockagentcore_batch_create_memory_records/) for full documentation.
#'
#' @param memoryId [required] The unique ID of the memory resource where records will be created.
#' @param records [required] A list of memory record creation inputs to be processed in the batch operation.
#' @param clientToken A unique, case-sensitive identifier to ensure idempotent processing of the batch request.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_batch_create_memory_records
bedrockagentcore_batch_create_memory_records <- function(memoryId, records, clientToken = NULL) {
  op <- new_operation(
    name = "BatchCreateMemoryRecords",
    http_method = "POST",
    http_path = "/memories/{memoryId}/memoryRecords/batchCreate",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$batch_create_memory_records_input(memoryId = memoryId, records = records, clientToken = clientToken)
  output <- .bedrockagentcore$batch_create_memory_records_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$batch_create_memory_records <- bedrockagentcore_batch_create_memory_records

#' Deletes multiple memory records in a single batch operation from the
#' specified memory
#'
#' @description
#' Deletes multiple memory records in a single batch operation from the specified memory.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_batch_delete_memory_records/](https://www.paws-r-sdk.com/docs/bedrockagentcore_batch_delete_memory_records/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The unique ID of the memory resource where records will be deleted.
#' @param records &#91;required&#93; A list of memory record deletion inputs to be processed in the batch operation.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_batch_delete_memory_records
bedrockagentcore_batch_delete_memory_records <- function(memoryId, records) {
  op <- new_operation(
    name = "BatchDeleteMemoryRecords",
    http_method = "POST",
    http_path = "/memories/{memoryId}/memoryRecords/batchDelete",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$batch_delete_memory_records_input(memoryId = memoryId, records = records)
  output <- .bedrockagentcore$batch_delete_memory_records_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$batch_delete_memory_records <- bedrockagentcore_batch_delete_memory_records

#' Updates multiple memory records with custom content in a single batch
#' operation within the specified memory
#'
#' @description
#' Updates multiple memory records with custom content in a single batch operation within the specified memory.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_batch_update_memory_records/](https://www.paws-r-sdk.com/docs/bedrockagentcore_batch_update_memory_records/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The unique ID of the memory resource where records will be updated.
#' @param records &#91;required&#93; A list of memory record update inputs to be processed in the batch operation.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_batch_update_memory_records
bedrockagentcore_batch_update_memory_records <- function(memoryId, records) {
  op <- new_operation(
    name = "BatchUpdateMemoryRecords",
    http_method = "POST",
    http_path = "/memories/{memoryId}/memoryRecords/batchUpdate",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$batch_update_memory_records_input(memoryId = memoryId, records = records)
  output <- .bedrockagentcore$batch_update_memory_records_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$batch_update_memory_records <- bedrockagentcore_batch_update_memory_records

#' Confirms the user authentication session for obtaining OAuth2
#'
#' @description
#' Confirms the user authentication session for obtaining OAuth2.0 tokens for a resource.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_complete_resource_token_auth/](https://www.paws-r-sdk.com/docs/bedrockagentcore_complete_resource_token_auth/) for full documentation.
#'
#' @param userIdentifier &#91;required&#93; The OAuth2.0 token or user ID that was used to generate the workload access token used for initiating the user authorization flow to retrieve OAuth2.0 tokens.
#' @param sessionUri &#91;required&#93; Unique identifier for the user's authentication session for retrieving OAuth2 tokens. This ID tracks the authorization flow state across multiple requests and responses during the OAuth2 authentication process.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_complete_resource_token_auth
bedrockagentcore_complete_resource_token_auth <- function(userIdentifier, sessionUri) {
  op <- new_operation(
    name = "CompleteResourceTokenAuth",
    http_method = "POST",
    http_path = "/identities/CompleteResourceTokenAuth",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$complete_resource_token_auth_input(userIdentifier = userIdentifier, sessionUri = sessionUri)
  output <- .bedrockagentcore$complete_resource_token_auth_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$complete_resource_token_auth <- bedrockagentcore_complete_resource_token_auth

#' Creates an A/B test for comparing agent configurations
#'
#' @description
#' Creates an A/B test for comparing agent configurations. A/B tests split traffic between a control variant and a treatment variant through a gateway, then evaluate performance using online evaluation configurations to determine which variant performs better.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_create_ab_test/](https://www.paws-r-sdk.com/docs/bedrockagentcore_create_ab_test/) for full documentation.
#'
#' @param name &#91;required&#93; The name of the A/B test. Must be unique within your account.
#' @param description The description of the A/B test.
#' @param gatewayArn &#91;required&#93; The Amazon Resource Name (ARN) of the gateway to use for traffic splitting.
#' @param variants &#91;required&#93; The list of variants for the A/B test. Must contain exactly two variants: a control (C) and a treatment (T1), each with a configuration bundle or target reference and a traffic weight.
#' @param gatewayFilter Optional filter to restrict which gateway target paths are included in the A/B test.
#' @param evaluationConfig &#91;required&#93; The evaluation configuration specifying which online evaluation configurations to use for measuring variant performance.
#' @param roleArn &#91;required&#93; The IAM role ARN that grants permissions for the A/B test to access gateway and evaluation resources.
#' @param enableOnCreate Whether to enable the A/B test immediately upon creation. If true, traffic splitting begins automatically.
#' @param clientToken A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_create_ab_test
bedrockagentcore_create_ab_test <- function(name, description = NULL, gatewayArn, variants, gatewayFilter = NULL, evaluationConfig, roleArn, enableOnCreate = NULL, clientToken = NULL) {
  op <- new_operation(
    name = "CreateABTest",
    http_method = "POST",
    http_path = "/ab-tests",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$create_ab_test_input(name = name, description = description, gatewayArn = gatewayArn, variants = variants, gatewayFilter = gatewayFilter, evaluationConfig = evaluationConfig, roleArn = roleArn, enableOnCreate = enableOnCreate, clientToken = clientToken)
  output <- .bedrockagentcore$create_ab_test_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$create_ab_test <- bedrockagentcore_create_ab_test

#' Creates an event in an AgentCore Memory resource
#'
#' @description
#' Creates an event in an AgentCore Memory resource. Events represent interactions or activities that occur within a session and are associated with specific actors.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_create_event/](https://www.paws-r-sdk.com/docs/bedrockagentcore_create_event/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The identifier of the AgentCore Memory resource in which to create the event.
#' @param actorId &#91;required&#93; The identifier of the actor associated with this event. An actor represents an entity that participates in sessions and generates events.
#' @param sessionId The identifier of the session in which this event occurs. A session represents a sequence of related events.
#' @param eventTimestamp &#91;required&#93; The timestamp when the event occurred. If not specified, the current time is used.
#' @param payload &#91;required&#93; The content payload of the event. This can include conversational data or binary content.
#' @param branch The branch information for this event. Branches allow for organizing events into different conversation threads or paths.
#' @param clientToken A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, AgentCore ignores the request, but does not return an error.
#' @param metadata The key-value metadata to attach to the event.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_create_event
bedrockagentcore_create_event <- function(memoryId, actorId, sessionId = NULL, eventTimestamp, payload, branch = NULL, clientToken = NULL, metadata = NULL) {
  op <- new_operation(
    name = "CreateEvent",
    http_method = "POST",
    http_path = "/memories/{memoryId}/events",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$create_event_input(memoryId = memoryId, actorId = actorId, sessionId = sessionId, eventTimestamp = eventTimestamp, payload = payload, branch = branch, clientToken = clientToken, metadata = metadata)
  output <- .bedrockagentcore$create_event_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$create_event <- bedrockagentcore_create_event

#' Create a new payment instrument for a connector
#'
#' @description
#' Create a new payment instrument for a connector.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_create_payment_instrument/](https://www.paws-r-sdk.com/docs/bedrockagentcore_create_payment_instrument/) for full documentation.
#'
#' @param userId The user ID associated with this payment instrument.
#' @param agentName The agent name associated with this request, used for observability.
#' @param paymentManagerArn &#91;required&#93; The ARN of the payment manager that owns this payment instrument.
#' @param paymentConnectorId &#91;required&#93; The ID of the payment connector to use for this instrument.
#' @param paymentInstrumentType &#91;required&#93; The type of payment instrument being created.
#' @param paymentInstrumentDetails &#91;required&#93; The details of the payment instrument.
#' @param clientToken A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_create_payment_instrument
bedrockagentcore_create_payment_instrument <- function(userId = NULL, agentName = NULL, paymentManagerArn, paymentConnectorId, paymentInstrumentType, paymentInstrumentDetails, clientToken = NULL) {
  op <- new_operation(
    name = "CreatePaymentInstrument",
    http_method = "POST",
    http_path = "/payments/createPaymentInstrument",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$create_payment_instrument_input(userId = userId, agentName = agentName, paymentManagerArn = paymentManagerArn, paymentConnectorId = paymentConnectorId, paymentInstrumentType = paymentInstrumentType, paymentInstrumentDetails = paymentInstrumentDetails, clientToken = clientToken)
  output <- .bedrockagentcore$create_payment_instrument_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$create_payment_instrument <- bedrockagentcore_create_payment_instrument

#' Create a new payment session
#'
#' @description
#' Create a new payment session.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_create_payment_session/](https://www.paws-r-sdk.com/docs/bedrockagentcore_create_payment_session/) for full documentation.
#'
#' @param userId The user ID associated with this payment session.
#' @param agentName The agent name associated with this request, used for observability.
#' @param paymentManagerArn &#91;required&#93; The ARN of the payment manager that owns this session.
#' @param limits The spending limits for this payment session.
#' @param expiryTimeInMinutes &#91;required&#93; The session expiry time in minutes. Must be between 15 and 480 minutes.
#' @param clientToken A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_create_payment_session
bedrockagentcore_create_payment_session <- function(userId = NULL, agentName = NULL, paymentManagerArn, limits = NULL, expiryTimeInMinutes, clientToken = NULL) {
  op <- new_operation(
    name = "CreatePaymentSession",
    http_method = "POST",
    http_path = "/payments/createPaymentSession",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$create_payment_session_input(userId = userId, agentName = agentName, paymentManagerArn = paymentManagerArn, limits = limits, expiryTimeInMinutes = expiryTimeInMinutes, clientToken = clientToken)
  output <- .bedrockagentcore$create_payment_session_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$create_payment_session <- bedrockagentcore_create_payment_session

#' Deletes an A/B test and its associated gateway rules
#'
#' @description
#' Deletes an A/B test and its associated gateway rules.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_ab_test/](https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_ab_test/) for full documentation.
#'
#' @param abTestId &#91;required&#93; The unique identifier of the A/B test to delete.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_delete_ab_test
bedrockagentcore_delete_ab_test <- function(abTestId) {
  op <- new_operation(
    name = "DeleteABTest",
    http_method = "DELETE",
    http_path = "/ab-tests/{abTestId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$delete_ab_test_input(abTestId = abTestId)
  output <- .bedrockagentcore$delete_ab_test_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$delete_ab_test <- bedrockagentcore_delete_ab_test

#' Deletes a batch evaluation and its associated results
#'
#' @description
#' Deletes a batch evaluation and its associated results.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_batch_evaluation/](https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_batch_evaluation/) for full documentation.
#'
#' @param batchEvaluationId &#91;required&#93; The unique identifier of the batch evaluation to delete.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_delete_batch_evaluation
bedrockagentcore_delete_batch_evaluation <- function(batchEvaluationId) {
  op <- new_operation(
    name = "DeleteBatchEvaluation",
    http_method = "DELETE",
    http_path = "/evaluations/batch-evaluate/{batchEvaluationId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$delete_batch_evaluation_input(batchEvaluationId = batchEvaluationId)
  output <- .bedrockagentcore$delete_batch_evaluation_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$delete_batch_evaluation <- bedrockagentcore_delete_batch_evaluation

#' Deletes an event from an AgentCore Memory resource
#'
#' @description
#' Deletes an event from an AgentCore Memory resource. When you delete an event, it is permanently removed.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_event/](https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_event/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The identifier of the AgentCore Memory resource from which to delete the event.
#' @param sessionId &#91;required&#93; The identifier of the session containing the event to delete.
#' @param eventId &#91;required&#93; The identifier of the event to delete.
#' @param actorId &#91;required&#93; The identifier of the actor associated with the event to delete.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_delete_event
bedrockagentcore_delete_event <- function(memoryId, sessionId, eventId, actorId) {
  op <- new_operation(
    name = "DeleteEvent",
    http_method = "DELETE",
    http_path = "/memories/{memoryId}/actor/{actorId}/sessions/{sessionId}/events/{eventId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$delete_event_input(memoryId = memoryId, sessionId = sessionId, eventId = eventId, actorId = actorId)
  output <- .bedrockagentcore$delete_event_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$delete_event <- bedrockagentcore_delete_event

#' Deletes a memory record from an AgentCore Memory resource
#'
#' @description
#' Deletes a memory record from an AgentCore Memory resource. When you delete a memory record, it is permanently removed.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_memory_record/](https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_memory_record/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The identifier of the AgentCore Memory resource from which to delete the memory record.
#' @param memoryRecordId &#91;required&#93; The identifier of the memory record to delete.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_delete_memory_record
bedrockagentcore_delete_memory_record <- function(memoryId, memoryRecordId) {
  op <- new_operation(
    name = "DeleteMemoryRecord",
    http_method = "DELETE",
    http_path = "/memories/{memoryId}/memoryRecords/{memoryRecordId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$delete_memory_record_input(memoryId = memoryId, memoryRecordId = memoryRecordId)
  output <- .bedrockagentcore$delete_memory_record_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$delete_memory_record <- bedrockagentcore_delete_memory_record

#' Deletes a payment instrument
#'
#' @description
#' Deletes a payment instrument. This is a soft delete operation that preserves the record for audit and compliance purposes.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_payment_instrument/](https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_payment_instrument/) for full documentation.
#'
#' @param userId The user ID making the delete request. Must match the instrument's userId.
#' @param paymentManagerArn &#91;required&#93; The payment manager ARN. Must match the instrument's paymentManagerArn.
#' @param paymentConnectorId &#91;required&#93; The payment connector ID. Must match the instrument's paymentConnectorId.
#' @param paymentInstrumentId &#91;required&#93; The payment instrument ID to delete.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_delete_payment_instrument
bedrockagentcore_delete_payment_instrument <- function(userId = NULL, paymentManagerArn, paymentConnectorId, paymentInstrumentId) {
  op <- new_operation(
    name = "DeletePaymentInstrument",
    http_method = "POST",
    http_path = "/payments/deletePaymentInstrument",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$delete_payment_instrument_input(userId = userId, paymentManagerArn = paymentManagerArn, paymentConnectorId = paymentConnectorId, paymentInstrumentId = paymentInstrumentId)
  output <- .bedrockagentcore$delete_payment_instrument_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$delete_payment_instrument <- bedrockagentcore_delete_payment_instrument

#' Deletes a payment session
#'
#' @description
#' Deletes a payment session. This permanently removes the payment session record.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_payment_session/](https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_payment_session/) for full documentation.
#'
#' @param userId The user ID making the delete request. Must match the session's userId.
#' @param paymentManagerArn &#91;required&#93; The payment manager ARN. Must match the session's paymentManagerArn.
#' @param paymentSessionId &#91;required&#93; The payment session ID to delete.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_delete_payment_session
bedrockagentcore_delete_payment_session <- function(userId = NULL, paymentManagerArn, paymentSessionId) {
  op <- new_operation(
    name = "DeletePaymentSession",
    http_method = "POST",
    http_path = "/payments/deletePaymentSession",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$delete_payment_session_input(userId = userId, paymentManagerArn = paymentManagerArn, paymentSessionId = paymentSessionId)
  output <- .bedrockagentcore$delete_payment_session_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$delete_payment_session <- bedrockagentcore_delete_payment_session

#' Deletes a recommendation and its associated results
#'
#' @description
#' Deletes a recommendation and its associated results.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_recommendation/](https://www.paws-r-sdk.com/docs/bedrockagentcore_delete_recommendation/) for full documentation.
#'
#' @param recommendationId &#91;required&#93; The unique identifier of the recommendation to delete.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_delete_recommendation
bedrockagentcore_delete_recommendation <- function(recommendationId) {
  op <- new_operation(
    name = "DeleteRecommendation",
    http_method = "DELETE",
    http_path = "/recommendations/{recommendationId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$delete_recommendation_input(recommendationId = recommendationId)
  output <- .bedrockagentcore$delete_recommendation_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$delete_recommendation <- bedrockagentcore_delete_recommendation

#' Performs on-demand evaluation of agent traces using a specified
#' evaluator
#'
#' @description
#' Performs on-demand evaluation of agent traces using a specified evaluator. This synchronous API accepts traces in OpenTelemetry format and returns immediate scoring results with detailed explanations.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_evaluate/](https://www.paws-r-sdk.com/docs/bedrockagentcore_evaluate/) for full documentation.
#'
#' @param evaluatorId &#91;required&#93; The unique identifier of the evaluator to use for scoring. Can be a built-in evaluator (e.g., `Builtin.Helpfulness`, `Builtin.Correctness`) or a custom evaluator Id created through the control plane API.
#' @param evaluationInput &#91;required&#93; The input data containing agent session spans to be evaluated. Includes a list of spans in OpenTelemetry format from supported frameworks like Strands (AgentCore Runtime) or LangGraph with OpenInference instrumentation.
#' @param evaluationTarget The specific trace or span IDs to evaluate within the provided input. Allows targeting evaluation at different levels: individual tool calls, single request-response interactions (traces), or entire conversation sessions.
#' @param evaluationReferenceInputs Ground truth data to compare against agent responses during evaluation. Allows to provide expected responses, assertions, and expected tool trajectories at different evaluation levels. Session-level reference inputs apply to the entire conversation, while trace-level reference inputs target specific request-response interactions identified by trace ID.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_evaluate
bedrockagentcore_evaluate <- function(evaluatorId, evaluationInput, evaluationTarget = NULL, evaluationReferenceInputs = NULL) {
  op <- new_operation(
    name = "Evaluate",
    http_method = "POST",
    http_path = "/evaluations/evaluate/{evaluatorId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$evaluate_input(evaluatorId = evaluatorId, evaluationInput = evaluationInput, evaluationTarget = evaluationTarget, evaluationReferenceInputs = evaluationReferenceInputs)
  output <- .bedrockagentcore$evaluate_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$evaluate <- bedrockagentcore_evaluate

#' Retrieves detailed information about an A/B test, including its
#' configuration, status, and statistical results
#'
#' @description
#' Retrieves detailed information about an A/B test, including its configuration, status, and statistical results.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_ab_test/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_ab_test/) for full documentation.
#'
#' @param abTestId &#91;required&#93; The unique identifier of the A/B test to retrieve.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_ab_test
bedrockagentcore_get_ab_test <- function(abTestId) {
  op <- new_operation(
    name = "GetABTest",
    http_method = "GET",
    http_path = "/ab-tests/{abTestId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_ab_test_input(abTestId = abTestId)
  output <- .bedrockagentcore$get_ab_test_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_ab_test <- bedrockagentcore_get_ab_test

#' Retrieves the A2A agent card associated with an AgentCore Runtime agent
#'
#' @description
#' Retrieves the A2A agent card associated with an AgentCore Runtime agent.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_agent_card/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_agent_card/) for full documentation.
#'
#' @param runtimeSessionId The session ID that the AgentCore Runtime agent is using.
#' @param agentRuntimeArn &#91;required&#93; The ARN of the AgentCore Runtime agent for which you want to get the A2A agent card.
#' @param qualifier Optional qualifier to specify an agent alias, such as `prod`code\> or `dev`. If you don't provide a value, the DEFAULT alias is used.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_agent_card
bedrockagentcore_get_agent_card <- function(runtimeSessionId = NULL, agentRuntimeArn, qualifier = NULL) {
  op <- new_operation(
    name = "GetAgentCard",
    http_method = "GET",
    http_path = "/runtimes/{agentRuntimeArn}/invocations/.well-known/agent-card.json",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_agent_card_input(runtimeSessionId = runtimeSessionId, agentRuntimeArn = agentRuntimeArn, qualifier = qualifier)
  output <- .bedrockagentcore$get_agent_card_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_agent_card <- bedrockagentcore_get_agent_card

#' Retrieves detailed information about a batch evaluation, including its
#' status, configuration, results, and any error details
#'
#' @description
#' Retrieves detailed information about a batch evaluation, including its status, configuration, results, and any error details.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_batch_evaluation/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_batch_evaluation/) for full documentation.
#'
#' @param batchEvaluationId &#91;required&#93; The unique identifier of the batch evaluation to retrieve.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_batch_evaluation
bedrockagentcore_get_batch_evaluation <- function(batchEvaluationId) {
  op <- new_operation(
    name = "GetBatchEvaluation",
    http_method = "GET",
    http_path = "/evaluations/batch-evaluate/{batchEvaluationId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_batch_evaluation_input(batchEvaluationId = batchEvaluationId)
  output <- .bedrockagentcore$get_batch_evaluation_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_batch_evaluation <- bedrockagentcore_get_batch_evaluation

#' Retrieves detailed information about a specific browser session in
#' Amazon Bedrock AgentCore
#'
#' @description
#' Retrieves detailed information about a specific browser session in Amazon Bedrock AgentCore. This operation returns the session's configuration, current status, associated streams, and metadata.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_browser_session/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_browser_session/) for full documentation.
#'
#' @param browserIdentifier &#91;required&#93; The unique identifier of the browser associated with the session.
#' @param sessionId &#91;required&#93; The unique identifier of the browser session to retrieve.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_browser_session
bedrockagentcore_get_browser_session <- function(browserIdentifier, sessionId) {
  op <- new_operation(
    name = "GetBrowserSession",
    http_method = "GET",
    http_path = "/browsers/{browserIdentifier}/sessions/get",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_browser_session_input(browserIdentifier = browserIdentifier, sessionId = sessionId)
  output <- .bedrockagentcore$get_browser_session_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_browser_session <- bedrockagentcore_get_browser_session

#' Retrieves detailed information about a specific code interpreter session
#' in Amazon Bedrock AgentCore
#'
#' @description
#' Retrieves detailed information about a specific code interpreter session in Amazon Bedrock AgentCore. This operation returns the session's configuration, current status, and metadata.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_code_interpreter_session/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_code_interpreter_session/) for full documentation.
#'
#' @param codeInterpreterIdentifier &#91;required&#93; The unique identifier of the code interpreter associated with the session.
#' @param sessionId &#91;required&#93; The unique identifier of the code interpreter session to retrieve.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_code_interpreter_session
bedrockagentcore_get_code_interpreter_session <- function(codeInterpreterIdentifier, sessionId) {
  op <- new_operation(
    name = "GetCodeInterpreterSession",
    http_method = "GET",
    http_path = "/code-interpreters/{codeInterpreterIdentifier}/sessions/get",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_code_interpreter_session_input(codeInterpreterIdentifier = codeInterpreterIdentifier, sessionId = sessionId)
  output <- .bedrockagentcore$get_code_interpreter_session_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_code_interpreter_session <- bedrockagentcore_get_code_interpreter_session

#' Retrieves information about a specific event in an AgentCore Memory
#' resource
#'
#' @description
#' Retrieves information about a specific event in an AgentCore Memory resource.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_event/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_event/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The identifier of the AgentCore Memory resource containing the event.
#' @param sessionId &#91;required&#93; The identifier of the session containing the event.
#' @param actorId &#91;required&#93; The identifier of the actor associated with the event.
#' @param eventId &#91;required&#93; The identifier of the event to retrieve.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_event
bedrockagentcore_get_event <- function(memoryId, sessionId, actorId, eventId) {
  op <- new_operation(
    name = "GetEvent",
    http_method = "GET",
    http_path = "/memories/{memoryId}/actor/{actorId}/sessions/{sessionId}/events/{eventId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_event_input(memoryId = memoryId, sessionId = sessionId, actorId = actorId, eventId = eventId)
  output <- .bedrockagentcore$get_event_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_event <- bedrockagentcore_get_event

#' Retrieves a specific memory record from an AgentCore Memory resource
#'
#' @description
#' Retrieves a specific memory record from an AgentCore Memory resource.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_memory_record/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_memory_record/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The identifier of the AgentCore Memory resource containing the memory record.
#' @param memoryRecordId &#91;required&#93; The identifier of the memory record to retrieve.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_memory_record
bedrockagentcore_get_memory_record <- function(memoryId, memoryRecordId) {
  op <- new_operation(
    name = "GetMemoryRecord",
    http_method = "GET",
    http_path = "/memories/{memoryId}/memoryRecord/{memoryRecordId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_memory_record_input(memoryId = memoryId, memoryRecordId = memoryRecordId)
  output <- .bedrockagentcore$get_memory_record_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_memory_record <- bedrockagentcore_get_memory_record

#' Get a payment instrument by ID
#'
#' @description
#' Get a payment instrument by ID.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_payment_instrument/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_payment_instrument/) for full documentation.
#'
#' @param userId The user ID associated with this payment instrument.
#' @param agentName The agent name associated with this request, used for observability.
#' @param paymentManagerArn &#91;required&#93; The ARN of the payment manager that owns this payment instrument.
#' @param paymentConnectorId The ID of the payment connector.
#' @param paymentInstrumentId &#91;required&#93; The ID of the payment instrument to retrieve.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_payment_instrument
bedrockagentcore_get_payment_instrument <- function(userId = NULL, agentName = NULL, paymentManagerArn, paymentConnectorId = NULL, paymentInstrumentId) {
  op <- new_operation(
    name = "GetPaymentInstrument",
    http_method = "POST",
    http_path = "/payments/getPaymentInstrument",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_payment_instrument_input(userId = userId, agentName = agentName, paymentManagerArn = paymentManagerArn, paymentConnectorId = paymentConnectorId, paymentInstrumentId = paymentInstrumentId)
  output <- .bedrockagentcore$get_payment_instrument_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_payment_instrument <- bedrockagentcore_get_payment_instrument

#' Get the balance of a payment instrument
#'
#' @description
#' Get the balance of a payment instrument.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_payment_instrument_balance/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_payment_instrument_balance/) for full documentation.
#'
#' @param userId The user ID associated with this payment instrument.
#' @param agentName The agent name associated with this request, used for observability.
#' @param paymentManagerArn &#91;required&#93; The ARN of the payment manager that owns this payment instrument.
#' @param paymentConnectorId &#91;required&#93; The ID of the payment connector associated with this instrument.
#' @param paymentInstrumentId &#91;required&#93; The ID of the payment instrument to query balance for.
#' @param chain &#91;required&#93; The specific blockchain chain to query balance on. Required because balances are chain-specific.
#' @param token &#91;required&#93; The token to query balance for. Only tokens supported for X402 payments are returned.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_payment_instrument_balance
bedrockagentcore_get_payment_instrument_balance <- function(userId = NULL, agentName = NULL, paymentManagerArn, paymentConnectorId, paymentInstrumentId, chain, token) {
  op <- new_operation(
    name = "GetPaymentInstrumentBalance",
    http_method = "POST",
    http_path = "/payments/getPaymentInstrumentBalance",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_payment_instrument_balance_input(userId = userId, agentName = agentName, paymentManagerArn = paymentManagerArn, paymentConnectorId = paymentConnectorId, paymentInstrumentId = paymentInstrumentId, chain = chain, token = token)
  output <- .bedrockagentcore$get_payment_instrument_balance_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_payment_instrument_balance <- bedrockagentcore_get_payment_instrument_balance

#' Get a payment session
#'
#' @description
#' Get a payment session.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_payment_session/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_payment_session/) for full documentation.
#'
#' @param userId The user ID associated with this payment session.
#' @param agentName The agent name associated with this request, used for observability.
#' @param paymentManagerArn &#91;required&#93; The ARN of the payment manager that owns this session.
#' @param paymentSessionId &#91;required&#93; The ID of the payment session to retrieve.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_payment_session
bedrockagentcore_get_payment_session <- function(userId = NULL, agentName = NULL, paymentManagerArn, paymentSessionId) {
  op <- new_operation(
    name = "GetPaymentSession",
    http_method = "POST",
    http_path = "/payments/getPaymentSession",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_payment_session_input(userId = userId, agentName = agentName, paymentManagerArn = paymentManagerArn, paymentSessionId = paymentSessionId)
  output <- .bedrockagentcore$get_payment_session_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_payment_session <- bedrockagentcore_get_payment_session

#' Retrieves detailed information about a recommendation, including its
#' configuration, status, and results
#'
#' @description
#' Retrieves detailed information about a recommendation, including its configuration, status, and results.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_recommendation/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_recommendation/) for full documentation.
#'
#' @param recommendationId &#91;required&#93; The unique identifier of the recommendation to retrieve.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_recommendation
bedrockagentcore_get_recommendation <- function(recommendationId) {
  op <- new_operation(
    name = "GetRecommendation",
    http_method = "GET",
    http_path = "/recommendations/{recommendationId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_recommendation_input(recommendationId = recommendationId)
  output <- .bedrockagentcore$get_recommendation_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_recommendation <- bedrockagentcore_get_recommendation

#' Retrieves the API key associated with an API key credential provider
#'
#' @description
#' Retrieves the API key associated with an API key credential provider.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_resource_api_key/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_resource_api_key/) for full documentation.
#'
#' @param workloadIdentityToken &#91;required&#93; The identity token of the workload from which you want to retrieve the API key.
#' @param resourceCredentialProviderName &#91;required&#93; The credential provider name for the resource from which you are retrieving the API key.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_resource_api_key
bedrockagentcore_get_resource_api_key <- function(workloadIdentityToken, resourceCredentialProviderName) {
  op <- new_operation(
    name = "GetResourceApiKey",
    http_method = "POST",
    http_path = "/identities/api-key",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_resource_api_key_input(workloadIdentityToken = workloadIdentityToken, resourceCredentialProviderName = resourceCredentialProviderName)
  output <- .bedrockagentcore$get_resource_api_key_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_resource_api_key <- bedrockagentcore_get_resource_api_key

#' Returns the OAuth 2
#'
#' @description
#' Returns the OAuth 2.0 token of the provided resource.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_resource_oauth_2_token/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_resource_oauth_2_token/) for full documentation.
#'
#' @param workloadIdentityToken &#91;required&#93; The identity token of the workload from which you want to retrieve the OAuth2 token.
#' @param resourceCredentialProviderName &#91;required&#93; The name of the resource's credential provider.
#' @param scopes &#91;required&#93; The OAuth scopes being requested.
#' @param oauth2Flow &#91;required&#93; The type of flow to be performed.
#' @param sessionUri Unique identifier for the user's authentication session for retrieving OAuth2 tokens. This ID tracks the authorization flow state across multiple requests and responses during the OAuth2 authentication process.
#' @param resourceOauth2ReturnUrl The callback URL to redirect to after the OAuth 2.0 token retrieval is complete. This URL must be one of the provided URLs configured for the workload identity.
#' @param forceAuthentication Indicates whether to always initiate a new three-legged OAuth (3LO) flow, regardless of any existing session.
#' @param customParameters A map of custom parameters to include in the authorization request to the resource credential provider. These parameters are in addition to the standard OAuth 2.0 flow parameters, and will not override them.
#' @param customState An opaque string that will be sent back to the callback URL provided in resourceOauth2ReturnUrl. This state should be used to protect the callback URL of your application against CSRF attacks by ensuring the response corresponds to the original request.
#' @param resources The resources to include in the token request. These are used to specify the target resources for which the OAuth2 token is being requested.
#' @param audiences The audiences to include in the token request. These are used to specify the intended recipients of the OAuth2 token.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_resource_oauth_2_token
bedrockagentcore_get_resource_oauth_2_token <- function(workloadIdentityToken, resourceCredentialProviderName, scopes, oauth2Flow, sessionUri = NULL, resourceOauth2ReturnUrl = NULL, forceAuthentication = NULL, customParameters = NULL, customState = NULL, resources = NULL, audiences = NULL) {
  op <- new_operation(
    name = "GetResourceOauth2Token",
    http_method = "POST",
    http_path = "/identities/oauth2/token",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_resource_oauth_2_token_input(workloadIdentityToken = workloadIdentityToken, resourceCredentialProviderName = resourceCredentialProviderName, scopes = scopes, oauth2Flow = oauth2Flow, sessionUri = sessionUri, resourceOauth2ReturnUrl = resourceOauth2ReturnUrl, forceAuthentication = forceAuthentication, customParameters = customParameters, customState = customState, resources = resources, audiences = audiences)
  output <- .bedrockagentcore$get_resource_oauth_2_token_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_resource_oauth_2_token <- bedrockagentcore_get_resource_oauth_2_token

#' Generates authentication tokens for payment providers that use
#' vendor-specific authentication mechanisms
#'
#' @description
#' Generates authentication tokens for payment providers that use vendor-specific authentication mechanisms.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_resource_payment_token/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_resource_payment_token/) for full documentation.
#'
#' @param workloadIdentityToken &#91;required&#93; Workload access token for authorization.
#' @param resourceCredentialProviderName &#91;required&#93; Name of the payment credential provider to use.
#' @param paymentTokenRequest &#91;required&#93; Vendor-specific token request input. Contains all request parameters in a type-safe, vendor-specific structure.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_resource_payment_token
bedrockagentcore_get_resource_payment_token <- function(workloadIdentityToken, resourceCredentialProviderName, paymentTokenRequest) {
  op <- new_operation(
    name = "GetResourcePaymentToken",
    http_method = "POST",
    http_path = "/identities/payment/token",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_resource_payment_token_input(workloadIdentityToken = workloadIdentityToken, resourceCredentialProviderName = resourceCredentialProviderName, paymentTokenRequest = paymentTokenRequest)
  output <- .bedrockagentcore$get_resource_payment_token_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_resource_payment_token <- bedrockagentcore_get_resource_payment_token

#' Obtains a workload access token for agentic workloads not acting on
#' behalf of a user
#'
#' @description
#' Obtains a workload access token for agentic workloads not acting on behalf of a user.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_workload_access_token/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_workload_access_token/) for full documentation.
#'
#' @param workloadName &#91;required&#93; The unique identifier for the registered workload.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_workload_access_token
bedrockagentcore_get_workload_access_token <- function(workloadName) {
  op <- new_operation(
    name = "GetWorkloadAccessToken",
    http_method = "POST",
    http_path = "/identities/GetWorkloadAccessToken",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_workload_access_token_input(workloadName = workloadName)
  output <- .bedrockagentcore$get_workload_access_token_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_workload_access_token <- bedrockagentcore_get_workload_access_token

#' Obtains a workload access token for agentic workloads acting on behalf
#' of a user, using a JWT token
#'
#' @description
#' Obtains a workload access token for agentic workloads acting on behalf of a user, using a JWT token.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_workload_access_token_for_jwt/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_workload_access_token_for_jwt/) for full documentation.
#'
#' @param workloadName &#91;required&#93; The unique identifier for the registered workload.
#' @param userToken &#91;required&#93; The OAuth 2.0 token issued by the user's identity provider.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_workload_access_token_for_jwt
bedrockagentcore_get_workload_access_token_for_jwt <- function(workloadName, userToken) {
  op <- new_operation(
    name = "GetWorkloadAccessTokenForJWT",
    http_method = "POST",
    http_path = "/identities/GetWorkloadAccessTokenForJWT",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_workload_access_token_for_jwt_input(workloadName = workloadName, userToken = userToken)
  output <- .bedrockagentcore$get_workload_access_token_for_jwt_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_workload_access_token_for_jwt <- bedrockagentcore_get_workload_access_token_for_jwt

#' Obtains a workload access token for agentic workloads acting on behalf
#' of a user, using the user's ID
#'
#' @description
#' Obtains a workload access token for agentic workloads acting on behalf of a user, using the user's ID.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_get_workload_access_token_for_user_id/](https://www.paws-r-sdk.com/docs/bedrockagentcore_get_workload_access_token_for_user_id/) for full documentation.
#'
#' @param workloadName &#91;required&#93; The name of the workload from which you want to retrieve the access token.
#' @param userId &#91;required&#93; The ID of the user for whom you are retrieving the access token.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_get_workload_access_token_for_user_id
bedrockagentcore_get_workload_access_token_for_user_id <- function(workloadName, userId) {
  op <- new_operation(
    name = "GetWorkloadAccessTokenForUserId",
    http_method = "POST",
    http_path = "/identities/GetWorkloadAccessTokenForUserId",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$get_workload_access_token_for_user_id_input(workloadName = workloadName, userId = userId)
  output <- .bedrockagentcore$get_workload_access_token_for_user_id_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$get_workload_access_token_for_user_id <- bedrockagentcore_get_workload_access_token_for_user_id

#' Sends a request to an agent or tool hosted in an Amazon Bedrock
#' AgentCore Runtime and receives responses in real-time
#'
#' @description
#' Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_agent_runtime/](https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_agent_runtime/) for full documentation.
#'
#' @param contentType The MIME type of the input data in the payload. This tells the agent runtime how to interpret the payload data. Common values include application/json for JSON data.
#' @param accept The desired MIME type for the response from the agent runtime. This tells the agent runtime what format to use for the response data. Common values include application/json for JSON data.
#' @param mcpSessionId The identifier of the MCP session.
#' @param runtimeSessionId The identifier of the runtime session.
#' @param mcpProtocolVersion The version of the MCP protocol being used.
#' @param runtimeUserId The identifier of the runtime user.
#' @param traceId The trace identifier for request tracking.
#' @param traceParent The parent trace information for distributed tracing.
#' @param traceState The trace state information for distributed tracing.
#' @param baggage Additional context information for distributed tracing.
#' @param agentRuntimeArn &#91;required&#93; The identifier of the agent runtime to invoke. You can specify either the full Amazon Web Services Resource Name (ARN) or the agent ID. If you use the agent ID, you must also provide the `accountId` query parameter.
#' @param qualifier The qualifier to use for the agent runtime. This is an endpoint name that points to a specific version. If not specified, Amazon Bedrock AgentCore uses the default endpoint of the agent runtime.
#' @param accountId The identifier of the Amazon Web Services account for the agent runtime resource. This parameter is required when you specify an agent ID instead of the full ARN for `agentRuntimeArn`.
#' @param payload &#91;required&#93; The input data to send to the agent runtime. The format of this data depends on the specific agent configuration and must match the specified content type. For most agents, this is a JSON object containing the user's request.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_invoke_agent_runtime
bedrockagentcore_invoke_agent_runtime <- function(contentType = NULL, accept = NULL, mcpSessionId = NULL, runtimeSessionId = NULL, mcpProtocolVersion = NULL, runtimeUserId = NULL, traceId = NULL, traceParent = NULL, traceState = NULL, baggage = NULL, agentRuntimeArn, qualifier = NULL, accountId = NULL, payload) {
  op <- new_operation(
    name = "InvokeAgentRuntime",
    http_method = "POST",
    http_path = "/runtimes/{agentRuntimeArn}/invocations",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$invoke_agent_runtime_input(contentType = contentType, accept = accept, mcpSessionId = mcpSessionId, runtimeSessionId = runtimeSessionId, mcpProtocolVersion = mcpProtocolVersion, runtimeUserId = runtimeUserId, traceId = traceId, traceParent = traceParent, traceState = traceState, baggage = baggage, agentRuntimeArn = agentRuntimeArn, qualifier = qualifier, accountId = accountId, payload = payload)
  output <- .bedrockagentcore$invoke_agent_runtime_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$invoke_agent_runtime <- bedrockagentcore_invoke_agent_runtime

#' Executes a command in a runtime session container and streams the output
#' back to the caller
#'
#' @description
#' Executes a command in a runtime session container and streams the output back to the caller. This operation allows you to run shell commands within the agent runtime environment and receive real-time streaming responses including standard output and standard error.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_agent_runtime_command/](https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_agent_runtime_command/) for full documentation.
#'
#' @param contentType The MIME type of the input data in the request payload. This tells the agent runtime how to interpret the payload data. Common values include application/json for JSON data.
#' @param accept The desired MIME type for the response from the agent runtime command. This tells the agent runtime what format to use for the response data. Common values include application/json for JSON data.
#' @param runtimeSessionId The unique identifier of the runtime session in which to execute the command. This session ID is used to maintain state and context across multiple command invocations.
#' @param traceId The trace identifier for request tracking.
#' @param traceParent The parent trace information for distributed tracing.
#' @param traceState The trace state information for distributed tracing.
#' @param baggage Additional context information for distributed tracing.
#' @param agentRuntimeArn &#91;required&#93; The Amazon Resource Name (ARN) of the agent runtime on which to execute the command. This identifies the specific agent runtime environment where the command will run.
#' @param qualifier The qualifier to use for the agent runtime. This is an endpoint name that points to a specific version. If not specified, Amazon Bedrock AgentCore uses the default endpoint of the agent runtime.
#' @param accountId The identifier of the Amazon Web Services account for the agent runtime resource. This parameter is required when you specify an agent ID instead of the full ARN for `agentRuntimeArn`.
#' @param body &#91;required&#93; The request body containing the command to execute and optional configuration parameters such as timeout settings.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_invoke_agent_runtime_command
bedrockagentcore_invoke_agent_runtime_command <- function(contentType = NULL, accept = NULL, runtimeSessionId = NULL, traceId = NULL, traceParent = NULL, traceState = NULL, baggage = NULL, agentRuntimeArn, qualifier = NULL, accountId = NULL, body) {
  op <- new_operation(
    name = "InvokeAgentRuntimeCommand",
    http_method = "POST",
    http_path = "/runtimes/{agentRuntimeArn}/commands",
    host_prefix = "",
    paginator = list(),
    stream_api = TRUE
  )
  input <- .bedrockagentcore$invoke_agent_runtime_command_input(contentType = contentType, accept = accept, runtimeSessionId = runtimeSessionId, traceId = traceId, traceParent = traceParent, traceState = traceState, baggage = baggage, agentRuntimeArn = agentRuntimeArn, qualifier = qualifier, accountId = accountId, body = body)
  output <- .bedrockagentcore$invoke_agent_runtime_command_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$invoke_agent_runtime_command <- bedrockagentcore_invoke_agent_runtime_command

#' Invokes an operating system-level action on a browser session in Amazon
#' Bedrock AgentCore
#'
#' @description
#' Invokes an operating system-level action on a browser session in Amazon Bedrock AgentCore. This operation provides direct OS-level control over browser sessions, enabling mouse actions, keyboard input, and screenshots that the WebSocket-based Chrome DevTools Protocol (CDP) cannot handle — such as interacting with print dialogs, context menus, and JavaScript alerts.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_browser/](https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_browser/) for full documentation.
#'
#' @param browserIdentifier &#91;required&#93; The unique identifier of the browser associated with the session. This must match the identifier used when creating the session with [`start_browser_session`][bedrockagentcore_start_browser_session].
#' @param sessionId &#91;required&#93; The unique identifier of the browser session on which to perform the action. This must be an active session created with [`start_browser_session`][bedrockagentcore_start_browser_session].
#' @param action &#91;required&#93; The browser action to perform. Exactly one member of the `BrowserAction` union must be set per request.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_invoke_browser
bedrockagentcore_invoke_browser <- function(browserIdentifier, sessionId, action) {
  op <- new_operation(
    name = "InvokeBrowser",
    http_method = "POST",
    http_path = "/browsers/{browserIdentifier}/sessions/invoke",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$invoke_browser_input(browserIdentifier = browserIdentifier, sessionId = sessionId, action = action)
  output <- .bedrockagentcore$invoke_browser_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$invoke_browser <- bedrockagentcore_invoke_browser

#' Executes code within an active code interpreter session in Amazon
#' Bedrock AgentCore
#'
#' @description
#' Executes code within an active code interpreter session in Amazon Bedrock AgentCore. This operation processes the provided code, runs it in a secure environment, and returns the execution results including output, errors, and generated visualizations.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_code_interpreter/](https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_code_interpreter/) for full documentation.
#'
#' @param codeInterpreterIdentifier &#91;required&#93; The unique identifier of the code interpreter associated with the session. This must match the identifier used when creating the session with [`start_code_interpreter_session`][bedrockagentcore_start_code_interpreter_session].
#' @param sessionId The unique identifier of the code interpreter session to use. This must be an active session created with [`start_code_interpreter_session`][bedrockagentcore_start_code_interpreter_session]. If the session has expired or been stopped, the request will fail.
#' @param traceId The trace identifier for request tracking.
#' @param traceParent The parent trace information for distributed tracing.
#' @param name &#91;required&#93; The name of the code interpreter to invoke.
#' @param arguments The arguments for the code interpreter. This includes the code to execute and any additional parameters such as the programming language, whether to clear the execution context, and other execution options. The structure of this parameter depends on the specific code interpreter being used.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_invoke_code_interpreter
bedrockagentcore_invoke_code_interpreter <- function(codeInterpreterIdentifier, sessionId = NULL, traceId = NULL, traceParent = NULL, name, arguments = NULL) {
  op <- new_operation(
    name = "InvokeCodeInterpreter",
    http_method = "POST",
    http_path = "/code-interpreters/{codeInterpreterIdentifier}/tools/invoke",
    host_prefix = "",
    paginator = list(),
    stream_api = TRUE
  )
  input <- .bedrockagentcore$invoke_code_interpreter_input(codeInterpreterIdentifier = codeInterpreterIdentifier, sessionId = sessionId, traceId = traceId, traceParent = traceParent, name = name, arguments = arguments)
  output <- .bedrockagentcore$invoke_code_interpreter_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$invoke_code_interpreter <- bedrockagentcore_invoke_code_interpreter

#' Operation to invoke a Harness
#'
#' @description
#' Operation to invoke a Harness.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_harness/](https://www.paws-r-sdk.com/docs/bedrockagentcore_invoke_harness/) for full documentation.
#'
#' @param harnessArn &#91;required&#93; The ARN of the harness to invoke.
#' @param runtimeSessionId &#91;required&#93; The session ID for the invocation. Use the same session ID across requests to continue a conversation.
#' @param messages &#91;required&#93; The messages to send to the agent.
#' @param model The model configuration to use for this invocation. If specified, overrides the harness default.
#' @param systemPrompt The system prompt to use for this invocation. If specified, overrides the harness default.
#' @param tools The tools available to the agent for this invocation. If specified, overrides the harness default.
#' @param skills The skills available to the agent for this invocation. If specified, overrides the harness default.
#' @param allowedTools The tools that the agent is allowed to use for this invocation. If specified, overrides the harness default.
#' @param maxIterations The maximum number of iterations the agent loop can execute. If specified, overrides the harness default.
#' @param maxTokens The maximum number of tokens the agent can generate per iteration. If specified, overrides the harness default.
#' @param timeoutSeconds The maximum duration in seconds for the agent loop execution. If specified, overrides the harness default.
#' @param actorId The actor ID for memory operations. Overrides the actor ID configured on the harness.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_invoke_harness
bedrockagentcore_invoke_harness <- function(harnessArn, runtimeSessionId, messages, model = NULL, systemPrompt = NULL, tools = NULL, skills = NULL, allowedTools = NULL, maxIterations = NULL, maxTokens = NULL, timeoutSeconds = NULL, actorId = NULL) {
  op <- new_operation(
    name = "InvokeHarness",
    http_method = "POST",
    http_path = "/harnesses/invoke",
    host_prefix = "",
    paginator = list(),
    stream_api = TRUE
  )
  input <- .bedrockagentcore$invoke_harness_input(harnessArn = harnessArn, runtimeSessionId = runtimeSessionId, messages = messages, model = model, systemPrompt = systemPrompt, tools = tools, skills = skills, allowedTools = allowedTools, maxIterations = maxIterations, maxTokens = maxTokens, timeoutSeconds = timeoutSeconds, actorId = actorId)
  output <- .bedrockagentcore$invoke_harness_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$invoke_harness <- bedrockagentcore_invoke_harness

#' Lists all A/B tests in the account
#'
#' @description
#' Lists all A/B tests in the account.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_ab_tests/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_ab_tests/) for full documentation.
#'
#' @param maxResults The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the `nextToken` field when making another request to return the next batch of results.
#' @param nextToken If the total number of results is greater than the `maxResults` value provided in the request, enter the token returned in the `nextToken` field in the response in this field to return the next batch of results.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_ab_tests
bedrockagentcore_list_ab_tests <- function(maxResults = NULL, nextToken = NULL) {
  op <- new_operation(
    name = "ListABTests",
    http_method = "GET",
    http_path = "/ab-tests",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "abTests"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_ab_tests_input(maxResults = maxResults, nextToken = nextToken)
  output <- .bedrockagentcore$list_ab_tests_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_ab_tests <- bedrockagentcore_list_ab_tests

#' Lists all actors in an AgentCore Memory resource
#'
#' @description
#' Lists all actors in an AgentCore Memory resource. We recommend using pagination to ensure that the operation returns quickly and successfully.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_actors/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_actors/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The identifier of the AgentCore Memory resource for which to list actors.
#' @param maxResults The maximum number of results to return in a single call. The default value is 20.
#' @param nextToken The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_actors
bedrockagentcore_list_actors <- function(memoryId, maxResults = NULL, nextToken = NULL) {
  op <- new_operation(
    name = "ListActors",
    http_method = "POST",
    http_path = "/memories/{memoryId}/actors",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "actorSummaries"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_actors_input(memoryId = memoryId, maxResults = maxResults, nextToken = nextToken)
  output <- .bedrockagentcore$list_actors_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_actors <- bedrockagentcore_list_actors

#' Lists all batch evaluations in the account, providing summary
#' information about each evaluation's status and configuration
#'
#' @description
#' Lists all batch evaluations in the account, providing summary information about each evaluation's status and configuration.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_batch_evaluations/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_batch_evaluations/) for full documentation.
#'
#' @param maxResults The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the `nextToken` field when making another request to return the next batch of results.
#' @param nextToken If the total number of results is greater than the `maxResults` value provided in the request, enter the token returned in the `nextToken` field in the response in this field to return the next batch of results.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_batch_evaluations
bedrockagentcore_list_batch_evaluations <- function(maxResults = NULL, nextToken = NULL) {
  op <- new_operation(
    name = "ListBatchEvaluations",
    http_method = "GET",
    http_path = "/evaluations/batch-evaluate",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "batchEvaluations"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_batch_evaluations_input(maxResults = maxResults, nextToken = nextToken)
  output <- .bedrockagentcore$list_batch_evaluations_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_batch_evaluations <- bedrockagentcore_list_batch_evaluations

#' Retrieves a list of browser sessions in Amazon Bedrock AgentCore that
#' match the specified criteria
#'
#' @description
#' Retrieves a list of browser sessions in Amazon Bedrock AgentCore that match the specified criteria. This operation returns summary information about each session, including identifiers, status, and timestamps.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_browser_sessions/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_browser_sessions/) for full documentation.
#'
#' @param browserIdentifier &#91;required&#93; The unique identifier of the browser to list sessions for. If specified, only sessions for this browser are returned. If not specified, sessions for all browsers are returned.
#' @param maxResults The maximum number of results to return in a single call. The default value is 10. Valid values range from 1 to 100. To retrieve the remaining results, make another call with the returned `nextToken` value.
#' @param nextToken The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. If not specified, Amazon Bedrock AgentCore returns the first page of results.
#' @param status The status of the browser sessions to list. Valid values include ACTIVE, STOPPING, and STOPPED. If not specified, sessions with any status are returned.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_browser_sessions
bedrockagentcore_list_browser_sessions <- function(browserIdentifier, maxResults = NULL, nextToken = NULL, status = NULL) {
  op <- new_operation(
    name = "ListBrowserSessions",
    http_method = "POST",
    http_path = "/browsers/{browserIdentifier}/sessions/list",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_browser_sessions_input(browserIdentifier = browserIdentifier, maxResults = maxResults, nextToken = nextToken, status = status)
  output <- .bedrockagentcore$list_browser_sessions_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_browser_sessions <- bedrockagentcore_list_browser_sessions

#' Retrieves a list of code interpreter sessions in Amazon Bedrock
#' AgentCore that match the specified criteria
#'
#' @description
#' Retrieves a list of code interpreter sessions in Amazon Bedrock AgentCore that match the specified criteria. This operation returns summary information about each session, including identifiers, status, and timestamps.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_code_interpreter_sessions/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_code_interpreter_sessions/) for full documentation.
#'
#' @param codeInterpreterIdentifier &#91;required&#93; The unique identifier of the code interpreter to list sessions for. If specified, only sessions for this code interpreter are returned. If not specified, sessions for all code interpreters are returned.
#' @param maxResults The maximum number of results to return in a single call. The default value is 10. Valid values range from 1 to 100. To retrieve the remaining results, make another call with the returned `nextToken` value.
#' @param nextToken The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. If not specified, Amazon Bedrock AgentCore returns the first page of results.
#' @param status The status of the code interpreter sessions to list. Valid values include ACTIVE, STOPPING, and STOPPED. If not specified, sessions with any status are returned.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_code_interpreter_sessions
bedrockagentcore_list_code_interpreter_sessions <- function(codeInterpreterIdentifier, maxResults = NULL, nextToken = NULL, status = NULL) {
  op <- new_operation(
    name = "ListCodeInterpreterSessions",
    http_method = "POST",
    http_path = "/code-interpreters/{codeInterpreterIdentifier}/sessions/list",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_code_interpreter_sessions_input(codeInterpreterIdentifier = codeInterpreterIdentifier, maxResults = maxResults, nextToken = nextToken, status = status)
  output <- .bedrockagentcore$list_code_interpreter_sessions_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_code_interpreter_sessions <- bedrockagentcore_list_code_interpreter_sessions

#' Lists events in an AgentCore Memory resource based on specified criteria
#'
#' @description
#' Lists events in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_events/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_events/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The identifier of the AgentCore Memory resource for which to list events.
#' @param sessionId &#91;required&#93; The identifier of the session for which to list events.
#' @param actorId &#91;required&#93; The identifier of the actor for which to list events.
#' @param includePayloads Specifies whether to include event payloads in the response. Set to true to include payloads, or false to exclude them.
#' @param filter Filter criteria to apply when listing events.
#' @param maxResults The maximum number of results to return in a single call. The default value is 20.
#' @param nextToken The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_events
bedrockagentcore_list_events <- function(memoryId, sessionId, actorId, includePayloads = NULL, filter = NULL, maxResults = NULL, nextToken = NULL) {
  op <- new_operation(
    name = "ListEvents",
    http_method = "POST",
    http_path = "/memories/{memoryId}/actor/{actorId}/sessions/{sessionId}",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "events"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_events_input(memoryId = memoryId, sessionId = sessionId, actorId = actorId, includePayloads = includePayloads, filter = filter, maxResults = maxResults, nextToken = nextToken)
  output <- .bedrockagentcore$list_events_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_events <- bedrockagentcore_list_events

#' Lists all long-term memory extraction jobs that are eligible to be
#' started with optional filtering
#'
#' @description
#' Lists all long-term memory extraction jobs that are eligible to be started with optional filtering.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_memory_extraction_jobs/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_memory_extraction_jobs/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The unique identifier of the memory to list extraction jobs for.
#' @param maxResults The maximum number of results to return in a single call. The default value is 20.
#' @param filter Filter criteria to apply when listing extraction jobs.
#' @param nextToken The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_memory_extraction_jobs
bedrockagentcore_list_memory_extraction_jobs <- function(memoryId, maxResults = NULL, filter = NULL, nextToken = NULL) {
  op <- new_operation(
    name = "ListMemoryExtractionJobs",
    http_method = "POST",
    http_path = "/memories/{memoryId}/extractionJobs",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "jobs"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_memory_extraction_jobs_input(memoryId = memoryId, maxResults = maxResults, filter = filter, nextToken = nextToken)
  output <- .bedrockagentcore$list_memory_extraction_jobs_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_memory_extraction_jobs <- bedrockagentcore_list_memory_extraction_jobs

#' Lists memory records in an AgentCore Memory resource based on specified
#' criteria
#'
#' @description
#' Lists memory records in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_memory_records/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_memory_records/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The identifier of the AgentCore Memory resource for which to list memory records.
#' @param namespace The namespace prefix to filter memory records by. Returns all memory records in namespaces that start with the provided prefix. Either `namespace` or `namespacePath` is required.
#' @param namespacePath Use namespacePath for hierarchical retrievals. Return all memory records where namespace falls under the same parent hierarchy. Either `namespace` or `namespacePath` is required.
#' @param memoryStrategyId The memory strategy identifier to filter memory records by. If specified, only memory records with this strategy ID are returned.
#' @param maxResults The maximum number of results to return in a single call. The default value is 20.
#' @param nextToken The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
#' @param metadataFilters A list of metadata filter expressions to scope the returned memory records.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_memory_records
bedrockagentcore_list_memory_records <- function(memoryId, namespace = NULL, namespacePath = NULL, memoryStrategyId = NULL, maxResults = NULL, nextToken = NULL, metadataFilters = NULL) {
  op <- new_operation(
    name = "ListMemoryRecords",
    http_method = "POST",
    http_path = "/memories/{memoryId}/memoryRecords",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "memoryRecordSummaries"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_memory_records_input(memoryId = memoryId, namespace = namespace, namespacePath = namespacePath, memoryStrategyId = memoryStrategyId, maxResults = maxResults, nextToken = nextToken, metadataFilters = metadataFilters)
  output <- .bedrockagentcore$list_memory_records_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_memory_records <- bedrockagentcore_list_memory_records

#' List payment instruments for a manager
#'
#' @description
#' List payment instruments for a manager.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_payment_instruments/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_payment_instruments/) for full documentation.
#'
#' @param userId The user ID associated with the payment instruments.
#' @param agentName The agent name associated with this request, used for observability.
#' @param paymentManagerArn &#91;required&#93; The ARN of the payment manager that owns the payment instruments.
#' @param paymentConnectorId The ID of the payment connector to filter by.
#' @param nextToken Token for pagination to retrieve the next set of results.
#' @param maxResults Maximum number of results to return in a single response.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_payment_instruments
bedrockagentcore_list_payment_instruments <- function(userId = NULL, agentName = NULL, paymentManagerArn, paymentConnectorId = NULL, nextToken = NULL, maxResults = NULL) {
  op <- new_operation(
    name = "ListPaymentInstruments",
    http_method = "POST",
    http_path = "/payments/listPaymentInstruments",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "paymentInstruments"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_payment_instruments_input(userId = userId, agentName = agentName, paymentManagerArn = paymentManagerArn, paymentConnectorId = paymentConnectorId, nextToken = nextToken, maxResults = maxResults)
  output <- .bedrockagentcore$list_payment_instruments_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_payment_instruments <- bedrockagentcore_list_payment_instruments

#' List payment sessions
#'
#' @description
#' List payment sessions.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_payment_sessions/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_payment_sessions/) for full documentation.
#'
#' @param userId The user ID associated with the payment sessions.
#' @param agentName The agent name associated with this request, used for observability.
#' @param paymentManagerArn &#91;required&#93; The ARN of the payment manager that owns the sessions.
#' @param nextToken Token for pagination to retrieve the next set of results.
#' @param maxResults Maximum number of results to return in a single response.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_payment_sessions
bedrockagentcore_list_payment_sessions <- function(userId = NULL, agentName = NULL, paymentManagerArn, nextToken = NULL, maxResults = NULL) {
  op <- new_operation(
    name = "ListPaymentSessions",
    http_method = "POST",
    http_path = "/payments/listPaymentSessions",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "paymentSessions"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_payment_sessions_input(userId = userId, agentName = agentName, paymentManagerArn = paymentManagerArn, nextToken = nextToken, maxResults = maxResults)
  output <- .bedrockagentcore$list_payment_sessions_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_payment_sessions <- bedrockagentcore_list_payment_sessions

#' Lists all recommendations in the account, with optional filtering by
#' status
#'
#' @description
#' Lists all recommendations in the account, with optional filtering by status.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_recommendations/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_recommendations/) for full documentation.
#'
#' @param maxResults The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the `nextToken` field when making another request to return the next batch of results.
#' @param nextToken If the total number of results is greater than the `maxResults` value provided in the request, enter the token returned in the `nextToken` field in the response in this field to return the next batch of results.
#' @param statusFilter Optional filter to return only recommendations with the specified status.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_recommendations
bedrockagentcore_list_recommendations <- function(maxResults = NULL, nextToken = NULL, statusFilter = NULL) {
  op <- new_operation(
    name = "ListRecommendations",
    http_method = "GET",
    http_path = "/recommendations",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "recommendationSummaries"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_recommendations_input(maxResults = maxResults, nextToken = nextToken, statusFilter = statusFilter)
  output <- .bedrockagentcore$list_recommendations_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_recommendations <- bedrockagentcore_list_recommendations

#' Lists sessions in an AgentCore Memory resource based on specified
#' criteria
#'
#' @description
#' Lists sessions in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_list_sessions/](https://www.paws-r-sdk.com/docs/bedrockagentcore_list_sessions/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The identifier of the AgentCore Memory resource for which to list sessions.
#' @param actorId &#91;required&#93; The identifier of the actor for which to list sessions.
#' @param maxResults The maximum number of results to return in a single call. The default value is 20.
#' @param nextToken The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
#' @param filter Filter criteria to apply when listing sessions.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_list_sessions
bedrockagentcore_list_sessions <- function(memoryId, actorId, maxResults = NULL, nextToken = NULL, filter = NULL) {
  op <- new_operation(
    name = "ListSessions",
    http_method = "POST",
    http_path = "/memories/{memoryId}/actor/{actorId}/sessions",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "sessionSummaries"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$list_sessions_input(memoryId = memoryId, actorId = actorId, maxResults = maxResults, nextToken = nextToken, filter = filter)
  output <- .bedrockagentcore$list_sessions_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$list_sessions <- bedrockagentcore_list_sessions

#' Processes a payment using a payment instrument within a payment session
#'
#' @description
#' Processes a payment using a payment instrument within a payment session.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_process_payment/](https://www.paws-r-sdk.com/docs/bedrockagentcore_process_payment/) for full documentation.
#'
#' @param userId The user ID associated with this payment.
#' @param agentName The agent name associated with this request, used for observability.
#' @param paymentManagerArn &#91;required&#93; The ARN of the payment manager.
#' @param paymentSessionId &#91;required&#93; The ID of the payment session.
#' @param paymentInstrumentId &#91;required&#93; The ID of the payment instrument to use.
#' @param paymentType &#91;required&#93; The type of payment to process.
#' @param paymentInput &#91;required&#93; The payment input details specific to the payment type.
#' @param clientToken A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_process_payment
bedrockagentcore_process_payment <- function(userId = NULL, agentName = NULL, paymentManagerArn, paymentSessionId, paymentInstrumentId, paymentType, paymentInput, clientToken = NULL) {
  op <- new_operation(
    name = "ProcessPayment",
    http_method = "POST",
    http_path = "/payments/processPayment",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$process_payment_input(userId = userId, agentName = agentName, paymentManagerArn = paymentManagerArn, paymentSessionId = paymentSessionId, paymentInstrumentId = paymentInstrumentId, paymentType = paymentType, paymentInput = paymentInput, clientToken = clientToken)
  output <- .bedrockagentcore$process_payment_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$process_payment <- bedrockagentcore_process_payment

#' Searches for and retrieves memory records from an AgentCore Memory
#' resource based on specified search criteria
#'
#' @description
#' Searches for and retrieves memory records from an AgentCore Memory resource based on specified search criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_retrieve_memory_records/](https://www.paws-r-sdk.com/docs/bedrockagentcore_retrieve_memory_records/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The identifier of the AgentCore Memory resource from which to retrieve memory records.
#' @param namespace The namespace prefix to filter memory records by. Searches for memory records in namespaces that start with the provided prefix. Either `namespace` or `namespacePath` is required.
#' @param namespacePath Use namespacePath for hierarchical retrievals. Return all memory records where namespace falls under the same parent hierarchy. Either `namespace` or `namespacePath` is required.
#' @param searchCriteria &#91;required&#93; The search criteria to use for finding relevant memory records. This includes the search query, memory strategy ID, and other search parameters.
#' @param nextToken The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
#' @param maxResults The maximum number of results to return in a single call. The default value is 20.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_retrieve_memory_records
bedrockagentcore_retrieve_memory_records <- function(memoryId, namespace = NULL, namespacePath = NULL, searchCriteria, nextToken = NULL, maxResults = NULL) {
  op <- new_operation(
    name = "RetrieveMemoryRecords",
    http_method = "POST",
    http_path = "/memories/{memoryId}/retrieve",
    host_prefix = "",
    paginator = list(input_token = "nextToken", output_token = "nextToken", limit_key = "maxResults", result_key = "memoryRecordSummaries"),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$retrieve_memory_records_input(memoryId = memoryId, namespace = namespace, namespacePath = namespacePath, searchCriteria = searchCriteria, nextToken = nextToken, maxResults = maxResults)
  output <- .bedrockagentcore$retrieve_memory_records_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$retrieve_memory_records <- bedrockagentcore_retrieve_memory_records

#' Saves the current state of a browser session as a reusable profile in
#' Amazon Bedrock AgentCore
#'
#' @description
#' Saves the current state of a browser session as a reusable profile in Amazon Bedrock AgentCore. A browser profile captures persistent browser data such as cookies and local storage from an active session, enabling you to reuse this data in future browser sessions.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_save_browser_session_profile/](https://www.paws-r-sdk.com/docs/bedrockagentcore_save_browser_session_profile/) for full documentation.
#'
#' @param traceId The trace identifier for request tracking.
#' @param traceParent The parent trace information for distributed tracing.
#' @param profileIdentifier &#91;required&#93; The unique identifier for the browser profile. This identifier is used to reference the profile when starting new browser sessions. The identifier must follow the pattern of an alphanumeric name (up to 48 characters) followed by a hyphen and a 10-character alphanumeric suffix.
#' @param browserIdentifier &#91;required&#93; The unique identifier of the browser associated with the session from which to save the profile.
#' @param sessionId &#91;required&#93; The unique identifier of the browser session from which to save the profile. The session must be active when saving the profile.
#' @param clientToken A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request, but does not return an error.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_save_browser_session_profile
bedrockagentcore_save_browser_session_profile <- function(traceId = NULL, traceParent = NULL, profileIdentifier, browserIdentifier, sessionId, clientToken = NULL) {
  op <- new_operation(
    name = "SaveBrowserSessionProfile",
    http_method = "PUT",
    http_path = "/browser-profiles/{profileIdentifier}/save",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$save_browser_session_profile_input(traceId = traceId, traceParent = traceParent, profileIdentifier = profileIdentifier, browserIdentifier = browserIdentifier, sessionId = sessionId, clientToken = clientToken)
  output <- .bedrockagentcore$save_browser_session_profile_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$save_browser_session_profile <- bedrockagentcore_save_browser_session_profile

#' Searches for registry records using semantic, lexical, or hybrid queries
#'
#' @description
#' Searches for registry records using semantic, lexical, or hybrid queries. Returns metadata for matching records ordered by relevance within the specified registry.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_search_registry_records/](https://www.paws-r-sdk.com/docs/bedrockagentcore_search_registry_records/) for full documentation.
#'
#' @param searchQuery &#91;required&#93; The search query to find matching registry records.
#' @param registryIds &#91;required&#93; The list of registry identifiers to search within. Currently, you can specify exactly one registry identifier. You can provide either the full Amazon Web Services Resource Name (ARN) or the 12-character alphanumeric registry ID.
#' @param maxResults The maximum number of records to return in a single call. Valid values are 1 through 20. The default value is 10.
#' @param filters A metadata filter expression to narrow search results. Uses structured JSON operators including field-level operators (`$eq`, `$ne`, `$in`) and logical operators (`$and`, `$or`) on filterable fields (`name`, `descriptorType`, `version`). For example, to filter by descriptor type: `{"descriptorType": {"$eq": "MCP"}}`. To combine filters: `{"$and": [{"descriptorType": {"$eq": "MCP"}}, {"name": {"$eq": "my-tool"}}]}`.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_search_registry_records
bedrockagentcore_search_registry_records <- function(searchQuery, registryIds, maxResults = NULL, filters = NULL) {
  op <- new_operation(
    name = "SearchRegistryRecords",
    http_method = "POST",
    http_path = "/registry-records/search",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$search_registry_records_input(searchQuery = searchQuery, registryIds = registryIds, maxResults = maxResults, filters = filters)
  output <- .bedrockagentcore$search_registry_records_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$search_registry_records <- bedrockagentcore_search_registry_records

#' Starts a batch evaluation job that evaluates agent performance across
#' multiple sessions
#'
#' @description
#' Starts a batch evaluation job that evaluates agent performance across multiple sessions. Batch evaluations pull agent traces from CloudWatch Logs or an existing online evaluation configuration and run specified evaluators and insights against them.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_start_batch_evaluation/](https://www.paws-r-sdk.com/docs/bedrockagentcore_start_batch_evaluation/) for full documentation.
#'
#' @param batchEvaluationName &#91;required&#93; The name of the batch evaluation. Must be unique within your account.
#' @param evaluators The list of evaluators to apply during the batch evaluation. Can include both built-in evaluators and custom evaluators. Maximum of 10 evaluators.
#' @param dataSourceConfig &#91;required&#93; The data source configuration that specifies where to pull agent session traces from for evaluation.
#' @param clientToken A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
#' @param evaluationMetadata Optional metadata for the evaluation, including session-specific ground truth data and test scenario identifiers.
#' @param description The description of the batch evaluation.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_start_batch_evaluation
bedrockagentcore_start_batch_evaluation <- function(batchEvaluationName, evaluators = NULL, dataSourceConfig, clientToken = NULL, evaluationMetadata = NULL, description = NULL) {
  op <- new_operation(
    name = "StartBatchEvaluation",
    http_method = "POST",
    http_path = "/evaluations/batch-evaluate",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$start_batch_evaluation_input(batchEvaluationName = batchEvaluationName, evaluators = evaluators, dataSourceConfig = dataSourceConfig, clientToken = clientToken, evaluationMetadata = evaluationMetadata, description = description)
  output <- .bedrockagentcore$start_batch_evaluation_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$start_batch_evaluation <- bedrockagentcore_start_batch_evaluation

#' Creates and initializes a browser session in Amazon Bedrock AgentCore
#'
#' @description
#' Creates and initializes a browser session in Amazon Bedrock AgentCore. The session enables agents to navigate and interact with web content, extract information from websites, and perform web-based tasks as part of their response generation.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_start_browser_session/](https://www.paws-r-sdk.com/docs/bedrockagentcore_start_browser_session/) for full documentation.
#'
#' @param traceId The trace identifier for request tracking.
#' @param traceParent The parent trace information for distributed tracing.
#' @param browserIdentifier &#91;required&#93; The unique identifier of the browser to use for this session. This identifier specifies which browser environment to initialize for the session.
#' @param name The name of the browser session. This name helps you identify and manage the session. The name does not need to be unique.
#' @param sessionTimeoutSeconds The duration in seconds (time-to-live) after which the session automatically terminates, regardless of ongoing activity. Defaults to 3600 seconds (1 hour). Recommended minimum: 60 seconds. Maximum allowed: 28,800 seconds (8 hours).
#' @param viewPort The dimensions of the browser viewport for this session. This determines the visible area of the web content and affects how web pages are rendered. If not specified, Amazon Bedrock AgentCore uses a default viewport size.
#' @param extensions A list of browser extensions to load into the browser session.
#' @param profileConfiguration The browser profile configuration to use for this session. A browser profile contains persistent data such as cookies and local storage that can be reused across multiple browser sessions. If specified, the session initializes with the profile's stored data, enabling continuity for tasks that require authentication or personalized settings.
#' @param proxyConfiguration Optional proxy configuration for routing browser traffic through customer-specified proxy servers. When provided, enables HTTP Basic authentication via Amazon Web Services Secrets Manager and domain-based routing rules. Requires `secretsmanager:GetSecretValue` IAM permission for the specified secret ARNs.
#' @param enterprisePolicies A list of files containing enterprise policies for the browser.
#' @param certificates A list of certificates to install in the browser session.
#' @param clientToken A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request, but does not return an error. This parameter helps prevent the creation of duplicate sessions if there are temporary network issues.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_start_browser_session
bedrockagentcore_start_browser_session <- function(traceId = NULL, traceParent = NULL, browserIdentifier, name = NULL, sessionTimeoutSeconds = NULL, viewPort = NULL, extensions = NULL, profileConfiguration = NULL, proxyConfiguration = NULL, enterprisePolicies = NULL, certificates = NULL, clientToken = NULL) {
  op <- new_operation(
    name = "StartBrowserSession",
    http_method = "PUT",
    http_path = "/browsers/{browserIdentifier}/sessions/start",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$start_browser_session_input(traceId = traceId, traceParent = traceParent, browserIdentifier = browserIdentifier, name = name, sessionTimeoutSeconds = sessionTimeoutSeconds, viewPort = viewPort, extensions = extensions, profileConfiguration = profileConfiguration, proxyConfiguration = proxyConfiguration, enterprisePolicies = enterprisePolicies, certificates = certificates, clientToken = clientToken)
  output <- .bedrockagentcore$start_browser_session_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$start_browser_session <- bedrockagentcore_start_browser_session

#' Creates and initializes a code interpreter session in Amazon Bedrock
#' AgentCore
#'
#' @description
#' Creates and initializes a code interpreter session in Amazon Bedrock AgentCore. The session enables agents to execute code as part of their response generation, supporting programming languages such as Python for data analysis, visualization, and computation tasks.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_start_code_interpreter_session/](https://www.paws-r-sdk.com/docs/bedrockagentcore_start_code_interpreter_session/) for full documentation.
#'
#' @param traceId The trace identifier for request tracking.
#' @param traceParent The parent trace information for distributed tracing.
#' @param codeInterpreterIdentifier &#91;required&#93; The unique identifier of the code interpreter to use for this session. This identifier specifies which code interpreter environment to initialize for the session.
#' @param name The name of the code interpreter session. This name helps you identify and manage the session. The name does not need to be unique.
#' @param sessionTimeoutSeconds The duration in seconds (time-to-live) after which the session automatically terminates, regardless of ongoing activity. Defaults to 900 seconds (15 minutes). Recommended minimum: 60 seconds. Maximum allowed: 28,800 seconds (8 hours).
#' @param certificates A list of certificates to install in the code interpreter session.
#' @param clientToken A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request, but does not return an error. This parameter helps prevent the creation of duplicate sessions if there are temporary network issues.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_start_code_interpreter_session
bedrockagentcore_start_code_interpreter_session <- function(traceId = NULL, traceParent = NULL, codeInterpreterIdentifier, name = NULL, sessionTimeoutSeconds = NULL, certificates = NULL, clientToken = NULL) {
  op <- new_operation(
    name = "StartCodeInterpreterSession",
    http_method = "PUT",
    http_path = "/code-interpreters/{codeInterpreterIdentifier}/sessions/start",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$start_code_interpreter_session_input(traceId = traceId, traceParent = traceParent, codeInterpreterIdentifier = codeInterpreterIdentifier, name = name, sessionTimeoutSeconds = sessionTimeoutSeconds, certificates = certificates, clientToken = clientToken)
  output <- .bedrockagentcore$start_code_interpreter_session_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$start_code_interpreter_session <- bedrockagentcore_start_code_interpreter_session

#' Starts a memory extraction job that processes events that failed
#' extraction previously in an AgentCore Memory resource and produces
#' structured memory records
#'
#' @description
#' Starts a memory extraction job that processes events that failed extraction previously in an AgentCore Memory resource and produces structured memory records. When earlier extraction attempts have left events unprocessed, this job will pick up and extract those as well.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_start_memory_extraction_job/](https://www.paws-r-sdk.com/docs/bedrockagentcore_start_memory_extraction_job/) for full documentation.
#'
#' @param memoryId &#91;required&#93; The unique identifier of the memory for which to start extraction jobs.
#' @param extractionJob &#91;required&#93; Extraction job to start in this operation.
#' @param clientToken A unique, case-sensitive identifier to ensure idempotent processing of the request.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_start_memory_extraction_job
bedrockagentcore_start_memory_extraction_job <- function(memoryId, extractionJob, clientToken = NULL) {
  op <- new_operation(
    name = "StartMemoryExtractionJob",
    http_method = "POST",
    http_path = "/memories/{memoryId}/extractionJobs/start",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$start_memory_extraction_job_input(memoryId = memoryId, extractionJob = extractionJob, clientToken = clientToken)
  output <- .bedrockagentcore$start_memory_extraction_job_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$start_memory_extraction_job <- bedrockagentcore_start_memory_extraction_job

#' Starts a recommendation job that analyzes agent traces and generates
#' optimization suggestions for system prompts or tool descriptions to
#' improve agent performance
#'
#' @description
#' Starts a recommendation job that analyzes agent traces and generates optimization suggestions for system prompts or tool descriptions to improve agent performance.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_start_recommendation/](https://www.paws-r-sdk.com/docs/bedrockagentcore_start_recommendation/) for full documentation.
#'
#' @param name &#91;required&#93; The name of the recommendation. Must be unique within your account.
#' @param description The description of the recommendation.
#' @param type &#91;required&#93; The type of recommendation to generate. Valid values are `SYSTEM_PROMPT_RECOMMENDATION` for system prompt optimization or `TOOL_DESCRIPTION_RECOMMENDATION` for tool description optimization.
#' @param recommendationConfig &#91;required&#93; The configuration for the recommendation, including the input to optimize, agent traces to analyze, and evaluation settings.
#' @param clientToken A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_start_recommendation
bedrockagentcore_start_recommendation <- function(name, description = NULL, type, recommendationConfig, clientToken = NULL) {
  op <- new_operation(
    name = "StartRecommendation",
    http_method = "POST",
    http_path = "/recommendations",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$start_recommendation_input(name = name, description = description, type = type, recommendationConfig = recommendationConfig, clientToken = clientToken)
  output <- .bedrockagentcore$start_recommendation_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$start_recommendation <- bedrockagentcore_start_recommendation

#' Stops a running batch evaluation
#'
#' @description
#' Stops a running batch evaluation. Sessions that have already been evaluated retain their results.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_stop_batch_evaluation/](https://www.paws-r-sdk.com/docs/bedrockagentcore_stop_batch_evaluation/) for full documentation.
#'
#' @param batchEvaluationId &#91;required&#93; The unique identifier of the batch evaluation to stop.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_stop_batch_evaluation
bedrockagentcore_stop_batch_evaluation <- function(batchEvaluationId) {
  op <- new_operation(
    name = "StopBatchEvaluation",
    http_method = "POST",
    http_path = "/evaluations/batch-evaluate/{batchEvaluationId}/stop",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$stop_batch_evaluation_input(batchEvaluationId = batchEvaluationId)
  output <- .bedrockagentcore$stop_batch_evaluation_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$stop_batch_evaluation <- bedrockagentcore_stop_batch_evaluation

#' Terminates an active browser session in Amazon Bedrock AgentCore
#'
#' @description
#' Terminates an active browser session in Amazon Bedrock AgentCore. This operation stops the session, releases associated resources, and makes the session unavailable for further use.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_stop_browser_session/](https://www.paws-r-sdk.com/docs/bedrockagentcore_stop_browser_session/) for full documentation.
#'
#' @param traceId The trace identifier for request tracking.
#' @param traceParent The parent trace information for distributed tracing.
#' @param browserIdentifier &#91;required&#93; The unique identifier of the browser associated with the session.
#' @param sessionId &#91;required&#93; The unique identifier of the browser session to stop.
#' @param clientToken A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request, but does not return an error.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_stop_browser_session
bedrockagentcore_stop_browser_session <- function(traceId = NULL, traceParent = NULL, browserIdentifier, sessionId, clientToken = NULL) {
  op <- new_operation(
    name = "StopBrowserSession",
    http_method = "PUT",
    http_path = "/browsers/{browserIdentifier}/sessions/stop",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$stop_browser_session_input(traceId = traceId, traceParent = traceParent, browserIdentifier = browserIdentifier, sessionId = sessionId, clientToken = clientToken)
  output <- .bedrockagentcore$stop_browser_session_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$stop_browser_session <- bedrockagentcore_stop_browser_session

#' Terminates an active code interpreter session in Amazon Bedrock
#' AgentCore
#'
#' @description
#' Terminates an active code interpreter session in Amazon Bedrock AgentCore. This operation stops the session, releases associated resources, and makes the session unavailable for further use.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_stop_code_interpreter_session/](https://www.paws-r-sdk.com/docs/bedrockagentcore_stop_code_interpreter_session/) for full documentation.
#'
#' @param traceId The trace identifier for request tracking.
#' @param traceParent The parent trace information for distributed tracing.
#' @param codeInterpreterIdentifier &#91;required&#93; The unique identifier of the code interpreter associated with the session.
#' @param sessionId &#91;required&#93; The unique identifier of the code interpreter session to stop.
#' @param clientToken A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock AgentCore ignores the request, but does not return an error.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_stop_code_interpreter_session
bedrockagentcore_stop_code_interpreter_session <- function(traceId = NULL, traceParent = NULL, codeInterpreterIdentifier, sessionId, clientToken = NULL) {
  op <- new_operation(
    name = "StopCodeInterpreterSession",
    http_method = "PUT",
    http_path = "/code-interpreters/{codeInterpreterIdentifier}/sessions/stop",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$stop_code_interpreter_session_input(traceId = traceId, traceParent = traceParent, codeInterpreterIdentifier = codeInterpreterIdentifier, sessionId = sessionId, clientToken = clientToken)
  output <- .bedrockagentcore$stop_code_interpreter_session_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$stop_code_interpreter_session <- bedrockagentcore_stop_code_interpreter_session

#' Stops a session that is running in an running AgentCore Runtime agent
#'
#' @description
#' Stops a session that is running in an running AgentCore Runtime agent.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_stop_runtime_session/](https://www.paws-r-sdk.com/docs/bedrockagentcore_stop_runtime_session/) for full documentation.
#'
#' @param runtimeSessionId &#91;required&#93; The ID of the session that you want to stop.
#' @param agentRuntimeArn &#91;required&#93; The ARN of the agent that contains the session that you want to stop.
#' @param qualifier Optional qualifier to specify an agent alias, such as `prod`code\> or `dev`. If you don't provide a value, the DEFAULT alias is used.
#' @param clientToken Idempotent token used to identify the request. If you use the same token with multiple requests, the same response is returned. Use ClientToken to prevent the same request from being processed more than once.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_stop_runtime_session
bedrockagentcore_stop_runtime_session <- function(runtimeSessionId, agentRuntimeArn, qualifier = NULL, clientToken = NULL) {
  op <- new_operation(
    name = "StopRuntimeSession",
    http_method = "POST",
    http_path = "/runtimes/{agentRuntimeArn}/stopruntimesession",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$stop_runtime_session_input(runtimeSessionId = runtimeSessionId, agentRuntimeArn = agentRuntimeArn, qualifier = qualifier, clientToken = clientToken)
  output <- .bedrockagentcore$stop_runtime_session_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$stop_runtime_session <- bedrockagentcore_stop_runtime_session

#' Updates an A/B test's configuration, including variants, traffic
#' allocation, evaluation settings, or execution status
#'
#' @description
#' Updates an A/B test's configuration, including variants, traffic allocation, evaluation settings, or execution status.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_update_ab_test/](https://www.paws-r-sdk.com/docs/bedrockagentcore_update_ab_test/) for full documentation.
#'
#' @param abTestId &#91;required&#93; The unique identifier of the A/B test to update.
#' @param clientToken A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, the service ignores the request, but does not return an error.
#' @param name The updated name of the A/B test.
#' @param description The updated description of the A/B test.
#' @param variants The updated list of variants.
#' @param gatewayFilter The updated gateway filter.
#' @param evaluationConfig The updated evaluation configuration.
#' @param roleArn The updated IAM role ARN.
#' @param executionStatus The updated execution status to enable or disable the A/B test.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_update_ab_test
bedrockagentcore_update_ab_test <- function(abTestId, clientToken = NULL, name = NULL, description = NULL, variants = NULL, gatewayFilter = NULL, evaluationConfig = NULL, roleArn = NULL, executionStatus = NULL) {
  op <- new_operation(
    name = "UpdateABTest",
    http_method = "PUT",
    http_path = "/ab-tests/{abTestId}",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$update_ab_test_input(abTestId = abTestId, clientToken = clientToken, name = name, description = description, variants = variants, gatewayFilter = gatewayFilter, evaluationConfig = evaluationConfig, roleArn = roleArn, executionStatus = executionStatus)
  output <- .bedrockagentcore$update_ab_test_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$update_ab_test <- bedrockagentcore_update_ab_test

#' Updates a browser stream
#'
#' @description
#' Updates a browser stream. To use this operation, you must have permissions to perform the bedrock:UpdateBrowserStream action.
#'
#' See [https://www.paws-r-sdk.com/docs/bedrockagentcore_update_browser_stream/](https://www.paws-r-sdk.com/docs/bedrockagentcore_update_browser_stream/) for full documentation.
#'
#' @param browserIdentifier &#91;required&#93; The identifier of the browser.
#' @param sessionId &#91;required&#93; The identifier of the browser session.
#' @param streamUpdate &#91;required&#93; The update to apply to the browser stream.
#' @param clientToken A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.
#'
#' @keywords internal
#'
#' @rdname bedrockagentcore_update_browser_stream
bedrockagentcore_update_browser_stream <- function(browserIdentifier, sessionId, streamUpdate, clientToken = NULL) {
  op <- new_operation(
    name = "UpdateBrowserStream",
    http_method = "PUT",
    http_path = "/browsers/{browserIdentifier}/sessions/streams/update",
    host_prefix = "",
    paginator = list(),
    stream_api = FALSE
  )
  input <- .bedrockagentcore$update_browser_stream_input(browserIdentifier = browserIdentifier, sessionId = sessionId, streamUpdate = streamUpdate, clientToken = clientToken)
  output <- .bedrockagentcore$update_browser_stream_output()
  config <- get_config()
  svc <- .bedrockagentcore$service(config, op)
  request <- new_request(svc, op, input, output)
  response <- send_request(request)
  return(response)
}
.bedrockagentcore$operations$update_browser_stream <- bedrockagentcore_update_browser_stream

Try the paws.machine.learning package in your browser

Any scripts or data that you put into this service are public.

paws.machine.learning documentation built on May 31, 2026, 1:07 a.m.