Class AssistantPromptTemplate
java.lang.Object
org.springframework.ai.chat.prompt.PromptTemplate
org.springframework.ai.chat.prompt.AssistantPromptTemplate
- All Implemented Interfaces:
PromptTemplateActions
,PromptTemplateMessageActions
,PromptTemplateStringActions
-
Field Summary
Fields inherited from class org.springframework.ai.chat.prompt.PromptTemplate
template, templateFormat
-
Constructor Summary
ConstructorsConstructorDescriptionAssistantPromptTemplate
(String template) AssistantPromptTemplate
(org.springframework.core.io.Resource resource) -
Method Summary
Methods inherited from class org.springframework.ai.chat.prompt.PromptTemplate
add, getInputVariables, getOutputParser, getTemplate, getTemplateFormat, render, render, setOutputParser, validate
-
Constructor Details
-
AssistantPromptTemplate
-
AssistantPromptTemplate
public AssistantPromptTemplate(org.springframework.core.io.Resource resource)
-
-
Method Details
-
create
- Specified by:
create
in interfacePromptTemplateActions
- Overrides:
create
in classPromptTemplate
-
create
- Specified by:
create
in interfacePromptTemplateActions
- Overrides:
create
in classPromptTemplate
-
createMessage
- Specified by:
createMessage
in interfacePromptTemplateMessageActions
- Overrides:
createMessage
in classPromptTemplate
-
createMessage
- Specified by:
createMessage
in interfacePromptTemplateMessageActions
- Overrides:
createMessage
in classPromptTemplate
-