Former-commit-id: ad1a64f474a67fd3ff733c803788dfd2ef423166
pull/160/head
Kye 2 years ago
parent 42bdff3289
commit 9b7641d9db

@ -1,4 +1,7 @@
OPENAI_API_KEY="your_openai_api_key_here" OPENAI_API_KEY="your_openai_api_key_here"
GOOGLE_API_KEY=""
ANTHROPIC_API_KEY=""
WOLFRAM_ALPHA_APPID="your_wolfram_alpha_appid_here" WOLFRAM_ALPHA_APPID="your_wolfram_alpha_appid_here"
ZAPIER_NLA_API_KEY="your_zapier_nla_api_key_here" ZAPIER_NLA_API_KEY="your_zapier_nla_api_key_here"

@ -1,8 +1,10 @@
from dataclasses import dataclass
import sys import sys
from dataclasses import dataclass
from typing import Dict, List, Optional, Union from typing import Dict, List, Optional, Union
from swarms.workers.worker import Worker from swarms.workers.worker import Worker
@dataclass @dataclass
class GroupChat: class GroupChat:
"""A group chat with multiple participants with a list of agents and a max number of rounds""" """A group chat with multiple participants with a list of agents and a max number of rounds"""

@ -104,6 +104,11 @@ class Worker:
""" """
self.message_history = ["Here is the conversation so far"] self.message_history = ["Here is the conversation so far"]
@property
def name(self):
return self.ai_name
def receieve(self, name: str, message: str) -> None: def receieve(self, name: str, message: str) -> None:
""" """
Receive a message and update the message history. Receive a message and update the message history.

Loading…
Cancel
Save