agents icon indicating copy to clipboard operation
agents copied to clipboard

Stop LLM execution when inappropriate words are input in VoicePipelineAgent

Open Tanesan opened this issue 4 months ago • 6 comments

In the VoicePipelineAgent, I want to stop the LLM execution when inappropriate words are input.

While the text passed to the LLM can be adjusted using before_llm_cb, I am unable to stop the execution of the LLM entirely. Although passing an empty string to the LLM is possible, I believe the execution should be stopped in such cases, and this method feels nonsensical. Is there any other way to stop the LLM execution?

Tanesan avatar Oct 20 '24 09:10 Tanesan