Class LemurTaskParams.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.lemur.requests.LemurTaskParams.Builder
-
- All Implemented Interfaces:
LemurTaskParams._FinalStage,LemurTaskParams.PromptStage
- Enclosing class:
- LemurTaskParams
public static final class LemurTaskParams.Builder extends java.lang.Object implements LemurTaskParams.PromptStage, LemurTaskParams._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LemurTaskParamsbuild()LemurTaskParams._FinalStagecontext(LemurBaseParamsContext context)Context to provide the model.LemurTaskParams._FinalStagecontext(java.util.Optional<LemurBaseParamsContext> context)LemurTaskParams._FinalStagefinalModel(LemurModel finalModel)The model that is used for the final prompt after compression is performed.LemurTaskParams._FinalStagefinalModel(java.util.Optional<LemurModel> finalModel)LemurTaskParams.Builderfrom(LemurTaskParams other)LemurTaskParams._FinalStageinputText(java.lang.String inputText)Custom formatted transcript data.LemurTaskParams._FinalStageinputText(java.util.Optional<java.lang.String> inputText)LemurTaskParams._FinalStagemaxOutputSize(java.lang.Integer maxOutputSize)Max output size in tokens, up to 4000LemurTaskParams._FinalStagemaxOutputSize(java.util.Optional<java.lang.Integer> maxOutputSize)LemurTaskParams._FinalStageprompt(java.lang.String prompt)Your text to prompt the model to produce a desired output, including any context you want to pass into the model.LemurTaskParams._FinalStagetemperature(java.lang.Double temperature)The temperature to use for the model.LemurTaskParams._FinalStagetemperature(java.util.Optional<java.lang.Double> temperature)LemurTaskParams._FinalStagetranscriptIds(java.util.List<java.lang.String> transcriptIds)A list of completed transcripts with text.LemurTaskParams._FinalStagetranscriptIds(java.util.Optional<java.util.List<java.lang.String>> transcriptIds)
-
-
-
Method Detail
-
from
public LemurTaskParams.Builder from(LemurTaskParams other)
- Specified by:
fromin interfaceLemurTaskParams.PromptStage
-
prompt
public LemurTaskParams._FinalStage prompt(java.lang.String prompt)
Your text to prompt the model to produce a desired output, including any context you want to pass into the model.
- Specified by:
promptin interfaceLemurTaskParams.PromptStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
temperature
public LemurTaskParams._FinalStage temperature(java.lang.Double temperature)
The temperature to use for the model. Higher values result in answers that are more creative, lower values are more conservative. Can be any value between 0.0 and 1.0 inclusive.
- Specified by:
temperaturein interfaceLemurTaskParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
temperature
public LemurTaskParams._FinalStage temperature(java.util.Optional<java.lang.Double> temperature)
- Specified by:
temperaturein interfaceLemurTaskParams._FinalStage
-
maxOutputSize
public LemurTaskParams._FinalStage maxOutputSize(java.lang.Integer maxOutputSize)
Max output size in tokens, up to 4000
- Specified by:
maxOutputSizein interfaceLemurTaskParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
maxOutputSize
public LemurTaskParams._FinalStage maxOutputSize(java.util.Optional<java.lang.Integer> maxOutputSize)
- Specified by:
maxOutputSizein interfaceLemurTaskParams._FinalStage
-
finalModel
public LemurTaskParams._FinalStage finalModel(LemurModel finalModel)
The model that is used for the final prompt after compression is performed. Defaults to "default".
- Specified by:
finalModelin interfaceLemurTaskParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
finalModel
public LemurTaskParams._FinalStage finalModel(java.util.Optional<LemurModel> finalModel)
- Specified by:
finalModelin interfaceLemurTaskParams._FinalStage
-
context
public LemurTaskParams._FinalStage context(LemurBaseParamsContext context)
Context to provide the model. This can be a string or a free-form JSON value.
- Specified by:
contextin interfaceLemurTaskParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
context
public LemurTaskParams._FinalStage context(java.util.Optional<LemurBaseParamsContext> context)
- Specified by:
contextin interfaceLemurTaskParams._FinalStage
-
inputText
public LemurTaskParams._FinalStage inputText(java.lang.String inputText)
Custom formatted transcript data. Maximum size is the context limit of the selected model, which defaults to 100000. Use either transcript_ids or input_text as input into LeMUR.
- Specified by:
inputTextin interfaceLemurTaskParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
inputText
public LemurTaskParams._FinalStage inputText(java.util.Optional<java.lang.String> inputText)
- Specified by:
inputTextin interfaceLemurTaskParams._FinalStage
-
transcriptIds
public LemurTaskParams._FinalStage transcriptIds(java.util.List<java.lang.String> transcriptIds)
A list of completed transcripts with text. Up to a maximum of 100 files or 100 hours, whichever is lower. Use either transcript_ids or input_text as input into LeMUR.
- Specified by:
transcriptIdsin interfaceLemurTaskParams._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
transcriptIds
public LemurTaskParams._FinalStage transcriptIds(java.util.Optional<java.util.List<java.lang.String>> transcriptIds)
- Specified by:
transcriptIdsin interfaceLemurTaskParams._FinalStage
-
build
public LemurTaskParams build()
- Specified by:
buildin interfaceLemurTaskParams._FinalStage
-
-