fix: set_node during node execution

This commit is contained in:
Abhishek Kumar 2026-01-22 20:28:13 +05:30
parent badee11eca
commit a4367bd83b
2 changed files with 490 additions and 2 deletions

View file

@ -202,8 +202,8 @@ class PipecatEngine:
f"Function: {name} -> transitioning to node: {transition_to_node}"
)
logger.info(f"Arguments: {function_call_params.arguments}")
await self.set_node(transition_to_node)
try:
async def on_context_updated() -> None:
"""
pipecat framework will run this function after the function call result has been updated in the context.
@ -214,7 +214,6 @@ class PipecatEngine:
await self._perform_variable_extraction_if_needed(
self._current_node
)
await self.set_node(transition_to_node)
result = {"status": "done"}