mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
fix: set_node during node execution
This commit is contained in:
parent
badee11eca
commit
a4367bd83b
2 changed files with 490 additions and 2 deletions
|
|
@ -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"}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue