diff --git a/libs/core/langchain_core/prompts/prompt.py b/libs/core/langchain_core/prompts/prompt.py index d8b0ec2a2240c..18b2b04f6c15f 100644 --- a/libs/core/langchain_core/prompts/prompt.py +++ b/libs/core/langchain_core/prompts/prompt.py @@ -189,8 +189,6 @@ def format(self, **kwargs: Any) -> str: return formatted_string - - @classmethod def from_examples( cls, @@ -298,13 +296,6 @@ def from_template( input_variables = get_template_variables(template, template_format) _partial_variables = partial_variables or {} - if _partial_variables: - input_variables = [ - var for var in input_variables if var not in _partial_variables - ] - input_variables = get_template_variables(template, template_format) - _partial_variables = partial_variables or {} - if _partial_variables: input_variables = [ var for var in input_variables if var not in _partial_variables