The Swarms API provides endpoints to interact with various language models, manage agent configurations, and handle token counting. This documentation covers the available endpoints, input and output models, and detailed examples for each endpoint.
@ -25,7 +25,6 @@ Always prioritize accuracy, depth of analysis, and clarity in your responses. Us
"""
# Initialize the agent
agent=Agent(
agent_name="Geo Expert AI",
@ -57,7 +56,6 @@ agent = Agent(
)
# Initialize the agent
forecaster_agent=Agent(
agent_name="Forecaster Agent",
@ -91,11 +89,13 @@ forecaster_agent = Agent(
# Initialize the swarm
swarm=MixtureOfAgents(
agents=[agent,forecaster_agent],
final_agent=forecaster_agent,
layers=1,
agents=[agent,forecaster_agent],
final_agent=forecaster_agent,
layers=1,
)
# Run the swarm
out=swarm.run("what is the economic impact of China from technology decoupling, and how is that impact measured? What is the forecast or economic, give some numbers")
out=swarm.run(
"what is the economic impact of China from technology decoupling, and how is that impact measured? What is the forecast or economic, give some numbers"