Class ChatPromptTemplate
java.lang.Object
org.springframework.ai.chat.prompt.ChatPromptTemplate
- All Implemented Interfaces:
PromptTemplateActions
,PromptTemplateChatActions
,PromptTemplateStringActions
public class ChatPromptTemplate
extends Object
implements PromptTemplateActions, PromptTemplateChatActions
A PromptTemplate that lets you specify the role as a string should the current
implementations and their roles not suffice for your needs.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
create
(Map<String, Object> model, ChatOptions modelOptions) create
(ChatOptions modelOptions) createMessages
(Map<String, Object> model) render()
-
Constructor Details
-
ChatPromptTemplate
-
-
Method Details
-
render
- Specified by:
render
in interfacePromptTemplateStringActions
-
render
- Specified by:
render
in interfacePromptTemplateStringActions
-
createMessages
- Specified by:
createMessages
in interfacePromptTemplateChatActions
-
createMessages
- Specified by:
createMessages
in interfacePromptTemplateChatActions
-
create
- Specified by:
create
in interfacePromptTemplateActions
-
create
- Specified by:
create
in interfacePromptTemplateActions
-
create
- Specified by:
create
in interfacePromptTemplateActions
-
create
- Specified by:
create
in interfacePromptTemplateActions
-