R/lexruntimeservice_interfaces.R

Defines functions put_session_output put_session_input post_text_output post_text_input post_content_output post_content_input get_session_output get_session_input delete_session_output delete_session_input

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

.lexruntimeservice$delete_session_input <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(botName = structure(logical(0), tags = list(location = "uri", locationName = "botName", type = "string")), botAlias = structure(logical(0), tags = list(location = "uri", locationName = "botAlias", type = "string")), userId = structure(logical(0), tags = list(location = "uri", locationName = "userId", type = "string"))), tags = list(type = "structure"))
  return(populate(args, shape))
}

.lexruntimeservice$delete_session_output <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(botName = structure(logical(0), tags = list(type = "string")), botAlias = structure(logical(0), tags = list(type = "string")), userId = structure(logical(0), tags = list(type = "string")), sessionId = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure"))
  return(populate(args, shape))
}

.lexruntimeservice$get_session_input <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(botName = structure(logical(0), tags = list(location = "uri", locationName = "botName", type = "string")), botAlias = structure(logical(0), tags = list(location = "uri", locationName = "botAlias", type = "string")), userId = structure(logical(0), tags = list(location = "uri", locationName = "userId", type = "string")), checkpointLabelFilter = structure(logical(0), tags = list(location = "querystring", locationName = "checkpointLabelFilter", type = "string"))), tags = list(type = "structure"))
  return(populate(args, shape))
}

.lexruntimeservice$get_session_output <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(recentIntentSummaryView = structure(list(structure(list(intentName = structure(logical(0), tags = list(type = "string")), checkpointLabel = structure(logical(0), tags = list(type = "string")), slots = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE)), confirmationStatus = structure(logical(0), tags = list(type = "string")), dialogActionType = structure(logical(0), tags = list(type = "string")), fulfillmentState = structure(logical(0), tags = list(type = "string")), slotToElicit = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure"))), tags = list(type = "list")), sessionAttributes = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE)), sessionId = structure(logical(0), tags = list(type = "string")), dialogAction = structure(list(type = structure(logical(0), tags = list(type = "string")), intentName = structure(logical(0), tags = list(type = "string")), slots = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE)), slotToElicit = structure(logical(0), tags = list(type = "string")), fulfillmentState = structure(logical(0), tags = list(type = "string")), message = structure(logical(0), tags = list(type = "string", sensitive = TRUE)), messageFormat = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure")), activeContexts = structure(list(structure(list(name = structure(logical(0), tags = list(type = "string")), timeToLive = structure(list(timeToLiveInSeconds = structure(logical(0), tags = list(type = "integer")), turnsToLive = structure(logical(0), tags = list(type = "integer"))), tags = list(type = "structure")), parameters = structure(list(structure(logical(0), tags = list(type = "string", sensitive = TRUE))), tags = list(type = "map"))), tags = list(type = "structure"))), tags = list(type = "list", sensitive = TRUE))), tags = list(type = "structure"))
  return(populate(args, shape))
}

.lexruntimeservice$post_content_input <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(botName = structure(logical(0), tags = list(location = "uri", locationName = "botName", type = "string")), botAlias = structure(logical(0), tags = list(location = "uri", locationName = "botAlias", type = "string")), userId = structure(logical(0), tags = list(location = "uri", locationName = "userId", type = "string")), sessionAttributes = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-session-attributes", type = "string", sensitive = TRUE)), requestAttributes = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-request-attributes", type = "string", 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")), inputStream = structure(logical(0), tags = list(type = "blob", streaming = TRUE)), activeContexts = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-active-contexts", type = "string", sensitive = TRUE))), tags = list(type = "structure", payload = "inputStream"))
  return(populate(args, shape))
}

.lexruntimeservice$post_content_output <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(contentType = structure(logical(0), tags = list(location = "header", locationName = "Content-Type", type = "string")), intentName = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-intent-name", type = "string")), nluIntentConfidence = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-nlu-intent-confidence", type = "string")), alternativeIntents = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-alternative-intents", type = "string")), slots = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-slots", type = "string")), sessionAttributes = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-session-attributes", type = "string")), sentimentResponse = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-sentiment", type = "string")), message = structure(logical(0), tags = list(deprecated = TRUE, deprecatedMessage = "The message field is deprecated, use the encodedMessage field instead. The message field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales.", location = "header", locationName = "x-amz-lex-message", type = "string", sensitive = TRUE)), encodedMessage = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-encoded-message", type = "string", sensitive = TRUE)), messageFormat = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-message-format", type = "string")), dialogState = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-dialog-state", type = "string")), slotToElicit = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-slot-to-elicit", type = "string")), inputTranscript = structure(logical(0), tags = list(deprecated = TRUE, deprecatedMessage = "The inputTranscript field is deprecated, use the encodedInputTranscript field instead. The inputTranscript field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales.", location = "header", locationName = "x-amz-lex-input-transcript", type = "string")), encodedInputTranscript = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-encoded-input-transcript", type = "string", sensitive = TRUE)), audioStream = structure(logical(0), tags = list(type = "blob", streaming = TRUE)), botVersion = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-bot-version", type = "string")), sessionId = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-session-id", type = "string")), activeContexts = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-active-contexts", type = "string", sensitive = TRUE))), tags = list(type = "structure", payload = "audioStream"))
  return(populate(args, shape))
}

.lexruntimeservice$post_text_input <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(botName = structure(logical(0), tags = list(location = "uri", locationName = "botName", type = "string")), botAlias = structure(logical(0), tags = list(location = "uri", locationName = "botAlias", type = "string")), userId = structure(logical(0), tags = list(location = "uri", locationName = "userId", type = "string")), sessionAttributes = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE)), requestAttributes = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE)), inputText = structure(logical(0), tags = list(type = "string", sensitive = TRUE)), activeContexts = structure(list(structure(list(name = structure(logical(0), tags = list(type = "string")), timeToLive = structure(list(timeToLiveInSeconds = structure(logical(0), tags = list(type = "integer")), turnsToLive = structure(logical(0), tags = list(type = "integer"))), tags = list(type = "structure")), parameters = structure(list(structure(logical(0), tags = list(type = "string", sensitive = TRUE))), tags = list(type = "map"))), tags = list(type = "structure"))), tags = list(type = "list", sensitive = TRUE))), tags = list(type = "structure"))
  return(populate(args, shape))
}

.lexruntimeservice$post_text_output <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(intentName = structure(logical(0), tags = list(type = "string")), nluIntentConfidence = structure(list(score = structure(logical(0), tags = list(type = "double"))), tags = list(type = "structure")), alternativeIntents = structure(list(structure(list(intentName = structure(logical(0), tags = list(type = "string")), nluIntentConfidence = structure(list(score = structure(logical(0), tags = list(type = "double"))), tags = list(type = "structure")), slots = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE))), tags = list(type = "structure"))), tags = list(type = "list")), slots = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE)), sessionAttributes = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE)), message = structure(logical(0), tags = list(type = "string", sensitive = TRUE)), sentimentResponse = structure(list(sentimentLabel = structure(logical(0), tags = list(type = "string")), sentimentScore = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure")), messageFormat = structure(logical(0), tags = list(type = "string")), dialogState = structure(logical(0), tags = list(type = "string")), slotToElicit = structure(logical(0), tags = list(type = "string")), responseCard = structure(list(version = structure(logical(0), tags = list(type = "string")), contentType = structure(logical(0), tags = list(type = "string")), genericAttachments = structure(list(structure(list(title = structure(logical(0), tags = list(type = "string")), subTitle = structure(logical(0), tags = list(type = "string")), attachmentLinkUrl = structure(logical(0), tags = list(type = "string")), imageUrl = structure(logical(0), tags = list(type = "string")), buttons = structure(list(structure(list(text = structure(logical(0), tags = list(type = "string")), value = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure"))), tags = list(type = "list"))), tags = list(type = "structure"))), tags = list(type = "list"))), tags = list(type = "structure")), sessionId = structure(logical(0), tags = list(type = "string")), botVersion = structure(logical(0), tags = list(type = "string")), activeContexts = structure(list(structure(list(name = structure(logical(0), tags = list(type = "string")), timeToLive = structure(list(timeToLiveInSeconds = structure(logical(0), tags = list(type = "integer")), turnsToLive = structure(logical(0), tags = list(type = "integer"))), tags = list(type = "structure")), parameters = structure(list(structure(logical(0), tags = list(type = "string", sensitive = TRUE))), tags = list(type = "map"))), tags = list(type = "structure"))), tags = list(type = "list", sensitive = TRUE))), tags = list(type = "structure"))
  return(populate(args, shape))
}

.lexruntimeservice$put_session_input <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(botName = structure(logical(0), tags = list(location = "uri", locationName = "botName", type = "string")), botAlias = structure(logical(0), tags = list(location = "uri", locationName = "botAlias", type = "string")), userId = structure(logical(0), tags = list(location = "uri", locationName = "userId", type = "string")), sessionAttributes = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE)), dialogAction = structure(list(type = structure(logical(0), tags = list(type = "string")), intentName = structure(logical(0), tags = list(type = "string")), slots = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE)), slotToElicit = structure(logical(0), tags = list(type = "string")), fulfillmentState = structure(logical(0), tags = list(type = "string")), message = structure(logical(0), tags = list(type = "string", sensitive = TRUE)), messageFormat = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure")), recentIntentSummaryView = structure(list(structure(list(intentName = structure(logical(0), tags = list(type = "string")), checkpointLabel = structure(logical(0), tags = list(type = "string")), slots = structure(list(structure(logical(0), tags = list(type = "string"))), tags = list(type = "map", sensitive = TRUE)), confirmationStatus = structure(logical(0), tags = list(type = "string")), dialogActionType = structure(logical(0), tags = list(type = "string")), fulfillmentState = structure(logical(0), tags = list(type = "string")), slotToElicit = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure"))), tags = list(type = "list")), accept = structure(logical(0), tags = list(location = "header", locationName = "Accept", type = "string")), activeContexts = structure(list(structure(list(name = structure(logical(0), tags = list(type = "string")), timeToLive = structure(list(timeToLiveInSeconds = structure(logical(0), tags = list(type = "integer")), turnsToLive = structure(logical(0), tags = list(type = "integer"))), tags = list(type = "structure")), parameters = structure(list(structure(logical(0), tags = list(type = "string", sensitive = TRUE))), tags = list(type = "map"))), tags = list(type = "structure"))), tags = list(type = "list", sensitive = TRUE))), tags = list(type = "structure"))
  return(populate(args, shape))
}

.lexruntimeservice$put_session_output <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(contentType = structure(logical(0), tags = list(location = "header", locationName = "Content-Type", type = "string")), intentName = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-intent-name", type = "string")), slots = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-slots", type = "string")), sessionAttributes = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-session-attributes", type = "string")), message = structure(logical(0), tags = list(deprecated = TRUE, deprecatedMessage = "The message field is deprecated, use the encodedMessage field instead. The message field is available only in the de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-CA, fr-FR and it-IT locales.", location = "header", locationName = "x-amz-lex-message", type = "string", sensitive = TRUE)), encodedMessage = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-encoded-message", type = "string", sensitive = TRUE)), messageFormat = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-message-format", type = "string")), dialogState = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-dialog-state", type = "string")), slotToElicit = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-slot-to-elicit", type = "string")), audioStream = structure(logical(0), tags = list(type = "blob", streaming = TRUE)), sessionId = structure(logical(0), tags = list(location = "header", locationName = "x-amz-lex-session-id", type = "string")), activeContexts = structure(logical(0), tags = list(jsonvalue = TRUE, location = "header", locationName = "x-amz-lex-active-contexts", type = "string", sensitive = TRUE))), tags = list(type = "structure", payload = "audioStream"))
  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 Sept. 12, 2023, 1:14 a.m.