Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core[minor]: Init ChatPromptTemplate with message-like representations #16851

Closed
wants to merge 1 commit into from

Conversation

baskaryan
Copy link
Collaborator

Slightly breaking since input_variables are inferred.

@baskaryan baskaryan added the for 0.2 features for langchain/langchain-core 0.2 label Jan 31, 2024
Copy link

vercel bot commented Jan 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
langchain ⬜️ Ignored (Inspect) Jan 31, 2024 11:41pm

@@ -593,6 +593,24 @@ class ChatPromptTemplate(BaseChatPromptTemplate):
validate_template: bool = False
"""Whether or not to try validating the template."""

def __init__(
self,
messages: Sequence[MessageLikeRepresentation],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we put a * here so that only messages can be passed by position

@ccurme ccurme added the Ɑ: core Related to langchain-core label Jun 19, 2024
@hwchase17 hwchase17 closed this Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ɑ: core Related to langchain-core for 0.2 features for langchain/langchain-core 0.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants