important-fish-97781
03/27/2025, 10:18 AMtall-airline-16756
03/27/2025, 10:18 AMtall-airline-16756
03/27/2025, 10:18 AMgenerate_reply
method is a feature of the LiveKit API's MultimodalAgent
class that allows you to manually generate speech responses. When using a MultimodalAgent
with a RealtimeModel
, you can call this method to create a new response:
agent.generate_reply(on_duplicate="cancel_existing")
The method includes an on_duplicate
parameter that can be set to "cancel_existing", which cancels any existing response generation before starting a new one.
Sources: Turn detection | LiveKit Docs