From 9adf7b6084dadea589358efd4f488d351419d322 Mon Sep 17 00:00:00 2001 From: Kye Date: Mon, 21 Aug 2023 18:19:11 -0400 Subject: [PATCH] swarms Former-commit-id: 84adda80bf0407e59fd17b57e7fd185842dea740 --- swarms/agents/agent.py | 2 +- swarms/agents/models/palm.py | 2 -- swarms/agents/utils/Calback.py | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/swarms/agents/agent.py b/swarms/agents/agent.py index ba0b26fa..ac21b9f1 100644 --- a/swarms/agents/agent.py +++ b/swarms/agents/agent.py @@ -45,7 +45,7 @@ class Agent: self.chat_history_memory = chat_history_memory or ChatMessageHistory() @classmethod - def from_llm_and_tools( + def integrate( cls, ai_name: str, ai_role: str, diff --git a/swarms/agents/models/palm.py b/swarms/agents/models/palm.py index a7ee6be2..3f4856b0 100644 --- a/swarms/agents/models/palm.py +++ b/swarms/agents/models/palm.py @@ -16,8 +16,6 @@ from tenacity import ( import google.generativeai as genai -###############helpers - class GooglePalmError(Exception): """Error raised when there is an issue with the Google PaLM API.""" diff --git a/swarms/agents/utils/Calback.py b/swarms/agents/utils/Calback.py index f840b6be..817cb39d 100644 --- a/swarms/agents/utils/Calback.py +++ b/swarms/agents/utils/Calback.py @@ -5,8 +5,6 @@ from langchain.callbacks.base import BaseCallbackHandler from langchain.schema import AgentAction, AgentFinish, LLMResult from swarms.utils.logger import logger - -# from ansi import ANSI, Color, Style, dim_multiline from swarms.utils.main import ANSI, Color, Style, dim_multiline