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