ContextDTO Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. knowledge. qnamaker. models. ContextDTO
- com.
public class ContextDTO
Context associated with Qna.
Constructor Summary
Constructor | Description | |
---|---|---|
ContextDTO() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
isContextOnly()
Get the is |
List<PromptDTO> |
prompts()
Get the prompts value. |
ContextDTO |
withIsContextOnly(Boolean isContextOnly)
Set the is |
ContextDTO |
withPrompts(List<PromptDTO> prompts)
Set the prompts value. |
Methods inherited from java.lang.Object
Constructor Details
ContextDTO
public ContextDTO()
Method Details
isContextOnly
public Boolean isContextOnly()
Get the isContextOnly value.
Returns:
the isContextOnly value
prompts
public List
Get the prompts value.
Returns:
the prompts 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
Set the prompts value.
Parameters:
prompts
- the prompts value to set
Returns:
the ContextDTO object itself.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for