Interface PromptTemplate
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePromptTemplate.Builder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static PromptTemplate.Builderbuilder()List<ParameterView>getParameters()Get the list of parameters required by the template, using configuration and template inforeactor.core.publisher.Mono<String>renderAsync(SKContext executionContext)Render the template using the information in the context
-
-
-
Method Detail
-
getParameters
List<ParameterView> getParameters()
Get the list of parameters required by the template, using configuration and template info- Returns:
- List of parameters
-
renderAsync
reactor.core.publisher.Mono<String> renderAsync(SKContext executionContext)
Render the template using the information in the context- Parameters:
executionContext- Kernel execution context helpers- Returns:
- Prompt rendered to string
-
builder
static PromptTemplate.Builder builder()
-
-