fix variable_pool

This commit is contained in:
jyong
2025-08-13 17:38:14 +08:00
parent 3797416fe0
commit 72ea3b4d01
3 changed files with 21 additions and 36 deletions

View File

@ -67,7 +67,9 @@ class VariablePool(BaseModel):
self.add((CONVERSATION_VARIABLE_NODE_ID, var.name), var)
# Add rag pipeline variables to the variable pool
for var in self.rag_pipeline_variables:
self.add((RAG_PIPELINE_VARIABLE_NODE_ID, var.variable.belong_to_node_id, var.variable.variable), var.value)
# Combine belong_to_node_id and variable into a single variable name
variable_name = f"{var.variable.belong_to_node_id}.{var.variable.variable}"
self.add((RAG_PIPELINE_VARIABLE_NODE_ID, variable_name), var.value)
def add(self, selector: Sequence[str], value: Any, /) -> None:
"""