You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/example.py

22 lines
491 B

10 months ago
from swarms import Agent, Anthropic
10 months ago
9 months ago
# Initialize the agemt
agent = Agent(
10 months ago
agent_name="Transcript Generator",
agent_description=(
9 months ago
"Generate a transcript for a youtube video on what swarms" " are!"
10 months ago
),
10 months ago
llm=Anthropic(),
10 months ago
max_loops=3,
autosave=True,
11 months ago
dashboard=False,
streaming_on=True,
verbose=True,
stopping_token="<DONE>",
10 months ago
interactive=True,
)
9 months ago
# Run the Agent on a task
agent("Generate a transcript for a youtube video on what swarms are!")