Class LemurQuestion.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.lemur.types.LemurQuestion.Builder
-
- All Implemented Interfaces:
LemurQuestion._FinalStage,LemurQuestion.QuestionStage
- Enclosing class:
- LemurQuestion
public static final class LemurQuestion.Builder extends java.lang.Object implements LemurQuestion.QuestionStage, LemurQuestion._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LemurQuestion._FinalStageanswerFormat(java.lang.String answerFormat)How you want the answer to be returned.LemurQuestion._FinalStageanswerFormat(java.util.Optional<java.lang.String> answerFormat)LemurQuestion._FinalStageanswerOptions(java.util.List<java.lang.String> answerOptions)What discrete options to return.LemurQuestion._FinalStageanswerOptions(java.util.Optional<java.util.List<java.lang.String>> answerOptions)LemurQuestionbuild()LemurQuestion._FinalStagecontext(LemurQuestionContext context)Any context about the transcripts you wish to provide.LemurQuestion._FinalStagecontext(java.util.Optional<LemurQuestionContext> context)LemurQuestion.Builderfrom(LemurQuestion other)LemurQuestion._FinalStagequestion(java.lang.String question)The question you wish to ask.
-
-
-
Method Detail
-
from
public LemurQuestion.Builder from(LemurQuestion other)
- Specified by:
fromin interfaceLemurQuestion.QuestionStage
-
question
public LemurQuestion._FinalStage question(java.lang.String question)
The question you wish to ask. For more complex questions use default model.
- Specified by:
questionin interfaceLemurQuestion.QuestionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
answerOptions
public LemurQuestion._FinalStage answerOptions(java.util.List<java.lang.String> answerOptions)
What discrete options to return. Useful for precise responses. Can't be used with answer_format. Example: ["Yes", "No"]
- Specified by:
answerOptionsin interfaceLemurQuestion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
answerOptions
public LemurQuestion._FinalStage answerOptions(java.util.Optional<java.util.List<java.lang.String>> answerOptions)
- Specified by:
answerOptionsin interfaceLemurQuestion._FinalStage
-
answerFormat
public LemurQuestion._FinalStage answerFormat(java.lang.String answerFormat)
How you want the answer to be returned. This can be any text. Can't be used with answer_options. Examples: "short sentence", "bullet points"
- Specified by:
answerFormatin interfaceLemurQuestion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
answerFormat
public LemurQuestion._FinalStage answerFormat(java.util.Optional<java.lang.String> answerFormat)
- Specified by:
answerFormatin interfaceLemurQuestion._FinalStage
-
context
public LemurQuestion._FinalStage context(LemurQuestionContext context)
Any context about the transcripts you wish to provide. This can be a string or any object.
- Specified by:
contextin interfaceLemurQuestion._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
context
public LemurQuestion._FinalStage context(java.util.Optional<LemurQuestionContext> context)
- Specified by:
contextin interfaceLemurQuestion._FinalStage
-
build
public LemurQuestion build()
- Specified by:
buildin interfaceLemurQuestion._FinalStage
-
-