@@ -144,7 +144,7 @@ from swarms import Agent
144144
145145# Initialize a new agent
146146agent = Agent(
147- model_name = " gpt-4o-mini " , # Specify the LLM
147+ model_name = " gpt-5.4 " , # Specify the LLM
148148 max_loops = " auto" , # Set the number of interactions
149149 interactive = True , # Enable interactive mode for real-time feedback
150150)
@@ -164,14 +164,14 @@ from swarms import Agent, SequentialWorkflow
164164researcher = Agent(
165165 agent_name = " Researcher" ,
166166 system_prompt = " Your job is to research the provided topic and provide a detailed summary." ,
167- model_name = " gpt-4o-mini " ,
167+ model_name = " gpt-5.4 " ,
168168)
169169
170170# Agent 2: The Writer
171171writer = Agent(
172172 agent_name = " Writer" ,
173173 system_prompt = " Your job is to take the research summary and write a beautiful, engaging blog post about it." ,
174- model_name = " gpt-4o-mini " ,
174+ model_name = " gpt-5.4 " ,
175175)
176176
177177# Create a sequential workflow where the researcher's output feeds into the writer's input
@@ -200,7 +200,7 @@ swarm = AutoSwarmBuilder(
200200 verbose = True ,
201201 max_loops = 1 ,
202202 return_agents = True ,
203- model_name = " gpt-4o-mini " ,
203+ model_name = " gpt-5.4 " ,
204204)
205205
206206# Let the builder automatically create agents and workflows
@@ -257,14 +257,14 @@ from swarms import Agent, SequentialWorkflow
257257researcher = Agent(
258258 agent_name = " Researcher" ,
259259 system_prompt = " Your job is to research the provided topic and provide a detailed summary." ,
260- model_name = " gpt-4o-mini " ,
260+ model_name = " gpt-5.4 " ,
261261)
262262
263263# Agent 2: The Writer
264264writer = Agent(
265265 agent_name = " Writer" ,
266266 system_prompt = " Your job is to take the research summary and write a beautiful, engaging blog post about it." ,
267- model_name = " gpt-4o-mini " ,
267+ model_name = " gpt-5.4 " ,
268268)
269269
270270# Create a sequential workflow where the researcher's output feeds into the writer's input
@@ -289,21 +289,21 @@ from swarms import Agent, ConcurrentWorkflow
289289market_analyst = Agent(
290290 agent_name = " Market-Analyst" ,
291291 system_prompt = " Analyze market trends and provide insights on the given topic." ,
292- model_name = " gpt-4o-mini " ,
292+ model_name = " gpt-5.4 " ,
293293 max_loops = 1 ,
294294)
295295
296296financial_analyst = Agent(
297297 agent_name = " Financial-Analyst" ,
298298 system_prompt = " Provide financial analysis and recommendations on the given topic." ,
299- model_name = " gpt-4o-mini " ,
299+ model_name = " gpt-5.4 " ,
300300 max_loops = 1 ,
301301)
302302
303303risk_analyst = Agent(
304304 agent_name = " Risk-Analyst" ,
305305 system_prompt = " Assess risks and provide risk management strategies for the given topic." ,
306- model_name = " gpt-4o-mini " ,
306+ model_name = " gpt-5.4 " ,
307307 max_loops = 1 ,
308308)
309309
@@ -331,9 +331,9 @@ Inspired by `einsum`, `AgentRearrange` lets you define complex, non-linear relat
331331from swarms import Agent, AgentRearrange
332332
333333# Define agents
334- researcher = Agent(agent_name = " researcher" , model_name = " gpt-4o-mini " )
335- writer = Agent(agent_name = " writer" , model_name = " gpt-4o-mini " )
336- editor = Agent(agent_name = " editor" , model_name = " gpt-4o-mini " )
334+ researcher = Agent(agent_name = " researcher" , model_name = " gpt-5.4 " )
335+ writer = Agent(agent_name = " writer" , model_name = " gpt-5.4 " )
336+ editor = Agent(agent_name = " editor" , model_name = " gpt-5.4 " )
337337
338338# Define a flow: researcher sends work to both writer and editor simultaneously
339339# This is a one-to-many relationship
@@ -362,8 +362,8 @@ print(outputs)
362362from swarms import Agent, GraphWorkflow, Node, Edge, NodeType
363363
364364# Define agents and a simple python function as nodes
365- code_generator = Agent(agent_name="CodeGenerator", system_prompt="Write Python code for the given task.", model_name="gpt-4o-mini ")
366- code_tester = Agent(agent_name="CodeTester", system_prompt="Test the given Python code and find bugs.", model_name="gpt-4o-mini ")
365+ code_generator = Agent(agent_name="CodeGenerator", system_prompt="Write Python code for the given task.", model_name="gpt-5.4 ")
366+ code_tester = Agent(agent_name="CodeTester", system_prompt="Test the given Python code and find bugs.", model_name="gpt-5.4 ")
367367
368368# Create nodes for the graph
369369node1 = Node(id="generator", agent=code_generator)
@@ -396,9 +396,9 @@ from swarms import Agent
396396from swarms.structs.swarm_router import SwarmRouter, SwarmType
397397
398398# Define a few generic agents
399- writer = Agent(agent_name = " Writer" , system_prompt = " You are a creative writer." , model_name = " gpt-4o-mini " )
400- editor = Agent(agent_name = " Editor" , system_prompt = " You are an expert editor for stories." , model_name = " gpt-4o-mini " )
401- reviewer = Agent(agent_name = " Reviewer" , system_prompt = " You are a final reviewer who gives a score." , model_name = " gpt-4o-mini " )
399+ writer = Agent(agent_name = " Writer" , system_prompt = " You are a creative writer." , model_name = " gpt-5.4 " )
400+ editor = Agent(agent_name = " Editor" , system_prompt = " You are an expert editor for stories." , model_name = " gpt-5.4 " )
401+ reviewer = Agent(agent_name = " Reviewer" , system_prompt = " You are a final reviewer who gives a score." , model_name = " gpt-5.4 " )
402402
403403# The agents and task will be the same for all examples
404404agents = [writer, editor, reviewer]
@@ -426,7 +426,7 @@ print("Running a Mixture of Agents Workflow...")
426426aggregator = Agent(
427427 agent_name = " Aggregator" ,
428428 system_prompt = " Combine the story, edits, and review into a final document." ,
429- model_name = " gpt-4o-mini "
429+ model_name = " gpt-5.4 "
430430)
431431moa_router = SwarmRouter(
432432 swarm_type = SwarmType.MixtureOfAgents,
@@ -450,15 +450,15 @@ The `MixtureOfAgents` architecture processes tasks by feeding them to multiple "
450450from swarms import Agent, MixtureOfAgents
451451
452452# Define expert agents
453- financial_analyst = Agent(agent_name = " FinancialAnalyst" , system_prompt = " Analyze financial data." , model_name = " gpt-4o-mini " )
454- market_analyst = Agent(agent_name = " MarketAnalyst" , system_prompt = " Analyze market trends." , model_name = " gpt-4o-mini " )
455- risk_analyst = Agent(agent_name = " RiskAnalyst" , system_prompt = " Analyze investment risks." , model_name = " gpt-4o-mini " )
453+ financial_analyst = Agent(agent_name = " FinancialAnalyst" , system_prompt = " Analyze financial data." , model_name = " gpt-5.4 " )
454+ market_analyst = Agent(agent_name = " MarketAnalyst" , system_prompt = " Analyze market trends." , model_name = " gpt-5.4 " )
455+ risk_analyst = Agent(agent_name = " RiskAnalyst" , system_prompt = " Analyze investment risks." , model_name = " gpt-5.4 " )
456456
457457# Define the aggregator agent
458458aggregator = Agent(
459459 agent_name = " InvestmentAdvisor" ,
460460 system_prompt = " Synthesize the financial, market, and risk analyses to provide a final investment recommendation." ,
461- model_name = " gpt-4o-mini "
461+ model_name = " gpt-5.4 "
462462)
463463
464464# Create the MoA swarm
@@ -482,8 +482,8 @@ print(recommendation)
482482from swarms import Agent, GroupChat
483483
484484# Define agents for a debate
485- tech_optimist = Agent(agent_name = " TechOptimist" , system_prompt = " Argue for the benefits of AI in society." , model_name = " gpt-4o-mini " )
486- tech_critic = Agent(agent_name = " TechCritic" , system_prompt = " Argue against the unchecked advancement of AI." , model_name = " gpt-4o-mini " )
485+ tech_optimist = Agent(agent_name = " TechOptimist" , system_prompt = " Argue for the benefits of AI in society." , model_name = " gpt-5.4 " )
486+ tech_critic = Agent(agent_name = " TechCritic" , system_prompt = " Argue against the unchecked advancement of AI." , model_name = " gpt-5.4 " )
487487
488488# Create the group chat
489489chat = GroupChat(
@@ -514,25 +514,25 @@ from swarms import Agent, HierarchicalSwarm
514514content_strategist = Agent(
515515 agent_name = " Content-Strategist" ,
516516 system_prompt = " You are a senior content strategist. Develop comprehensive content strategies, editorial calendars, and content roadmaps." ,
517- model_name = " gpt-4o-mini "
517+ model_name = " gpt-5.4 "
518518)
519519
520520creative_director = Agent(
521521 agent_name = " Creative-Director" ,
522522 system_prompt = " You are a creative director. Develop compelling advertising concepts, visual directions, and campaign creativity." ,
523- model_name = " gpt-4o-mini "
523+ model_name = " gpt-5.4 "
524524)
525525
526526seo_specialist = Agent(
527527 agent_name = " SEO-Specialist" ,
528528 system_prompt = " You are an SEO expert. Conduct keyword research, optimize content, and develop organic growth strategies." ,
529- model_name = " gpt-4o-mini "
529+ model_name = " gpt-5.4 "
530530)
531531
532532brand_strategist = Agent(
533533 agent_name = " Brand-Strategist" ,
534534 system_prompt = " You are a brand strategist. Develop brand positioning, identity systems, and market differentiation strategies." ,
535- model_name = " gpt-4o-mini "
535+ model_name = " gpt-5.4 "
536536)
537537
538538# Create the hierarchical swarm with a director
0 commit comments