Former-commit-id: 84adda80bf
group-chat
Kye 1 year ago
parent c8899cf7f3
commit 9adf7b6084

@ -45,7 +45,7 @@ class Agent:
self.chat_history_memory = chat_history_memory or ChatMessageHistory() self.chat_history_memory = chat_history_memory or ChatMessageHistory()
@classmethod @classmethod
def from_llm_and_tools( def integrate(
cls, cls,
ai_name: str, ai_name: str,
ai_role: str, ai_role: str,

@ -16,8 +16,6 @@ from tenacity import (
import google.generativeai as genai import google.generativeai as genai
###############helpers
class GooglePalmError(Exception): class GooglePalmError(Exception):
"""Error raised when there is an issue with the Google PaLM API.""" """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 langchain.schema import AgentAction, AgentFinish, LLMResult
from swarms.utils.logger import logger from swarms.utils.logger import logger
# from ansi import ANSI, Color, Style, dim_multiline
from swarms.utils.main import ANSI, Color, Style, dim_multiline from swarms.utils.main import ANSI, Color, Style, dim_multiline

Loading…
Cancel
Save