open source
This commit is contained in:
parent
70b6e17c69
commit
a93bfc1ec9
61 changed files with 4013 additions and 126 deletions
13
vocode/streaming/agent/echo_agent.py
Normal file
13
vocode/streaming/agent/echo_agent.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from typing import Generator
|
||||
from vocode.streaming.agent.base_agent import BaseAgent
|
||||
|
||||
|
||||
class EchoAgent(BaseAgent):
|
||||
def respond(self, human_input, is_interrupt: bool = False) -> tuple[str, bool]:
|
||||
return human_input, False
|
||||
|
||||
def generate_response(self, human_input, is_interrupt: bool = False) -> Generator:
|
||||
yield human_input
|
||||
|
||||
def update_last_bot_message_on_cut_off(self, message: str):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue