Open
Description
Describe the bug
generate_answer_node_k_level still injects the variable context into the PromptTemplate, but the template now expects content.
This mismatch surfaces as soon as the node executes inside any graph (e.g. DepthSearchGraph) and triggers the following exception:
KeyError: "Input to PromptTemplate is missing variables {'content'}. Expected: ['content', 'format_instructions'] Received: ['format_instructions']"
To Reproduce
Steps to reproduce the behavior:
- Install latest version of scrapegraphai (1.59.0)
- Use DepthSearchGraph with "depth": 2
Expected behavior
The node should supply content, not context, so that the PromptTemplate receives all required variables and the graph runs without error.