fix user implemented agent types
This commit is contained in:
parent
37b5ffd674
commit
40a94f94be
2 changed files with 8 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue