@@ -38,21 +38,21 @@ def execute(latitude:, longitude:)
3838end
3939
4040# Define LLMs
41- class Agent1 < MARS ::Agent
41+ class Agent1 < MARS ::AgentStep
4242 def system_prompt
4343 "You are a helpful assistant that can answer questions.
4444 When asked about a country, only answer with its name."
4545 end
4646end
4747
48- class Agent2 < MARS ::Agent
48+ class Agent2 < MARS ::AgentStep
4949 def system_prompt
5050 "You are a helpful assistant that can answer questions and help with tasks.
5151 Return information about the typical food of the country."
5252 end
5353end
5454
55- class Agent3 < MARS ::Agent
55+ class Agent3 < MARS ::AgentStep
5656 def system_prompt
5757 "You are a helpful assistant that can answer questions and help with tasks.
5858 Return information about the popular sports of the country."
@@ -63,7 +63,7 @@ def schema
6363 end
6464end
6565
66- class Agent4 < MARS ::Agent
66+ class Agent4 < MARS ::AgentStep
6767 def system_prompt
6868 "You are a helpful assistant that can answer questions and help with tasks.
6969 Return the current weather of the country's capital."
@@ -75,10 +75,10 @@ def tools
7575end
7676
7777# Create the LLMs
78- llm1 = Agent1 . new ( options : { model : "gpt-4o" } )
79- llm2 = Agent2 . new ( options : { model : "gpt-4o" } )
80- llm3 = Agent3 . new ( options : { model : "gpt-4o" } )
81- llm4 = Agent4 . new ( options : { model : "gpt-4o" } )
78+ llm1 = Agent1 . new
79+ llm2 = Agent2 . new
80+ llm3 = Agent3 . new
81+ llm4 = Agent4 . new
8282
8383parallel_workflow = MARS ::Workflows ::Parallel . new (
8484 "Parallel workflow" ,
0 commit comments