Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Mauna

Hierarchy

  • Mauna

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Mauna(__namedParameters: credentials): Mauna
  • Parameters

    • __namedParameters: credentials

    Returns Mauna

Properties

Optional _api

_api: undefined | { answerQuestion: any; chitchat: any; classifyTopic: any; commonsenseReasoning: any; getConceptnetRelations: any; getSentiment: any; matchIntent: any; measureSimilarity: any; paraphraseSentence: any; parseACE: any; parseContext: any; parseText: any; parseTextTokens: any; predictNextTurn: any; renderCSS: any; resolveCoreferences: any; speechToText: any; textToSpeech: any; toVec: any }

apiKey

apiKey: string

Optional client

client: undefined | Client

developerId

developerId: number

initialized

initialized: boolean

Accessors

api

  • get api(): { answerQuestion: any; chitchat: any; classifyTopic: any; commonsenseReasoning: any; getConceptnetRelations: any; getSentiment: any; matchIntent: any; measureSimilarity: any; paraphraseSentence: any; parseACE: any; parseContext: any; parseText: any; parseTextTokens: any; predictNextTurn: any; renderCSS: any; resolveCoreferences: any; speechToText: any; textToSpeech: any; toVec: any }
  • Returns { answerQuestion: any; chitchat: any; classifyTopic: any; commonsenseReasoning: any; getConceptnetRelations: any; getSentiment: any; matchIntent: any; measureSimilarity: any; paraphraseSentence: any; parseACE: any; parseContext: any; parseText: any; parseTextTokens: any; predictNextTurn: any; renderCSS: any; resolveCoreferences: any; speechToText: any; textToSpeech: any; toVec: any }

    • answerQuestion: function
      • answerQuestion(variables: Exact<{ context: string; input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<AnswerQuestionQuery>
      • Parameters

        • variables: Exact<{ context: string; input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<AnswerQuestionQuery>

    • chitchat: function
      • chitchat(variables: Exact<{ history: Turn | Turn[]; input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<ChitchatQuery>
      • Parameters

        • variables: Exact<{ history: Turn | Turn[]; input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<ChitchatQuery>

    • classifyTopic: function
      • classifyTopic(variables: Exact<{ input: string; topics: string | string[] }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<ClassifyTopicQuery>
      • Parameters

        • variables: Exact<{ input: string; topics: string | string[] }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<ClassifyTopicQuery>

    • commonsenseReasoning: function
      • commonsenseReasoning(variables: Exact<{ category: Category; input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<CommonsenseReasoningQuery>
      • Parameters

        • variables: Exact<{ category: Category; input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<CommonsenseReasoningQuery>

    • getConceptnetRelations: function
      • getConceptnetRelations(variables: Exact<{ input: string; relation: Relation }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<GetConceptnetRelationsQuery>
      • Parameters

        • variables: Exact<{ input: string; relation: Relation }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<GetConceptnetRelationsQuery>

    • getSentiment: function
      • getSentiment(variables: Exact<{ input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<GetSentimentQuery>
      • Parameters

        • variables: Exact<{ input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<GetSentimentQuery>

    • matchIntent: function
      • matchIntent(variables: Exact<{ input: string; intents: string | string[] }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<MatchIntentQuery>
      • Parameters

        • variables: Exact<{ input: string; intents: string | string[] }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<MatchIntentQuery>

    • measureSimilarity: function
      • measureSimilarity(variables: Exact<{ candidates: string | string[]; input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<MeasureSimilarityQuery>
      • Parameters

        • variables: Exact<{ candidates: string | string[]; input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<MeasureSimilarityQuery>

    • paraphraseSentence: function
      • paraphraseSentence(variables: Exact<{ input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<ParaphraseSentenceQuery>
      • Parameters

        • variables: Exact<{ input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<ParaphraseSentenceQuery>

    • parseACE: function
      • parseACE(variables: Exact<{ input: string; type: AceOutputType }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<ParseAceQuery>
      • Parameters

        • variables: Exact<{ input: string; type: AceOutputType }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<ParseAceQuery>

    • parseContext: function
      • parseContext(variables: Exact<{ history: Turn | Turn[] }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<ParseContextQuery>
      • Parameters

        • variables: Exact<{ history: Turn | Turn[] }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<ParseContextQuery>

    • parseText: function
      • parseText(variables: Exact<{ input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<ParseTextQuery>
      • Parameters

        • variables: Exact<{ input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<ParseTextQuery>

    • parseTextTokens: function
      • parseTextTokens(variables: Exact<{ input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<ParseTextTokensQuery>
      • Parameters

        • variables: Exact<{ input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<ParseTextTokensQuery>

    • predictNextTurn: function
      • predictNextTurn(variables: Exact<{ history: Turn | Turn[]; input: string | string[] }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<PredictNextTurnQuery>
      • Parameters

        • variables: Exact<{ history: Turn | Turn[]; input: string | string[] }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<PredictNextTurnQuery>

    • renderCSS: function
      • renderCSS(variables: Exact<{ css: string; ssml: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<RenderCssQuery>
      • Parameters

        • variables: Exact<{ css: string; ssml: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<RenderCssQuery>

    • resolveCoreferences: function
      • resolveCoreferences(variables: Exact<{ input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<ResolveCoreferencesQuery>
      • Parameters

        • variables: Exact<{ input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<ResolveCoreferencesQuery>

    • speechToText: function
      • speechToText(variables: Exact<{ input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<SpeechToTextQuery>
      • Parameters

        • variables: Exact<{ input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<SpeechToTextQuery>

    • textToSpeech: function
      • textToSpeech(variables: Exact<{ input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<TextToSpeechQuery>
      • Parameters

        • variables: Exact<{ input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<TextToSpeechQuery>

    • toVec: function
      • toVec(variables: Exact<{ input: string }>, requestHeaders?: Headers | string[][] | Record<string, string>): Promise<ToVecQuery>
      • Parameters

        • variables: Exact<{ input: string }>
        • Optional requestHeaders: Headers | string[][] | Record<string, string>

        Returns Promise<ToVecQuery>

Methods

initialize

  • initialize(): Promise<Mauna>

Generated using TypeDoc