mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
feat: mute on function call (#138)
This commit is contained in:
parent
4a8e4fe7a1
commit
91911769b0
2 changed files with 3 additions and 1 deletions
|
|
@ -54,6 +54,7 @@ from pipecat.processors.aggregators.llm_response_universal import (
|
|||
from pipecat.transports.smallwebrtc.connection import SmallWebRTCConnection
|
||||
from pipecat.turns.user_mute import (
|
||||
CallbackUserMuteStrategy,
|
||||
FunctionCallUserMuteStrategy,
|
||||
MuteUntilFirstBotCompleteUserMuteStrategy,
|
||||
)
|
||||
from pipecat.turns.user_start import (
|
||||
|
|
@ -572,6 +573,7 @@ async def _run_pipeline(
|
|||
# - CallbackUserMuteStrategy: mutes based on engine's _mute_pipeline state
|
||||
user_mute_strategies = [
|
||||
MuteUntilFirstBotCompleteUserMuteStrategy(),
|
||||
FunctionCallUserMuteStrategy(),
|
||||
CallbackUserMuteStrategy(should_mute_callback=engine.should_mute_user),
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ class PipecatEngine:
|
|||
self.llm.register_function(
|
||||
name,
|
||||
transition_func,
|
||||
cancel_on_interruption=True,
|
||||
cancel_on_interruption=False,
|
||||
)
|
||||
|
||||
async def _register_builtin_functions(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue