shared/helpers/get-question
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
shared/helpers/get-question
Section titled “shared/helpers/get-question”- Package:
@leipzigtreechat/shared - Source file:
packages/shared/src/helpers/get-question.ts
Summary
Section titled “Summary”Fetches the raw question from given question url
Functions
Section titled “Functions”fetchRawQuestion
Section titled “fetchRawQuestion”function fetchRawQuestion(questionUrl: string, origin: string): voidFetches the raw question from given question url
Parameters
questionUrl(string): the url of the questionorigin(string): the origin for the question request, e.g the origin of qanary pipeline Defined at: line 10
getQuestion
Section titled “getQuestion”function getQuestion(message: IQanaryMessage, origin: string): Promise<string | null>Gets the question from the graph given in the message
Parameters
message(IQanaryMessage): the message containing the graph and endpointorigin(string): the origin for the question request, e.g the origin of qanary pipeline ReturnsPromise<string | null>: the asked question Defined at: line 32
In shared
Section titled “In shared”shared/constants/qanaryshared/enums/annotationsshared/enums/calculationshared/enums/component-listshared/enums/domainsshared/enums/intentsshared/enums/rasa-response-typesshared/enums/representationshared/helpers/create-annotationshared/helpers/get-question-urishared/helpers/get-questionshared/helpers/message-operationsshared/helpers/query-sparqlshared/helpers/question-uri-queryshared/indexshared/interfaces/annotationsshared/interfaces/qanary-interfaces- [
shared/interfaces/question-sparql-response copy](/source-code/shared/interfaces/question-sparql-response copy) shared/interfaces/question-sparql-responseshared/interfaces/representationshared/maps/annotations