class Azure::CognitiveServices::QnamakerRuntime::V4_0::Models::PromptDTO
Prompt for an answer.
Attributes
display_order[RW]
@return [Integer] Index of the prompt - used in ordering of the prompts
display_text[RW]
@return [String] Text displayed to represent a follow up question prompt
qna[RW]
qna_id[RW]
@return [Integer] Qna id corresponding to the prompt - if QnaId is present, QnADTO
object is ignored.
Private Class Methods
mapper()
click to toggle source
Mapper for PromptDTO
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/4.0/generated/azure_cognitiveservices_qnamakerruntime/models/prompt_dto.rb, line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PromptDTO', type: { name: 'Composite', class_name: 'PromptDTO', model_properties: { display_order: { client_side_validation: true, required: false, serialized_name: 'displayOrder', type: { name: 'Number' } }, qna_id: { client_side_validation: true, required: false, serialized_name: 'qnaId', type: { name: 'Number' } }, qna: { client_side_validation: true, required: false, serialized_name: 'qna', type: { name: 'Composite', class_name: 'PromptDTOQna' } }, display_text: { client_side_validation: true, required: false, serialized_name: 'displayText', constraints: { MaxLength: 200 }, type: { name: 'String' } } } } } end