DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill

public struct DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill : Codable, Equatable

DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill.

Enums with an associated value of DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill: DialogNodeOutputGeneric

  • The type of the search query.

    See more

    Declaration

    Swift

    public enum QueryType : String
  • The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. Note: The search_skill response type is used only by the v2 runtime API.

    Declaration

    Swift

    public var responseType: String
  • The text of the search query. This can be either a natural-language query or a query that uses the Discovery query language syntax, depending on the value of the query_type property. For more information, see the Discovery service documentation.

    Declaration

    Swift

    public var query: String
  • The type of the search query.

    Declaration

    Swift

    public var queryType: String
  • An optional filter that narrows the set of documents to be searched. For more information, see the [Discovery service documentation](Discovery service documentation.

    Declaration

    Swift

    public var filter: String?
  • The version of the Discovery service API to use for the query.

    Declaration

    Swift

    public var discoveryVersion: String?
  • An array of objects specifying channels for which the response is intended.

    Declaration

    Swift

    public var channels: [ResponseGenericChannel]?
  • Initialize a DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill with member variables.

    Declaration

    Swift

    public init(
        responseType: String,
        query: String,
        queryType: String,
        filter: String? = nil,
        discoveryVersion: String? = nil,
        channels: [ResponseGenericChannel]? = nil
    )

    Parameters

    responseType

    The type of response returned by the dialog node. The specified response type must be supported by the client application or channel. Note: The search_skill response type is used only by the v2 runtime API.

    query

    The text of the search query. This can be either a natural-language query or a query that uses the Discovery query language syntax, depending on the value of the query_type property. For more information, see the Discovery service documentation.

    queryType

    The type of the search query.

    filter

    An optional filter that narrows the set of documents to be searched. For more information, see the [Discovery service documentation](Discovery service documentation.

    discoveryVersion

    The version of the Discovery service API to use for the query.

    channels

    An array of objects specifying channels for which the response is intended.

    Return Value

    An initialized DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill.