mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
fix: skip updating gathered_context when the extracted variables is not a dict
This commit is contained in:
parent
0f3e45ff03
commit
73ee527017
1 changed files with 7 additions and 0 deletions
|
|
@ -443,6 +443,13 @@ class PipecatEngine:
|
|||
extraction_variables, parent_context, extraction_prompt
|
||||
)
|
||||
)
|
||||
if not isinstance(extracted_data, dict):
|
||||
logger.warning(
|
||||
f"Variable extraction for node {node.name} returned "
|
||||
f"{type(extracted_data).__name__} instead of dict, "
|
||||
f"skipping update. Data: {extracted_data}"
|
||||
)
|
||||
return
|
||||
self._gathered_context.update(extracted_data)
|
||||
extracted_variables = self._gathered_context.setdefault(
|
||||
"extracted_variables", {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue