From 75eefa0a71a0185f5fca3c2b3acef93a7fe2e380 Mon Sep 17 00:00:00 2001 From: Andrew Huang Date: Tue, 29 Oct 2024 13:29:01 -0700 Subject: [PATCH] update method names --- lumen/ai/agents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lumen/ai/agents.py b/lumen/ai/agents.py index 98b3cee7..2a4c5f65 100644 --- a/lumen/ai/agents.py +++ b/lumen/ai/agents.py @@ -88,7 +88,7 @@ def _exception_handler(exception): ) if "interface" not in params: - params["interface"] = ChatInterface(callback=self._chat_invoke) + params["interface"] = ChatInterface(callback=self._interface_callback) super().__init__(**params) if not self.debug: pn.config.exception_handler = _exception_handler @@ -105,7 +105,7 @@ async def applies(cls) -> bool: """ return True - async def _chat_respond(self, contents: list | str, user: str, instance: ChatInterface): + async def _interface_callback(self, contents: list | str, user: str, instance: ChatInterface): await self.respond(contents) self._retries_left = 1