get_input_schema() should reflect optional and required inputs
Expose another property to either fetch all required or all possible input variables (with explanation about why this is the correct approach) alternatively delegate to get_input_schema(), and make semantics of input_variables clear (e.g., all possible values)
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()
Privileged issue
Issue Content
Context:
See: https://github.com/langchain-ai/langchain/pull/21640
Requirements
get_input_schema()
, and make semantics of input_variables clear (e.g., all possible values)