Former-commit-id: 84adda80bf
84adda80bf
@ -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,
@ -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."""
@ -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