Allow ChatPromptTemplate to accept formatting with AIMessage/UserMessage #26690
syntaxsdev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked
Feature request
When creating a ChatPromptTemplate, the only way you can format it is if you use a tuple
(agent, message)
with the format being in themessage
. As pictured below from langchain doc:But you can create the same with:
but if you try to invoke, format, or use format_prompt on that template object, it doesn't work. It seems like this should be a feature/obvious functionality but was never implemented.
Motivation
Important for standardization, as document does not outline this well.
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions