langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
88.4k stars 13.88k forks source link

Spec out API for all required vs. all possible input variables #22832

Open eyurtsev opened 2 weeks ago

eyurtsev commented 2 weeks ago

Privileged issue

Issue Content

Context:

See: https://github.com/langchain-ai/langchain/pull/21640

Requirements

from langchain import LLMChain
prompt = ChatPromptTemplate.from_messages([MessagesPlaceholder("history", optional=True), ('user', '${input}')])
model = ChatOpenAI()
chain = LLMChain(llm=model, prompt=prompt)
chain({'input': 'what is your name'})
prompt.get_input_schema()
keenborder786 commented 2 weeks ago

@eyurtsev since I was already working on this issue in #21640, I can tackle this issue.