example cleanup

master
Kye Gomez 2 days ago
parent c7c1ea16f5
commit ab7781b100

@ -1,8 +1,4 @@
from swarms import Agent, SequentialWorkflow from swarms import Agent, SequentialWorkflow
# import litellm
# litellm._turn_on_debug()
# Initialize market research agent # Initialize market research agent
market_researcher = Agent( market_researcher = Agent(
@ -52,17 +48,7 @@ technical_analyst = Agent(
# Create list of agents # Create list of agents
agents = [market_researcher, financial_analyst, technical_analyst] agents = [market_researcher, financial_analyst, technical_analyst]
# # Initialize the concurrent workflow
# workflow = ConcurrentWorkflow(
# name="market-analysis-workflow",
# agents=agents,
# max_loops=1,
# )
# # Run the workflow
# result = workflow.run(
# "Analyze Tesla (TSLA) stock from market, financial, and technical perspectives"
# )
router = SequentialWorkflow( router = SequentialWorkflow(
name="market-analysis-router", name="market-analysis-router",
agents=agents, agents=agents,

@ -2529,8 +2529,8 @@ class Agent:
""" """
# Filter out is_last from kwargs if present # Filter out is_last from kwargs if present
if 'is_last' in kwargs: if "is_last" in kwargs:
del kwargs['is_last'] del kwargs["is_last"]
try: try:
# Set streaming parameter in LLM if streaming is enabled # Set streaming parameter in LLM if streaming is enabled

Loading…
Cancel
Save