R/bedrockruntime_interfaces.R

Defines functions invoke_model_with_response_stream_output invoke_model_with_response_stream_input invoke_model_output invoke_model_input

# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common populate
#' @include bedrockruntime_service.R
NULL

.bedrockruntime$invoke_model_input <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(body = structure(logical(0), tags = list(type = "blob", sensitive = TRUE)), contentType = structure(logical(0), tags = list(location = "header", locationName = "Content-Type", type = "string")), accept = structure(logical(0), tags = list(location = "header", locationName = "Accept", type = "string")), modelId = structure(logical(0), tags = list(location = "uri", locationName = "modelId", type = "string")), trace = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-Bedrock-Trace", type = "string")), guardrailIdentifier = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-Bedrock-GuardrailIdentifier", type = "string")), guardrailVersion = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-Bedrock-GuardrailVersion", type = "string"))), tags = list(type = "structure", payload = "body"))
  return(populate(args, shape))
}

.bedrockruntime$invoke_model_output <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(body = structure(logical(0), tags = list(type = "blob", sensitive = TRUE)), contentType = structure(logical(0), tags = list(location = "header", locationName = "Content-Type", type = "string"))), tags = list(type = "structure", payload = "body"))
  return(populate(args, shape))
}

.bedrockruntime$invoke_model_with_response_stream_input <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(body = structure(logical(0), tags = list(type = "blob", sensitive = TRUE)), contentType = structure(logical(0), tags = list(location = "header", locationName = "Content-Type", type = "string")), accept = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-Bedrock-Accept", type = "string")), modelId = structure(logical(0), tags = list(location = "uri", locationName = "modelId", type = "string")), trace = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-Bedrock-Trace", type = "string")), guardrailIdentifier = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-Bedrock-GuardrailIdentifier", type = "string")), guardrailVersion = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-Bedrock-GuardrailVersion", type = "string"))), tags = list(type = "structure", payload = "body"))
  return(populate(args, shape))
}

.bedrockruntime$invoke_model_with_response_stream_output <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(body = structure(list(chunk = structure(list(bytes = structure(logical(0), tags = list(type = "blob", sensitive = TRUE))), tags = list(type = "structure", event = TRUE, sensitive = TRUE)), internalServerException = structure(list(message = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure", exception = TRUE, fault = TRUE)), modelStreamErrorException = structure(list(message = structure(logical(0), tags = list(type = "string")), originalStatusCode = structure(logical(0), tags = list(type = "integer", box = TRUE)), originalMessage = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure", exception = TRUE)), validationException = structure(list(message = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure", exception = TRUE)), throttlingException = structure(list(message = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure", exception = TRUE)), modelTimeoutException = structure(list(message = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure", exception = TRUE))), tags = list(type = "structure", eventstream = TRUE)), contentType = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-Bedrock-Content-Type", type = "string"))), tags = list(type = "structure", payload = "body"))
  return(populate(args, shape))
}

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 29, 2024, 9:43 a.m.