Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/graphon/nodes/llm/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,14 @@ def _fetch_jinja_inputs(self, node_data: LLMNodeData) -> dict[str, str]:

variables: dict[str, str] = {}
for variable_selector in node_data.prompt_config.jinja2_variables or []:
variable = self._get_required_variable(variable_selector)
variable = self.graph_runtime_state.variable_pool.get(
variable_selector.value_selector,
)
if variable is None:
# Variable not in pool — the Jinja2 template handles this
# gracefully with {% if variable is defined %}, so skip it
# rather than raising VariableNotFoundError.
continue
variables[variable_selector.variable] = self._stringify_jinja_variable(
variable,
)
Expand Down
Loading