@aws-amplify/graphql-predictions-transformer
TypeScript icon, indicating that this package has built-in type declarations

2.1.22 • Public • Published

GraphQL @predictions Transformer

Reference Documentation

@predictions

The @predictions directive allows you to query an orchestration of AI/ML services such as Amazon Rekognition, Amazon Translate, and/or Amazon Polly.

Definition

directive @predictions(actions: [PredictionsActions!]!) on FIELD_DEFINITION
enum PredictionsActions {
  identifyText # uses Amazon Rekognition to detect text
  identifyLabels # uses Amazon Rekognition to detect labels
  convertTextToSpeech # uses Amazon Polly in a lambda to output a presigned url to synthesized speech
  translateText # uses Amazon Translate to translate text from source to target language
}

/@aws-amplify/graphql-predictions-transformer/

    Package Sidebar

    Install

    npm i @aws-amplify/graphql-predictions-transformer

    Weekly Downloads

    72,597

    Version

    2.1.22

    License

    Apache-2.0

    Unpacked Size

    110 kB

    Total Files

    23

    Last publish

    Collaborators

    • amplify-data-dev-npm
    • amplify-studio-uibuilder
    • amplify-codegen
    • amzn-oss
    • undefobj
    • aws-amplify-ops
    • manuel.iglesias
    • thaddmt
    • mattsb42-aws