- The `Worker` is an fully feature complete agent with an llm, tools, and a vectorstore for long term memory!
- The `Worker` is an fully feature complete agent with an llm, tools, and a vectorstore for long term memory!
```python
```python
from langchain.models import ChatOpenAI
from swarms import Worker
from swarms import Worker
llm = ChatOpenAI(
model_name='gpt-4',
openai_api_key="api-key",
temperature=0.5
)
node = Worker(
node = Worker(
openai_api_key="",
llm=llm,
ai_name="Optimus Prime",
ai_name="Optimus Prime",
ai_role="Worker in a swarm",
external_tools = None,
human_in_the_loop = False,
temperature = 0.5,
)
)
task = "What were the winning boston marathon times for the past 5 years (ending in 2022)? Generate a table of the year, name, country of origin, and times."
task = "What were the winning boston marathon times for the past 5 years (ending in 2022)? Generate a table of the year, name, country of origin, and times."