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.
|
|
|
from swarms import Agent, Anthropic
|
|
|
|
|
|
|
|
# Initialize the workflow
|
|
|
|
agent = Agent(
|
|
|
|
agent_name="Transcript Generator",
|
|
|
|
agent_description=(
|
|
|
|
"Generate a transcript for a youtube video on what swarms"
|
|
|
|
" are!"
|
|
|
|
),
|
|
|
|
llm=Anthropic(),
|
|
|
|
max_loops=3,
|
|
|
|
autosave=True,
|
|
|
|
dashboard=False,
|
|
|
|
streaming_on=True,
|
|
|
|
verbose=True,
|
|
|
|
stopping_token="<DONE>",
|
|
|
|
interactive=True,
|
|
|
|
)
|
|
|
|
|
|
|
|
# Run the workflow on a task
|
|
|
|
agent("Generate a transcript for a youtube video on what swarms are!")
|