Class ChatPromptTemplate
java.lang.Object
org.springframework.ai.core.prompt.AbstractPromptTemplate
org.springframework.ai.core.prompt.PromptTemplate
org.springframework.ai.core.prompt.ChatPromptTemplate
- All Implemented Interfaces:
PromptOperations
A PromptTemplate that lets you specify the role as a string should the current
implementations and their roles not suffice for your needs.
-
Field Summary
Fields inherited from class org.springframework.ai.core.prompt.AbstractPromptTemplate
template, templateFormat
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.ai.core.prompt.PromptTemplate
add, getInputVariables, render, render, validate
Methods inherited from class org.springframework.ai.core.prompt.AbstractPromptTemplate
getTemplate, getTemplateFormat
-
Constructor Details
-
ChatPromptTemplate
-
-
Method Details
-
create
- Specified by:
create
in interfacePromptOperations
- Overrides:
create
in classPromptTemplate
-
create
- Specified by:
create
in interfacePromptOperations
- Overrides:
create
in classPromptTemplate
-