ServerRequest

public struct ServerRequest : Codable, Hashable, Equatable

WienBotKitura accepts GET queries queries to interpret a message. The message q is message to be interpreted. Example: https://dev.api.wienbot.wave-ai.com/message\ ?q=ich%20habe%20meinen%20schl%C3%BCssel%20verloren&nowave=false

  • q

    The query to interpret, in German.

    Declaration

    Swift

    public let q: String
  • The version number of the client, such as “2.0”. Helps WienBotKitura decide which message to send back to the client. Optional.

    Declaration

    Swift

    public let version: String?
  • The client name of the client, such as “android”. Helps WienBotKitura decide which message to send back to the client. Optional.

    Declaration

    Swift

    public let client: String?
  • The channel to for wienbot static answers. If none is provided the “default” channel will be used. A none existing channel results in an error. Optional.

    Declaration

    Swift

    public let channel: String?
  • This string will be used during resolving of keywords in the static engine. It will be used, untranslated, as one of the keywords that was said by the user. Optional.

    Declaration

    Swift

    public let context: String?
  • System to use to provide an answer when no local answer is found. Default is “wienSearch”. See FallbackMode for more options.

    Declaration

    Swift

    public let fallbackmode: String?
  • Latitude of where the user is, such as “48.232494”. If resolvewave is true, this can help Wave get better answers. Optional.

    Declaration

    Swift

    public let latitude: Double?
  • Longitude of where the user is, such as “16.32434”. If resolvewave is true, this can help Wave get better answers. Optional.

    Declaration

    Swift

    public let longitude: Double?
  • Default is false. Behavior if nowave=true is undefined. If true, WienBotKitura will resolve Wave stories such as routing and maps and will provide images of the views the app would normally display. This is useful for clients such as Facebook and the fallback web client. Optional.

    Declaration

    Swift

    public let resolvewave: Bool?
  • Default is false. If true, WienBotKitura will only return WienBot stories, Wave functionality such as routing, location resolving and departures are disabled. This is useful for clients such as Facebook. Optional.

    Declaration

    Swift

    public let multipleoutcomes: Bool?
  • default is false. If true WienBotKitura will not try to reduce to one outcome but will offer multiple outcomes to output. Optional.

    Declaration

    Swift

    public let nowave: Bool?
  • The input type this request orginated from. “text” for text input. “speech” for speech input. Optional.

    Declaration

    Swift

    public let input: String?
  • Enables the translation system. Set this to the region code to translate answers to, for example “en”. Requires the DEEPLAPIKEY to be set. q will be translated automatically from any source language that deepl supports.

    Declaration

    Swift

    public let targetlanguage: String?
  • You can specify a sourcelanguage too to help with translation. Else the language is autodetected. Does nothing if targetlanguage is not specified.

    Declaration

    Swift

    public let sourcelanguage: String?