pull/55/head
Kye 1 year ago
parent 42c0e8b1d4
commit 4d97824b67

@ -25,14 +25,16 @@ class Worker:
@log_decorator @log_decorator
@error_decorator @error_decorator
@timing_decorator @timing_decorator
def __init__(self, def __init__(
self,
model_name="gpt-4", model_name="gpt-4",
openai_api_key=None, openai_api_key=None,
ai_name="Autobot Swarm Worker", ai_name="Autobot Swarm Worker",
ai_role="Worker in a swarm", ai_role="Worker in a swarm",
external_tools = None, external_tools = None,
human_in_the_loop=False, human_in_the_loop=False,
temperature=0.5): temperature=0.5
):
self.openai_api_key = openai_api_key self.openai_api_key = openai_api_key
self.temperature = temperature self.temperature = temperature
self.human_in_the_loop = human_in_the_loop self.human_in_the_loop = human_in_the_loop

Loading…
Cancel
Save