TrainingQuery

public struct TrainingQuery : Codable, Equatable

Object that contains training query details.

  • The query ID associated with the training query.

    Declaration

    Swift

    public var queryID: String?
  • The natural text query for the training query.

    Declaration

    Swift

    public var naturalLanguageQuery: String
  • The filter used on the collection before the natural_language_query is applied.

    Declaration

    Swift

    public var filter: String?
  • The date and time the query was created.

    Declaration

    Swift

    public var created: Date?
  • The date and time the query was updated.

    Declaration

    Swift

    public var updated: Date?
  • Array of training examples.

    Declaration

    Swift

    public var examples: [TrainingExample]
  • Initialize a TrainingQuery with member variables.

    Declaration

    Swift

    public init(
        naturalLanguageQuery: String,
        examples: [TrainingExample],
        filter: String? = nil
    )

    Parameters

    naturalLanguageQuery

    The natural text query for the training query.

    examples

    Array of training examples.

    filter

    The filter used on the collection before the natural_language_query is applied.

    Return Value

    An initialized TrainingQuery.