Class ContextDTO
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.ContextDTO
-
- Direct Known Subclasses:
QnADTOContext
,QnASearchResultContext
public class ContextDTO extends Object
Context associated with Qna.
-
-
Constructor Summary
Constructors Constructor Description ContextDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
isContextOnly()
Get the isContextOnly value.List<PromptDTO>
prompts()
Get the prompts value.ContextDTO
withIsContextOnly(Boolean isContextOnly)
Set the isContextOnly value.ContextDTO
withPrompts(List<PromptDTO> prompts)
Set the prompts value.
-
-
-
Method Detail
-
isContextOnly
public Boolean isContextOnly()
Get the isContextOnly value.- Returns:
- the isContextOnly value
-
withIsContextOnly
public ContextDTO withIsContextOnly(Boolean isContextOnly)
Set the isContextOnly value.- Parameters:
isContextOnly
- the isContextOnly value to set- Returns:
- the ContextDTO object itself.
-
withPrompts
public ContextDTO withPrompts(List<PromptDTO> prompts)
Set the prompts value.- Parameters:
prompts
- the prompts value to set- Returns:
- the ContextDTO object itself.
-
-