Open gsimon75 opened 1 month ago
The input_types
is an inherited member from class BasePromptTemplate
. This is the reason that its docstring is visible in the documentation. Is there any way we can ignore this for sphinx documentation generation? @eyurtsev
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
metadata
member is a dict, I expect that the validation logic honors that informationstr
s, regardless ofinput_types
At this point
input_types
is not passed on tocheck_valid_template
, so that type information is lost beyond this point, and therefore the validator couldn't consider the type even if it tried to.At this point the validator
validate_input_variables
tries to resolve the template by assigning the string"foo"
to all input variables, and this is where the exception is raised.The documentation of
PromptTemplate.input_types
states thatIf this behaviour (
input_types
is ignored and all variables are always assumed to be strings) is the intended one, then it might be good to reflect this in the documentation too.System Info