fix user implemented agent types

This commit is contained in:
Ajay Raj 2023-03-02 16:15:22 -08:00
commit 40a94f94be
2 changed files with 8 additions and 6 deletions

View file

@ -1,11 +1,11 @@
from vocode.user_implemented_agent.restful_agent import RESTfulAgent
from vocode.user_implemented_agent.websocket_agent import WebSocketAgent
class EchoAgent(RESTfulAgent):
class EchoAgent(WebSocketAgent):
async def respond(self, input: str) -> str:
return input
if __name__ == "__main__":
agent = EchoAgent()
agent.run()
agent.run()