#202 by GitHub stars

kyegomez/swarms

The Enterprise-Grade Multi-Agent Orchestration Framework. Website: https://swarms.ai

History

Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.

View weekly changes

SKILL.md

Week of Nov 2, 2026 · +0 / −0 lines

Before Network or broad shell → After Network or broad shell

d715975065b5 → 0023748f866e

Compare on GitHub

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Network or broad shell

First observation → d715975065b5

No earlier version was observed for comparison.

Compare on GitHub

examples/single_agent/capabilities/skills/code-review/SKILL.md

Week of Nov 2, 2026 · +0 / −0 lines

Before Instructions only → After Instructions only

d715975065b5 → 0023748f866e

Compare on GitHub

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Instructions only

First observation → d715975065b5

No earlier version was observed for comparison.

Compare on GitHub

examples/single_agent/capabilities/skills/data-visualization/SKILL.md

Week of Nov 2, 2026 · +0 / −0 lines

Before Instructions only → After Instructions only

d715975065b5 → 0023748f866e

Compare on GitHub

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Instructions only

First observation → d715975065b5

No earlier version was observed for comparison.

Compare on GitHub

examples/single_agent/capabilities/skills/financial-analysis/SKILL.md

Week of Nov 2, 2026 · +0 / −0 lines

Before Instructions only → After Instructions only

d715975065b5 → 0023748f866e

Compare on GitHub

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Instructions only

First observation → d715975065b5

No earlier version was observed for comparison.

Compare on GitHub

examples/single_agent/capabilities/skills/multiple_skill_dirs/my_skills/commit-messages/SKILL.md

Week of Nov 2, 2026 · +0 / −0 lines

Before Instructions only → After Instructions only

d715975065b5 → 0023748f866e

Compare on GitHub

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Instructions only

First observation → d715975065b5

No earlier version was observed for comparison.

Compare on GitHub

examples/single_agent/capabilities/skills/multiple_skill_dirs/team_skills/code-review/SKILL.md

Week of Nov 2, 2026 · +0 / −0 lines

Before Instructions only → After Instructions only

d715975065b5 → 0023748f866e

Compare on GitHub

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Instructions only

First observation → d715975065b5

No earlier version was observed for comparison.

Compare on GitHub

View on GitHubAdd to my skills

Verified commit 0023748f866e99bb048100c629a89c8953088ed8

git clone --filter=blob:none --no-checkout https://github.com/kyegomez/swarms.git .hotskills/kyegomez-swarms && git -C .hotskills/kyegomez-swarms checkout --detach 0023748f866e99bb048100c629a89c8953088ed8 # Copy each selected skill directory from .hotskills/kyegomez-swarms into .claude/skills/<skill-name>/
git clone --filter=blob:none --no-checkout https://github.com/kyegomez/swarms.git .hotskills/kyegomez-swarms && git -C .hotskills/kyegomez-swarms checkout --detach 0023748f866e99bb048100c629a89c8953088ed8 # Copy each selected skill directory from .hotskills/kyegomez-swarms into .agents/skills/<skill-name>/
git clone --filter=blob:none --no-checkout https://github.com/kyegomez/swarms.git .hotskills/kyegomez-swarms && git -C .hotskills/kyegomez-swarms checkout --detach 0023748f866e99bb048100c629a89c8953088ed8 # Copy each selected skill directory from .hotskills/kyegomez-swarms into .github/skills/<skill-name>/
7.4kGitHub stars
19stars in 7 days
6skills in this repository
253commits in 30 days

Heat

5.8
  • Star growth, last 7 daysAhead of 61% of tracked repositories
  • Star growth, last 24 hoursAhead of 70% of tracked repositories
  • Rank movement, last 7 daysAhead of 55% of tracked repositories
  • Commits, last 30 daysAhead of 97% of tracked repositories
  • Accounts asking about it through MCP, last 7 daysNot available
  • Hot votes this weekAhead of 0% of tracked repositories

Heat never changes the order by stars, and sponsorship never touches it. How heat works

Stars over time

Aug 2, 2026Nov 7, 20267,356

Individual skills in this repository

  • swarms /
  • code-review examples/single_agent/capabilities/skills/code-review
  • data-visualization examples/single_agent/capabilities/skills/data-visualization
  • financial-analysis examples/single_agent/capabilities/skills/financial-analysis
  • commit-messages examples/single_agent/capabilities/skills/multiple_skill_dirs/my_skills/commit-messages
  • code-review examples/single_agent/capabilities/skills/multiple_skill_dirs/team_skills/code-review

How it works

swarms

When your agent uses it

Build agents and multi-agent systems with the Swarms framework — the Agent class, tools, autonomous loops, memory, and the 15+ multi-agent architectures (SequentialWorkflow, ConcurrentWorkflow, GraphWorkflow, HierarchicalSwarm, SwarmRouter, and more). Use whenever writing, reviewing, or debugging code that imports `swarms`.

What it loads into context

Frontmatter

76 tokens

Always available to the agent

SKILL.md

5,966 tokens

When the skill is activated

Reference documents

162,152 tokens

Loaded on request

Token counts are estimates. Scripts run separately; they are not counted as reference context.

The playbook

  1. Live documentation
  2. Golden rules
  3. Setup
  4. Choosing one
  5. SequentialWorkflow
  6. ConcurrentWorkflow
  7. AgentRearrange — flow DSL
  8. GraphWorkflow — DAG
  9. SwarmRouter — one entry point
  10. MixtureOfAgents
  11. HierarchicalSwarm
  12. GroupChat
  13. MajorityVoting
  14. CouncilAsAJudge
  15. DebateWithJudge
  16. HeavySwarm
  17. PlannerWorkerSwarm
  18. Others
  19. Scheduling
  20. Loading agents from files
  21. Production configuration
  22. Debugging
  23. Reference

Scripts executed separately

  • Dockerfile
  • example.py
  • examples/changelogs/880_update_changelog_examples/01_marketplace_prompt_fetching.py
  • examples/changelogs/880_update_changelog_examples/02_round_robin_swarm_routing.py
  • examples/changelogs/880_update_changelog_examples/03_graph_workflow_rustworkx.py
  • examples/changelogs/880_update_changelog_examples/04_agent_rearrange.py
  • examples/changelogs/880_update_changelog_examples/05_nested_swarms.py
  • examples/changelogs/880_update_changelog_examples/06_spreadsheet_swarm.py
  • examples/changelogs/880_update_changelog_examples/07_model_router.py
  • examples/changelogs/880_update_changelog_examples/08_self_moa_seq.py
  • examples/changelogs/880_update_changelog_examples/09_single_voice_agent.py
  • examples/changelogs/880_update_changelog_examples/10_multi_agent_voice_debate.py
  • examples/changelogs/880_update_changelog_examples/11_hierarchical_voice_swarm.py
  • examples/changelogs/880_update_changelog_examples/12_debate_with_judge.py
  • examples/changelogs/880_update_changelog_examples/13_council_as_judge.py
  • examples/changelogs/880_update_changelog_examples/14_swarm_router_round_robin.py
  • examples/changelogs/880_update_changelog_examples/15_graph_workflow_batch_agents.py
  • examples/changelogs/880_update_changelog_examples/autosaving_example.py
  • examples/changelogs/v11_update/advisor_swarm_basic.py
  • examples/changelogs/v11_update/advisor_swarm_custom_agents.py
  • examples/changelogs/v11_update/agent_rearrange_batch_run.py
  • examples/changelogs/v11_update/agent_rearrange_repeated_flow.py
  • examples/changelogs/v11_update/conversation_cache_example.py
  • examples/changelogs/v11_update/env_loading_example.py
  • examples/changelogs/v11_update/graph_workflow_checkpoint.py
  • examples/changelogs/v11_update/graph_workflow_serialization.py
  • examples/changelogs/v11_update/heavy_swarm_16_agents.py
  • examples/changelogs/v11_update/heavy_swarm_grok_basic.py
  • examples/changelogs/v11_update/heavy_swarm_grok_router.py
  • examples/changelogs/v11_update/hierarchical_swarm_example.py
  • examples/changelogs/v11_update/planner_generator_evaluator_basic.py
  • examples/changelogs/v11_update/planner_generator_evaluator_with_tools.py
  • examples/changelogs/v11_update/planner_worker_swarm_basic.py
  • examples/changelogs/v11_update/planner_worker_task_schema.py
  • examples/changelogs/v11_update/sequential_workflow_drift_detection.py
  • examples/changelogs/v12_update/01_persistent_memory.py
  • examples/changelogs/v12_update/02_context_compression.py
  • examples/changelogs/v12_update/03_grep_tool_autonomous_loop.py
  • examples/changelogs/v12_update/04_conversation_memory_compact.py
  • examples/changelogs/v12_update/05_graph_workflow_callbacks.py
  • examples/changelogs/v12_update/06_arun_stream.py
  • examples/changelogs/v12_update/07_interactive_mode.py
  • examples/changelogs/v12_update/byzantine_consensus.py
  • examples/changelogs/v13/agent_lookup_helpers_example.py
  • examples/changelogs/v13/agent_rearrange_flow_example.py
  • examples/changelogs/v13/agent_tools_default_example.py
  • examples/changelogs/v13/cli_examples.sh
  • examples/changelogs/v13/graph_workflow_composition_example.py
  • examples/changelogs/v13/groupchat_self_selecting_example.py
  • examples/changelogs/v13/heavy_swarm_variant_example.py
  • examples/changelogs/v13/round_robin_rotation_example.py
  • examples/changelogs/v13/sequential_workflow_streaming_example.py
  • examples/changelogs/v13/swarm_router_groupchat_example.py
  • examples/changelogs/v14-zena/01_opentelemetry_tracing.py
  • examples/changelogs/v14-zena/02_instrument_custom_harness.py
  • examples/changelogs/v14-zena/03_mcp_manager.py
  • examples/changelogs/v14-zena/04_auto_agent_builder.py
  • examples/changelogs/v14-zena/05_auction_swarm.py
  • examples/changelogs/v14-zena/06_groupchat_turn_based.py
  • examples/changelogs/v14-zena/07_hierarchical_swarm_recovery.py
  • examples/changelogs/v14-zena/09_class_to_pydantic.py
  • examples/changelogs/v14-zena/10_concurrent_workflow_on_error.py
  • examples/changelogs/v14-zena/11_graph_workflow.py
  • examples/changelogs/v14-zena/12_thread_pool_sizing.py
  • examples/changelogs/v14-zena/13_agent_loader_csv.py
  • examples/changelogs/v9_examples/autonomous_looper.py
  • examples/changelogs/v9_examples/example_autonomous_looper_tools.py
  • examples/changelogs/v9_examples/example_sub_agents.py
  • examples/channel_examples/agent_channel.py
  • examples/channel_examples/agent_rearrange_channel.py
  • examples/channel_examples/agentmail_channel_example.py
  • examples/channel_examples/concurrent_workflow_channel.py
  • examples/channel_examples/graph_workflow_channel.py
  • examples/channel_examples/groupchat_channel.py
  • examples/channel_examples/hierarchical_swarm_channel.py
  • examples/channel_examples/http_channel_example.py
  • examples/channel_examples/http_channel_server.py
  • examples/channel_examples/majority_voting_channel.py
  • examples/channel_examples/mixture_of_agents_channel.py
  • examples/channel_examples/planner_worker_swarm_channel.py
  • examples/channel_examples/queue_channel_example.py
  • examples/channel_examples/resume_channel.py
  • examples/channel_examples/sequential_workflow_channel.py
  • examples/channel_examples/smtp_channel_example.py
  • examples/channel_examples/sqlite_channel.py
  • examples/channel_examples/sqlite_channel_example.py
  • examples/channel_examples/swarm_router_channel.py
  • examples/cli/01_setup_check.sh
  • examples/cli/02_onboarding.sh
  • examples/cli/03_get_api_key.sh
  • examples/cli/04_check_login.sh
  • examples/cli/05_create_agent.sh
  • examples/cli/06_run_agents_yaml.sh
  • examples/cli/07_load_markdown.sh
  • examples/cli/08_llm_council.sh
  • examples/cli/09_heavy_swarm.sh
  • examples/cli/10_autoswarm.sh
  • examples/cli/11_features.sh
  • examples/cli/12_help.sh
  • examples/cli/13_auto_upgrade.sh
  • examples/cli/14_book_call.sh
  • examples/cli/research_agent_example.sh
  • examples/cli/run_all_examples.sh
  • examples/decision_models/calibrated_ensemble_judge.py
  • examples/decision_models/debate_referee_early_stop.py
  • examples/decision_models/decision_model_agent_router.py
  • examples/decision_models/decision_screening_funnel.py
  • examples/decision_models/get_decision_models_example.py
  • examples/decision_models/guarded_group_chat.py
  • examples/decision_models/openai_decisions.py
  • examples/decision_models/simple_openai.py
  • examples/decision_models/system_one_director_swarm.py
  • examples/decision_models/typesafe_ticket_triage.py
  • examples/guides/840_update/agent_rearrange_concurrent_example.py
  • examples/guides/840_update/auto_swarm_builder_example.py
  • examples/guides/840_update/fallback_example.py
  • examples/guides/850_workshop/moa_seq_example.py
  • examples/guides/850_workshop/peer_review_example.py
  • examples/guides/850_workshop/test_agent_concurrent.py
  • examples/guides/agentsh_implementation/agentsh.py
  • examples/guides/changelog_890/01_dynamic_skills_loader.py
  • examples/guides/changelog_890/02_autonomous_agent_loop.py
  • examples/guides/changelog_890/03_agent_handoffs.py
  • examples/guides/changelog_890/04_api_key_validation.py
  • examples/guides/changelog_890/05_max_loops_parameter.py
  • examples/guides/changelog_890/06_multi_tool_agent_tutorial.py
  • examples/guides/changelog_890/07_hierarchical_voice_agent.py
  • examples/guides/changelog_890/08_agent_rearrange_patterns.py
  • examples/guides/demos/agent_with_fluidapi.py
  • examples/guides/demos/apps/hiring_swarm.py
  • examples/guides/demos/apps/smart_database_swarm.py
  • examples/guides/demos/chart_swarm.py
  • examples/guides/demos/crypto/dao_swarm.py
  • examples/guides/demos/crypto/ethchain_agent.py
  • examples/guides/demos/crypto/htx_swarm.py
  • examples/guides/demos/crypto/swarms_coin_agent.py
  • examples/guides/demos/crypto/swarms_coin_multimarket.py
  • examples/guides/demos/cuda_swarm.py
  • examples/guides/demos/finance/sentiment_news_analysis.py
  • examples/guides/demos/hackathon_feb16/fraud.py
  • examples/guides/demos/hackathon_feb16/sarasowti.py
  • examples/guides/demos/insurance/insurance_swarm.py
  • examples/guides/demos/legal/legal_swarm.py
  • examples/guides/demos/medical/health_privacy_swarm.py
  • examples/guides/demos/medical/health_privacy_swarm_two.py
  • examples/guides/demos/medical/medical_coder_agent.py
  • examples/guides/demos/medical/new_medical_rearrange.py
  • examples/guides/demos/medical/ollama_demo.py
  • examples/guides/demos/medical/rearrange_video_examples/term_sheet_swarm.py
  • examples/guides/demos/news_aggregator_summarizer.py
  • examples/guides/demos/privacy_building.py
  • examples/guides/demos/real_estate/morgtate_swarm.py
  • examples/guides/demos/real_estate/real_estate_agent.py
  • examples/guides/demos/real_estate/realtor_agent.py
  • examples/guides/demos/science/materials_science_agents.py
  • examples/guides/demos/science/open_scientist.py
  • examples/guides/demos/science/paper_idea_agent.py
  • examples/guides/demos/science/paper_idea_profile.py
  • examples/guides/demos/spike/agent_rearrange_test.py
  • examples/guides/demos/spike/function_caller_example.py
  • examples/guides/demos/spike/memory.py
  • examples/guides/demos/spike/test.py
  • examples/guides/demos/synthetic_data/profession_sim/convert_json_to_csv.py
  • examples/guides/demos/synthetic_data/profession_sim/format_prompt.py
  • examples/guides/demos/synthetic_data/profession_sim/profession_persona_generator.py
  • examples/guides/deployment/cron_job_examples/callback_cron_example.py
  • examples/guides/deployment/cron_job_examples/cron_job_example.py
  • examples/guides/deployment/cron_job_examples/cron_job_figma_stock_swarms_tools_example.py
  • examples/guides/deployment/cron_job_examples/crypto_concurrent_cron_example.py
  • examples/guides/deployment/cron_job_examples/figma_stock_example.py
  • examples/guides/deployment/cron_job_examples/multi_agent_schedules_cron.py
  • examples/guides/deployment/cron_job_examples/non_blocking_cron.py
  • examples/guides/deployment/cron_job_examples/one_agent_many_tasks_cron.py
  • examples/guides/deployment/cron_job_examples/resilient_cron.py
  • examples/guides/deployment/cron_job_examples/simple_callback_example.py
  • examples/guides/deployment/cron_job_examples/simple_concurrent_crypto_cron.py
  • examples/guides/deployment/cron_job_examples/single_agent_cron.py
  • examples/guides/deployment/cron_job_examples/solana_price_tracker.py
  • examples/guides/deployment/fastapi/fastapi_agent_api_example.py
  • examples/guides/fairy_swarm/fairy_swarm.py
  • examples/guides/fairy_swarm/fairy_swarm_examples/analytical_research.py
  • examples/guides/fairy_swarm/fairy_swarm_examples/basic_fairy_swarm.py
  • examples/guides/fairy_swarm/fairy_swarm_examples/custom_fairy.py
  • examples/guides/fairy_swarm/fairy_swarm_examples/custom_tools.py
  • examples/guides/fairy_swarm/fairy_swarm_examples/multi_page_wireframe.py
  • examples/guides/fairy_swarm/fairy_swarm_examples/selected_fairies.py
  • examples/guides/fairy_swarm/fairy_swarm_examples/standalone_tools.py
  • examples/guides/generation_length_blog/longform_generator.py
  • examples/guides/generation_length_blog/universal_api.py
  • examples/guides/geo_guesser_agent/geo_guesser_agent.py
  • examples/guides/graphworkflow_guide/comprehensive_demo.py
  • examples/guides/graphworkflow_guide/quick_start_guide.py
  • examples/guides/hackathon_judge_agent/hackathon_judger_agent.py
  • examples/guides/hackathons/hackathon_sep_27/api_client.py
  • examples/guides/hackathons/hackathon_sep_27/diet_coach_agent.py
  • examples/guides/hackathons/hackathon_sep_27/nutritional_content_analysis_swarm.py
  • examples/guides/hackathons/hackathon_sep_27/nutritonal_content_analysis_swarm.sh
  • examples/guides/hiearchical_marketing_team.py
  • examples/guides/mem0/mem0_and_swarms.py
  • examples/guides/nano_banana_jarvis_agent/img_gen_nano_banana.py
  • examples/guides/nano_banana_jarvis_agent/jarvis_agent.py
  • examples/guides/voice_agents/voice_agents_examples/agent_speech.py
  • examples/guides/voice_agents/voice_agents_examples/agent_with_speech.py
  • examples/guides/voice_agents/voice_agents_examples/debate_with_speech.py
  • examples/guides/voice_agents/voice_agents_examples/google_calendar_agent.py
  • examples/guides/voice_agents/voice_agents_examples/hiearchical_speech_swarm.py
  • examples/guides/voice_agents/voice_agents_examples/run_auto_agent_with_speech.py
  • examples/guides/web_scraper_agents/batched_scraper_agent.py
  • examples/guides/web_scraper_agents/web_scraper_agent.py
  • examples/guides/workshops/workshop_sep_20/agent_tools_dict_example.py
  • examples/guides/workshops/workshop_sep_20/batched_grid_simple_example.py
  • examples/guides/workshops/workshop_sep_20/geo_guesser_agent.py
  • examples/guides/workshops/workshop_sep_20/jarvis_agent.py
  • examples/guides/x402_examples/agent_integration/x402_agent_buying.py
  • examples/guides/x402_examples/agent_integration/x402_discovery_query.py
  • examples/guides/x402_examples/memecoin_agent_x402.py
  • examples/guides/x402_examples/research_agent_x402_example.py
  • examples/mcp/agents/01_deepwiki_repo_qa.py
  • examples/mcp/agents/02_gitmcp_repo_docs.py
  • examples/mcp/agents/03_microsoft_learn_docs.py
  • examples/mcp/agents/04_multi_server_agent.py
  • examples/mcp/agents/05_exa_web_search.py
  • examples/mcp/agents/07_huggingface_model_search.py
  • examples/mcp/agents/10_firecrawl_web_scraping.py
  • examples/mcp/agents/12_semgrep_security_scan.py
  • examples/mcp/agents/13_mcp_sequential_workflow.py
  • examples/mcp/agents/autonomous_agent_dynamic_tools.py
  • examples/mcp/agents/deepwiki_minimal.py
  • examples/mcp/agents/finance_agent_mcp.py
  • examples/mcp/agents/mcp_connection_object.py
  • examples/mcp/agents/mcp_with_local_tools.py
  • examples/mcp/agents/multi_mcp_urls.py
  • examples/mcp/agents/multi_mcp_walkthrough.py
  • examples/mcp/agents/tools_list_dictionary.py
  • examples/mcp/client/01_list_tools.py
  • examples/mcp/client/02_call_tool.py
  • examples/mcp/client/03_execute_llm_tool_calls.py
  • examples/mcp/client/04_multi_server.py
  • examples/mcp/client/05_auth_and_config.py
  • examples/mcp/client/06_remote_agents.py
  • examples/mcp/mcp_deployer/background_server_and_client_agent.py
  • examples/mcp/mcp_deployer/custom_auth_per_tenant.py
  • examples/mcp/mcp_deployer/env_keys_and_extra_tools.py
  • examples/mcp/mcp_deployer/multiple_agents_one_server.py
  • examples/mcp/mcp_deployer/owner_key_or_tenant_auth.py
  • examples/mcp/mcp_deployer/plain_function_json_response.py
  • examples/mcp/mcp_deployer/sequential_workflow_as_tool.py
  • examples/mcp/mcp_deployer/single_agent_api_key.py
  • examples/mcp/mcp_deployer/sse_transport.py
  • examples/mcp/mcp_deployer/stdio_transport.py
  • examples/mcp/mcp_deployer/token_verifier_with_scopes.py
  • examples/mcp/servers/agent_as_tool_server.py
  • examples/mcp/servers/crypto_price_server.py
  • examples/mcp/servers/okx_crypto_server.py
  • examples/mcp/servers/streamable_http_server.py
  • examples/models/anthropic/claude_4.py
  • examples/models/anthropic/claude_4_example.py
  • examples/models/anthropic/fable_agent.py
  • examples/models/anthropic/fable_example.py
  • examples/models/anthropic/swarms_claude_example.py
  • examples/models/azure/azure_agent.py
  • examples/models/azure/azure_agent_api_verison.py
  • examples/models/azure/azure_model_support.py
  • examples/models/cerebras/cerebras_example.py
  • examples/models/custom_llm/base_llm.py
  • examples/models/deepseek/deepseek_r1.py
  • examples/models/deepseek/fast_r1_groq.py
  • examples/models/deepseek/groq_deepseek_agent.py
  • examples/models/gpt_astra/gpt_astra.py
  • examples/models/gpt_astra/gpt_astra_usage.py
  • examples/models/gpt_astra/swarms_api_mixture_of_agents.py
  • examples/models/gpt_astra/swarms_api_single_agent.py
  • examples/models/gpt_oss/gpt_os_agent.py
  • examples/models/gpt_oss/groq_gpt_oss_models.py
  • examples/models/gpt_oss/multi_agent_gpt_oss_example.py
  • examples/models/llama4/litellm_example.py
  • examples/models/llama4/llama_4.py
  • examples/models/llama4/simple_agent.py
  • examples/models/lumo/lumo_example.py
  • examples/models/mistral/mistral_example.py
  • examples/models/moonshot/kimi_k3_local.py
  • examples/models/moonshot/kimi_k3_or.py
  • examples/models/ollama/kimi_k3_local_agent.py
  • examples/models/ollama/simple_example_ollama.py
  • examples/models/openai/4o_mini_demo.py
  • examples/models/openai/5.4_openai.py
  • examples/models/openai/concurrent_gpt5.py
  • examples/models/openai/example_o3.py
  • examples/models/openai/gpt_5.6_sol.py
  • examples/models/openai/gpt_5_example.py
  • examples/models/openai/o3_agent.py
  • examples/models/openai/reasoning_duo_batched.py
  • examples/models/openai/test_async_litellm.py
  • examples/models/openrouter/glm_or.py
  • examples/models/openrouter/groupchat_or.py
  • examples/models/openrouter/hy3_or.py
  • examples/models/openrouter/k3_kimi.py
  • examples/models/openrouter/k3_kimi_example.py
  • examples/models/openrouter/kimi_k3_single_agent.py
  • examples/models/openrouter/minimax.py
  • examples/models/qwen/qwen_3_base.py
  • examples/models/vllm/vllm_example.py
  • examples/models/vllm/vllm_wrapper.py
  • examples/multi_agent/advisor_swarm_examples/advisor_swarm_example.py
  • examples/multi_agent/agent_grpo_examples/agent_grpo_math_example.py
  • examples/multi_agent/agent_grpo_examples/agent_grpo_physics_example.py
  • examples/multi_agent/agent_rearrange_examples/01_fan_out.py
  • examples/multi_agent/agent_rearrange_examples/02_fan_in.py
  • examples/multi_agent/agent_rearrange_examples/03_multi_stage.py
  • examples/multi_agent/agent_rearrange_examples/04_multi_provider_ensemble.py
  • examples/multi_agent/agent_rearrange_examples/05_new_features_showcase.py
  • examples/multi_agent/agent_rearrange_examples/batch_run_concurrent_example.py
  • examples/multi_agent/agent_rearrange_examples/diamond_flow_real_agents.py
  • examples/multi_agent/agent_rearrange_examples/nested_swarms_demo.py
  • examples/multi_agent/agent_rearrange_examples/rearrange_test.py
  • examples/multi_agent/agent_rearrange_examples/refactor_smoke_example.py
  • examples/multi_agent/agent_router_examples/agent_router_example.py
  • examples/multi_agent/agent_router_examples/refactor_smoke_example.py
  • examples/multi_agent/aggregate_examples/aggregate_typed_turns_example.py
  • examples/multi_agent/alternate_debates/brainstorming_session.py
  • examples/multi_agent/alternate_debates/council_meeting.py
  • examples/multi_agent/alternate_debates/interview_series.py
  • examples/multi_agent/alternate_debates/mediation_session.py
  • examples/multi_agent/alternate_debates/mentorship_session.py
  • examples/multi_agent/alternate_debates/negotiation_session.py
  • examples/multi_agent/alternate_debates/peer_review_process.py
  • examples/multi_agent/alternate_debates/trial_simulation.py
  • examples/multi_agent/asb/asb_research.py
  • examples/multi_agent/asb/auto_agent.py
  • examples/multi_agent/asb/auto_swarm_builder_example.py
  • examples/multi_agent/asb/auto_swarm_builder_spec_only_example.py
  • examples/multi_agent/asb/auto_swarm_builder_test.py
  • examples/multi_agent/asb/auto_swarm_router.py
  • examples/multi_agent/asb/content_creation_asb.py
  • examples/multi_agent/auction_swarm_examples/basic_auction.py
  • examples/multi_agent/auction_swarm_examples/batch_auction.py
  • examples/multi_agent/auction_swarm_examples/custom_scoring_auction.py
  • examples/multi_agent/auto_agent_builder_examples/auto_agent_builder_example.py
  • examples/multi_agent/auto_agent_builder_examples/auto_agent_builder_simple.py
  • examples/multi_agent/auto_agent_builder_examples/concurrent_workflow.py
  • examples/multi_agent/auto_agent_builder_examples/exact_agent_count.py
  • examples/multi_agent/auto_agent_builder_examples/save_and_reuse_roster.py
  • examples/multi_agent/auto_agent_builder_examples/swarm_router_handoff.py
  • examples/multi_agent/batched_grid_workflow/batched_grid_advanced_example.py
  • examples/multi_agent/batched_grid_workflow/batched_grid_simple_example.py
  • examples/multi_agent/batched_grid_workflow/batched_grid_swarm_router.py
  • examples/multi_agent/batched_grid_workflow/batched_grid_workflow_example.py
  • examples/multi_agent/broadcast_examples/broadcast_class_example.py
  • examples/multi_agent/broadcast_examples/broadcast_function_example.py
  • examples/multi_agent/caching_examples/example_multi_agent_caching.py
  • examples/multi_agent/caching_examples/quick_start_agent_caching.py
  • examples/multi_agent/concurrent_examples/asi.py
  • examples/multi_agent/concurrent_examples/concurrent_example.py
  • examples/multi_agent/concurrent_examples/concurrent_example_dashboard.py
  • examples/multi_agent/concurrent_examples/concurrent_mix.py
  • examples/multi_agent/concurrent_examples/concurrent_swarm_example.py
  • examples/multi_agent/concurrent_examples/concurrent_workflow_autosave_example.py
  • examples/multi_agent/concurrent_examples/concurrent_workflow_random_example.py
  • examples/multi_agent/concurrent_examples/example_concurrent.py
  • examples/multi_agent/concurrent_examples/streaming_callback/example_streaming_workflow.py
  • examples/multi_agent/concurrent_examples/streaming_callback/parallel_search_agents.py
  • examples/multi_agent/concurrent_examples/streaming_concurrent_workflow.py
  • examples/multi_agent/council/judges/council_judge_basic.py
  • examples/multi_agent/council/judges/council_judge_complex_example.py
  • examples/multi_agent/council/judges/council_judge_custom_example.py
  • examples/multi_agent/council/judges/council_judge_evaluation.py
  • examples/multi_agent/council/judges/council_judge_example.py
  • examples/multi_agent/council/judges/council_of_judges_eval.py
  • examples/multi_agent/council/llm_council/business_strategy_council.py
  • examples/multi_agent/council/llm_council/etf_stock_analysis_council.py
  • examples/multi_agent/council/llm_council/finance_analysis_council.py
  • examples/multi_agent/council/llm_council/legal_analysis_council.py
  • examples/multi_agent/council/llm_council/llm_council_example.py
  • examples/multi_agent/council/llm_council/marketing_strategy_council.py
  • examples/multi_agent/council/llm_council/medical_diagnosis_council.py
  • examples/multi_agent/council/llm_council/medical_treatment_council.py
  • examples/multi_agent/council/llm_council/research_analysis_council.py
  • examples/multi_agent/council/llm_council/technology_assessment_council.py
  • examples/multi_agent/debate_examples/business_strategy_debate_example.py
  • examples/multi_agent/debate_examples/debate_with_judge_example.py
  • examples/multi_agent/debate_examples/policy_debate_example.py
  • examples/multi_agent/debate_examples/technical_architecture_debate_example.py
  • examples/multi_agent/election_swarm_examples/apple_board_election_example.py
  • examples/multi_agent/election_swarm_examples/election_example.py
  • examples/multi_agent/forest_swarm_examples/forest_swarm_example.py
  • examples/multi_agent/forest_swarm_examples/fund_manager_forest.py
  • examples/multi_agent/forest_swarm_examples/medical_forest_swarm.py
  • examples/multi_agent/forest_swarm_examples/tree_example.py
  • examples/multi_agent/forest_swarm_examples/tree_swarm_test.py
  • examples/multi_agent/graphworkflow_examples/advanced_graph_workflow.py
  • examples/multi_agent/graphworkflow_examples/graph/graph_workflow_basic.py
  • examples/multi_agent/graphworkflow_examples/graph/graph_workflow_example.py
  • examples/multi_agent/graphworkflow_examples/graph_workflow_basic.py
  • examples/multi_agent/graphworkflow_examples/graph_workflow_basic_new.py
  • examples/multi_agent/graphworkflow_examples/graph_workflow_checkpointing.py
  • examples/multi_agent/graphworkflow_examples/graph_workflow_composition.py
  • examples/multi_agent/graphworkflow_examples/graph_workflow_example.py
  • examples/multi_agent/graphworkflow_examples/graph_workflow_fanout_fanin.py
  • examples/multi_agent/graphworkflow_examples/graph_workflow_serialization.py
  • examples/multi_agent/graphworkflow_examples/graph_workflow_streaming.py
  • examples/multi_agent/graphworkflow_examples/graph_workflow_validate.py
  • examples/multi_agent/graphworkflow_examples/graph_workflow_validation.py
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/01_basic_usage.py
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/02_backend_comparison.py
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/03_fan_out_fan_in_patterns.py
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/04_complex_workflow.py
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/05_performance_benchmark.py
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/06_error_handling.py
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/07_large_scale_workflow.py
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/08_parallel_chain_example.py
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/09_workflow_validation.py
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/10_real_world_scenario.py
  • examples/multi_agent/graphworkflow_examples/test_parallel_processing_example.py
  • examples/multi_agent/groupchat/dynamic_groupchat_example.py
  • examples/multi_agent/groupchat/dynamic_groupchat_example_simple.py
  • examples/multi_agent/groupchat/enhanced_collaboration_example.py
  • examples/multi_agent/groupchat/groupchat_examples/crypto_tax.py
  • examples/multi_agent/groupchat/groupchat_examples/crypto_tax_swarm.py
  • examples/multi_agent/groupchat/groupchat_examples/group_chat_example.py
  • examples/multi_agent/groupchat/groupchat_examples/groupchat_example.py
  • examples/multi_agent/groupchat/groupchat_examples/mortgage_tax_panel_example.py
  • examples/multi_agent/groupchat/kimi_k3_groupchat.py
  • examples/multi_agent/groupchat/medical_panel_example.py
  • examples/multi_agent/groupchat/philosopher_groupchat.py
  • examples/multi_agent/groupchat/quantum_physics_swarm.py
  • examples/multi_agent/groupchat/simple_groupchat_reshoring_swarm.py
  • examples/multi_agent/groupchat/stream_example.py
  • examples/multi_agent/groupchat/test_groupchat_feat.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_16_agents.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_4_agents.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_example.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_example_one.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_example_research.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_example_research_swarm.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_basic.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_heavy.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_medical.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_no_dashboard.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_question_preview.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_router.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_no_dashboard.py
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_with_image.py
  • examples/multi_agent/heavy_swarm_examples/medical_heavy_swarm_example.py
  • examples/multi_agent/hierarchical_swarm/display_hierarchy_example.py
  • examples/multi_agent/hierarchical_swarm/example_hierarchical.py
  • examples/multi_agent/hierarchical_swarm/hiearchical_examples/advanced_hierarchical_swarm_examples.py
  • examples/multi_agent/hierarchical_swarm/hiearchical_examples/hiearchical_swarm_test.py
  • examples/multi_agent/hierarchical_swarm/hiearchical_examples/hierarchical_swarm_example.py
  • examples/multi_agent/hierarchical_swarm/hiearchical_swarm_example.py
  • examples/multi_agent/hierarchical_swarm/hiearchical_swarm_new_features_example.py
  • examples/multi_agent/hierarchical_swarm/hiearchical_swarm_ui/debug_dashboard.py
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_autosave_example.py
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_basic_demo.py
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_batch_demo.py
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_comparison_demo.py
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_example.py
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_plan_panel_example.py
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_streaming_demo.py
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_streaming_example.py
  • examples/multi_agent/hierarchical_swarm/hs_interactive.py
  • examples/multi_agent/hierarchical_swarm/hs_stock_team.py
  • examples/multi_agent/hierarchical_swarm/hybrid_hiearchical_swarm.py
  • examples/multi_agent/hierarchical_swarm/sector_analysis_hiearchical_swarm.py
  • examples/multi_agent/hierarchical_swarm/simple_hierarchical_swarm_recovery.py
  • examples/multi_agent/ma_blocks_examples/find_agent_by_name_example.py
  • examples/multi_agent/majority_voting/_doda_majority_voting_example_new.py
  • examples/multi_agent/majority_voting/majority_voting_example.py
  • examples/multi_agent/majority_voting/majority_voting_example_new.py
  • examples/multi_agent/majority_voting/snake_game_code_voting.py
  • examples/multi_agent/mar/model_router_example.py
  • examples/multi_agent/mar/multi_agent_router_example.py
  • examples/multi_agent/mar/multi_agent_router_minimal.py
  • examples/multi_agent/mar/multi_agent_router_specialist_routing.py
  • examples/multi_agent/mar/refactor_smoke_example.py
  • examples/multi_agent/moa_examples/mixture_of_agents_example.py
  • examples/multi_agent/moa_examples/test_moa_new.py
  • examples/multi_agent/one_to_one_examples/one_to_one_class_example.py
  • examples/multi_agent/one_to_one_examples/one_to_one_function_example.py
  • examples/multi_agent/one_to_three_examples/one_to_three_class_example.py
  • examples/multi_agent/one_to_three_examples/one_to_three_function_example.py
  • examples/multi_agent/orchestration_examples/ai_ethics_debate.py
  • examples/multi_agent/orchestration_examples/cybersecurity_incident_negotiation.py
  • examples/multi_agent/orchestration_examples/healthcare_panel_discussion.py
  • examples/multi_agent/orchestration_examples/insurance_claim_review.py
  • examples/multi_agent/orchestration_examples/investment_council_meeting.py
  • examples/multi_agent/orchestration_examples/medical_malpractice_trial.py
  • examples/multi_agent/orchestration_examples/merger_mediation_session.py
  • examples/multi_agent/orchestration_examples/nvidia_amd_executive_negotiation.py
  • examples/multi_agent/orchestration_examples/pharma_research_brainstorm.py
  • examples/multi_agent/orchestration_examples/philosophy_discussion_example.py
  • examples/multi_agent/orchestration_examples/startup_mentorship_program.py
  • examples/multi_agent/paper_implementations/long_agent.py
  • examples/multi_agent/phased_fan_out_workflow/bug_hunt.py
  • examples/multi_agent/phased_fan_out_workflow/contract_review.py
  • examples/multi_agent/planner_generator_evaluator/pge_example.py
  • examples/multi_agent/planner_generator_evaluator/pge_with_tools_example.py
  • examples/multi_agent/planner_worker_swarm/planner_worker_swarm_example.py
  • examples/multi_agent/round_robin_examples/engineering_design_review.py
  • examples/multi_agent/round_robin_examples/investment_committee_etf.py
  • examples/multi_agent/round_robin_examples/medical_treatment_review.py
  • examples/multi_agent/round_robin_examples/round_robin_example.py
  • examples/multi_agent/sequential_workflow/drift_detection_commodities.py
  • examples/multi_agent/sequential_workflow/example_sequential.py
  • examples/multi_agent/sequential_workflow/research_analyse_write.py
  • examples/multi_agent/sequential_workflow/sequential_streaming_simple.py
  • examples/multi_agent/sequential_workflow/sequential_wofkflow.py
  • examples/multi_agent/sequential_workflow/sequential_worflow_test.py
  • examples/multi_agent/sequential_workflow/sequential_workflow.py
  • examples/multi_agent/sequential_workflow/sequential_workflow_autosave_example.py
  • examples/multi_agent/sequential_workflow/sequential_workflow_drift_detection.py
  • examples/multi_agent/sequential_workflow/sequential_workflow_example.py
  • examples/multi_agent/sequential_workflow/sequential_workflow_streaming.py
  • examples/multi_agent/sequential_workflow/sonnet_4_5_sequential.py
  • examples/multi_agent/simulations/agent_map/agent_map_simulation.py
  • examples/multi_agent/simulations/agent_map/hospital_simulation_demo.py
  • examples/multi_agent/simulations/agent_map/v0/demo_simulation.py
  • examples/multi_agent/simulations/agent_map/v0/example_usage.py
  • examples/multi_agent/simulations/agent_map/v0/simple_hospital_demo.py
  • examples/multi_agent/simulations/agent_map/v0/test_group_conversations.py
  • examples/multi_agent/simulations/euroswarm_parliament/__init__.py
  • examples/multi_agent/simulations/euroswarm_parliament/euroswarm_parliament_example.py
  • examples/multi_agent/simulations/euroswarm_parliament/wikipedia_personality_scraper.py
  • examples/multi_agent/simulations/example_bell_labs.py
  • examples/multi_agent/simulations/map_generation/game_map.py
  • examples/multi_agent/skill_orchestra_examples/skill_orchestra.py
  • examples/multi_agent/skill_orchestra_examples/skill_orchestra_example.py
  • examples/multi_agent/social_algorithms_examples/adaptive_workflow_algorithm_example.py
  • examples/multi_agent/social_algorithms_examples/auction_market_algorithm_example.py
  • examples/multi_agent/social_algorithms_examples/collaborative_brainstorming_example.py
  • examples/multi_agent/social_algorithms_examples/competitive_evaluation_example.py
  • examples/multi_agent/social_algorithms_examples/consensus_building_algorithm_example.py
  • examples/multi_agent/social_algorithms_examples/hierarchical_decision_making_example.py
  • examples/multi_agent/social_algorithms_examples/iterative_refinement_algorithm_example.py
  • examples/multi_agent/social_algorithms_examples/multi_stage_pipeline_algorithm_example.py
  • examples/multi_agent/social_algorithms_examples/negotiation_algorithm_example.py
  • examples/multi_agent/social_algorithms_examples/peer_review_example.py
  • examples/multi_agent/social_algorithms_examples/refactor_smoke_example.py
  • examples/multi_agent/social_algorithms_examples/research_analysis_synthesis_example.py
  • examples/multi_agent/social_algorithms_examples/social_algorithms_example.py
  • examples/multi_agent/social_algorithms_examples/swarm_intelligence_algorithm_example.py
  • examples/multi_agent/spreadsheet_examples/crypto_tax_swarm/crypto_tax_spreadsheet.py
  • examples/multi_agent/spreadsheet_examples/financial_analysis/swarm_csv.py
  • examples/multi_agent/spreadsheet_examples/spreadsheet_example.py
  • examples/multi_agent/spreadsheet_examples/spreadsheet_swarm_usage.py
  • examples/multi_agent/swarm_router/groupchat_swarm_router_example.py
  • examples/multi_agent/swarm_router/heavy_swarm_router_example.py
  • examples/multi_agent/swarm_router/market_analysis_swarm_router_concurrent.py
  • examples/multi_agent/swarm_router/sr_moa_example.py
  • examples/multi_agent/swarm_router/swarm_router.py
  • examples/multi_agent/swarm_router/swarm_router_benchmark.py
  • examples/multi_agent/swarm_router/swarm_router_concurrent_example.py
  • examples/multi_agent/swarm_router/swarm_router_example.py
  • examples/multi_agent/swarm_router/swarm_router_fallback_example.py
  • examples/multi_agent/swarm_router/swarm_router_mv.py
  • examples/multi_agent/swarm_router/swarm_router_test.py
  • examples/multi_agent/swarm_router/swarm_router_usage.py
  • examples/multi_agent/swarms_api_examples/hedge_fund_swarm.py
  • examples/multi_agent/swarms_api_examples/medical_swarm.py
  • examples/multi_agent/swarms_api_examples/swarms_api_client.py
  • examples/multi_agent/swarms_api_examples/swarms_api_example.py
  • examples/multi_agent/swarms_api_examples/tools_examples.py
  • examples/multi_agent/utils/agent_communication_examples.py
  • examples/multi_agent/utils/aggregate_example.py
  • examples/multi_agent/utils/batch_agent_example.py
  • examples/multi_agent/utils/meme_agents/bob_the_agent.py
  • examples/multi_agent/utils/one_to_one_broadcast_one_to_three.py
  • examples/multi_agent/utils/test_agent_concurrent.py
  • examples/multi_agent/utils/unique_swarms_examples.py
  • examples/reasoning_agents/agent_judge_examples/example1_basic_evaluation.py
  • examples/reasoning_agents/agent_judge_examples/example2_technical_evaluation.py
  • examples/reasoning_agents/agent_judge_examples/example3_creative_evaluation.py
  • examples/reasoning_agents/moa_seq_example.py
  • examples/reasoning_agents/reasoning_agent_router_examples/agent_judge_example.py
  • examples/reasoning_agents/reasoning_agent_router_examples/gkp_agent_example.py
  • examples/reasoning_agents/reasoning_agent_router_examples/ire_example.py
  • examples/reasoning_agents/reasoning_agent_router_examples/reasoning_duo_example.py
  • examples/reasoning_agents/reasoning_agent_router_examples/reflexion_agent_example.py
  • examples/reasoning_agents/reasoning_agent_router_examples/self_consistency_example.py
  • examples/reasoning_agents/tree_of_thoughts_examples/mathematics/calculus_optimization.py
  • examples/reasoning_agents/tree_of_thoughts_examples/mathematics/irrationality_proof.py
  • examples/reasoning_agents/tree_of_thoughts_examples/mathematics/number_theory_counting.py
  • examples/reasoning_agents/tree_of_thoughts_examples/physics/fermi_estimation.py
  • examples/reasoning_agents/tree_of_thoughts_examples/physics/loop_the_loop.py
  • examples/reasoning_agents/tree_of_thoughts_examples/physics/projectile_motion.py
  • examples/reasoning_agents/tree_of_thoughts_examples/reasoning/bridge_and_torch.py
  • examples/reasoning_agents/tree_of_thoughts_examples/reasoning/constraint_scheduling.py
  • examples/reasoning_agents/tree_of_thoughts_examples/reasoning/knights_and_knaves.py
  • examples/single_agent/capabilities/autonomy/autonomous_agents/auto_agent.py
  • examples/single_agent/capabilities/autonomy/autonomous_agents/auto_agent_quant_etf.py
  • examples/single_agent/capabilities/autonomy/autonomous_agents/autonomous_agent.py
  • examples/single_agent/capabilities/autonomy/autonomous_agents/example_autonomous_looper_run_bash.py
  • examples/single_agent/capabilities/autonomy/autonomous_agents/marketplace_and_auto_agent.py
  • examples/single_agent/capabilities/autonomy/autonomous_agents/medical_research_auto_loop.py
  • examples/single_agent/capabilities/autonomy/autonomous_agents/sub_agent_test.py
  • examples/single_agent/capabilities/autonomy/handoffs/autonomous_agent_with_handoffs_example.py
  • examples/single_agent/capabilities/autonomy/handoffs/duo_agent.py
  • examples/single_agent/capabilities/autonomy/handoffs/handoff_example.py
  • examples/single_agent/capabilities/autonomy/handoffs/handoffs_example.py
  • examples/single_agent/capabilities/messages/messages_example.py
  • examples/single_agent/capabilities/prompt_caching/1_basic_caching.py
  • examples/single_agent/capabilities/prompt_caching/2_cache_config_ttl.py
  • examples/single_agent/capabilities/prompt_caching/3_cache_config_tools.py
  • examples/single_agent/capabilities/prompt_caching/4_cache_config_system_only.py
  • examples/single_agent/capabilities/prompt_caching/5_cache_config_openai.py
  • examples/single_agent/capabilities/prompt_caching/6_cache_config_all_options.py
  • examples/single_agent/capabilities/prompt_caching/cache_config_example.py
  • examples/single_agent/capabilities/prompt_caching/prompt_caching_example.py
  • examples/single_agent/capabilities/rag/full_agent_rag_example.py
  • examples/single_agent/capabilities/rag/pinecone_example.py
  • examples/single_agent/capabilities/rag/qdrant_agent.py
  • examples/single_agent/capabilities/rag/qdrant_rag_example.py
  • examples/single_agent/capabilities/rag/simple_example.py
  • examples/single_agent/capabilities/skills/agent_with_custom_skill.py
  • examples/single_agent/capabilities/skills/agent_with_dynamic_skills.py
  • examples/single_agent/capabilities/skills/agent_with_multiple_skills.py
  • examples/single_agent/capabilities/skills/agent_with_skills.py
  • examples/single_agent/capabilities/skills/multiple_skill_dirs/after.py
  • examples/single_agent/capabilities/skills/multiple_skill_dirs/before.py
  • examples/single_agent/capabilities/streaming/agent_stream_token.py
  • examples/single_agent/capabilities/streaming/agent_streaming.py
  • examples/single_agent/capabilities/streaming/auto_loop_streaming_example.py
  • examples/single_agent/capabilities/streaming/example_streaming_tools.py
  • examples/single_agent/capabilities/streaming/streaming_example.py
  • examples/single_agent/capabilities/tools/agent_mcp.py
  • examples/single_agent/capabilities/tools/agent_with_exa.py
  • examples/single_agent/capabilities/tools/exa_search_agent.py
  • examples/single_agent/capabilities/tools/example_async_vs_multithread.py
  • examples/single_agent/capabilities/tools/litellm_tool_example.py
  • examples/single_agent/capabilities/tools/multi_tool_usage_agent.py
  • examples/single_agent/capabilities/tools/new_tools_examples.py
  • examples/single_agent/capabilities/tools/omni_modal_agent.py
  • examples/single_agent/capabilities/tools/solana_tool/solana_tool.py
  • examples/single_agent/capabilities/tools/solana_tool/solana_tool_test.py
  • examples/single_agent/capabilities/tools/structured_outputs/example_meaning_of_life_agents.py
  • examples/single_agent/capabilities/tools/structured_outputs/structured_outputs_example.py
  • examples/single_agent/capabilities/tools/swarms_of_browser_agents.py
  • examples/single_agent/capabilities/tools/swarms_tools_example.py
  • examples/single_agent/capabilities/tools/together_deepseek_agent.py
  • examples/single_agent/capabilities/tools/tools_examples/dex_screener.py
  • examples/single_agent/capabilities/tools/tools_examples/financial_news_agent.py
  • examples/single_agent/capabilities/tools/tools_examples/simple_tool_example.py
  • examples/single_agent/capabilities/tools/tools_examples/swarms_tool_example_simple.py
  • examples/single_agent/capabilities/vision/anthropic_vision_test.py
  • examples/single_agent/capabilities/vision/base_64_images/test_base64_image.py
  • examples/single_agent/capabilities/vision/image_batch_example.py
  • examples/single_agent/capabilities/vision/image_batch_processor.py
  • examples/single_agent/capabilities/vision/multimodal_example.py
  • examples/single_agent/capabilities/vision/multiple_image_processing.py
  • examples/single_agent/capabilities/vision/vision_test.py
  • examples/single_agent/capabilities/vision/vision_tools.py
  • examples/single_agent/demos/insurance_agent.py
  • examples/single_agent/demos/persistent_legal_agent.py
  • examples/single_agent/getting_started/interactive.py
  • examples/single_agent/getting_started/onboarding/onboard-basic.py
  • examples/single_agent/getting_started/simple_agent.py
  • examples/single_agent/integrations/marketplace/marketplace_prompt_example.py
  • examples/single_agent/integrations/marketplace/medical_agent_add_to_marketplace.py
  • examples/single_agent/integrations/marketplace/quant_trader_agent.py
  • examples/single_agent/integrations/marketplace/zia_agent.py
  • examples/single_agent/reasoning/agent_judge_evaluation_criteria_example.py
  • examples/single_agent/reasoning/agent_judge_example.py
  • examples/single_agent/reasoning/consistency_agent.py
  • examples/single_agent/reasoning/consistency_example.py
  • examples/single_agent/reasoning/gpk_agent.py
  • examples/single_agent/reasoning/iterative_agent.py
  • examples/single_agent/reasoning/reasoning_agent_router.py
  • examples/single_agent/reasoning/reasoning_agent_router_now.py
  • examples/single_agent/reasoning/reasoning_duo.py
  • examples/single_agent/reasoning/reasoning_duo_example.py
  • examples/single_agent/reasoning/reasoning_duo_test.py
  • examples/single_agent/utils/agent_usage.py
  • examples/single_agent/utils/async_agent.py
  • examples/single_agent/utils/autosaving_examples/autosave_basic_example.py
  • examples/single_agent/utils/autosaving_examples/autosave_config_access_example.py
  • examples/single_agent/utils/autosaving_examples/autosave_directory_structure_example.py
  • examples/single_agent/utils/autosaving_examples/autosave_recovery_example.py
  • examples/single_agent/utils/custom_agent_base_url.py
  • examples/single_agent/utils/dynamic_context_window.py
  • examples/single_agent/utils/fallback_test.py
  • examples/single_agent/utils/grok_4_agent.py
  • examples/single_agent/utils/list_agent_output_types.py
  • examples/single_agent/utils/markdown_agent.py
  • examples/single_agent/utils/transform_prompts/transforms_agent_example.py
  • examples/single_agent/utils/transform_prompts/transforms_examples.py
  • examples/tools/agent_as_tools.py
  • examples/tools/base_tool_examples/base_tool_examples.py
  • examples/tools/base_tool_examples/conver_funcs_to_schema.py
  • examples/tools/base_tool_examples/exa_search_deep_research.py
  • examples/tools/base_tool_examples/example_usage.py
  • examples/tools/browser_use/browser_use_as_tool.py
  • examples/tools/browser_use/browser_use_demo.py
  • examples/tools/claude/claude_as_a_tool.py
  • examples/tools/dynamic_tools/dynamic_tool_loading.py
  • examples/tools/exa_search/exa_search_agent.py
  • examples/tools/exa_search/exa_search_agent_quant.py
  • examples/tools/exa_search/exa_search_test.py
  • examples/tools/firecrawl/firecrawl_agents_example.py
  • examples/tools/multi_tool_use/many_tool_use_demo.py
  • examples/tools/multi_tool_use/multi_tool_anthropic.py
  • examples/tools/social_media/social_media_tools.py
  • examples/tools/stagehand/1_stagehand_wrapper_agent.py
  • examples/tools/stagehand/2_stagehand_tools_agent.py
  • examples/tools/stagehand/3_stagehand_mcp_agent.py
  • examples/tools/stagehand/4_stagehand_multi_agent_workflow.py
  • examples/utils/agent_loader/agent_loader_demo.py
  • examples/utils/agent_loader/claude_code_compatible.py
  • examples/utils/agent_loader/multi_agents_loader_demo.py
  • examples/utils/class_to_base_model.py
  • examples/utils/communication_examples/duckdb_agent.py
  • examples/utils/communication_examples/pulsar_conversation.py
  • examples/utils/communication_examples/redis_conversation.py
  • examples/utils/communication_examples/sqlite_conversation.py
  • examples/utils/conversation_cache_examples/conversation_cache_interactive.py
  • examples/utils/conversation_cache_examples/sequential_cache_test.py
  • examples/utils/fetch_prompt.py
  • examples/utils/litellm_connect_issue.py
  • examples/utils/litellm_network_error_handling.py
  • examples/utils/misc/agent_map_test.py
  • examples/utils/misc/conversation_simple.py
  • examples/utils/misc/conversation_test.py
  • examples/utils/misc/conversation_test_truncate.py
  • examples/utils/misc/csvagent_example.py
  • examples/utils/misc/dict_to_table.py
  • examples/utils/misc/swarm_matcher_example.py
  • examples/utils/misc/test_load_conversation.py
  • examples/utils/misc/visualizer_test.py
  • examples/utils/skills_load.py
  • examples/utils/swarms_api/agent_overview.py
  • examples/utils/swarms_api/batch_example.py
  • examples/utils/swarms_api/client_example.py
  • examples/utils/swarms_api/hospital_team.py
  • examples/utils/swarms_api/icd_ten_analysis.py
  • examples/utils/swarms_api/legal_team.py
  • examples/utils/swarms_api/rate_limits.py
  • scripts/examples.py
  • scripts/github_commits.py
  • scripts/tests/run_all_tests.py
  • scripts/tests/test_rename_recursive.py
  • scripts/tests/test_upload_tests_to_issues.py
  • swarms/__init__.py
  • swarms/agents/__init__.py
  • swarms/agents/agent_judge.py
  • swarms/agents/agent_marketplace_handler.py
  • swarms/agents/ape_agent.py
  • swarms/agents/auto_chat_agent.py
  • swarms/agents/auto_generate_swarm_config.py
  • swarms/agents/autonomous_loop.py
  • swarms/agents/consistency_agent.py
  • swarms/agents/context_compressor.py
  • swarms/agents/flexion_agent.py
  • swarms/agents/gkp_agent.py
  • swarms/agents/heavy_swarm_agents.py
  • swarms/agents/i_agent.py
  • swarms/agents/llm_manager.py
  • swarms/agents/reasoning_agent_router.py
  • swarms/agents/reasoning_duo.py
  • swarms/agents/skills_manager.py
  • swarms/agents/tool_manager.py
  • swarms/agents/tree_of_thoughts.py
  • swarms/cli/__init__.py
  • swarms/cli/main.py
  • swarms/cli/models.py
  • swarms/cli/tips.py
  • swarms/cli/utils.py
  • swarms/env.py
  • swarms/prompts/__init__.py
  • swarms/prompts/accountant_swarm_prompts.py
  • swarms/prompts/advisor_swarm_prompts.py
  • swarms/prompts/ag_prompt.py
  • swarms/prompts/aga.py
  • swarms/prompts/agent_acknowledgement_prompt.py
  • swarms/prompts/agent_conversation_aggregator.py
  • swarms/prompts/agent_judge_prompt.py
  • swarms/prompts/agent_orchestration_prompt.py
  • swarms/prompts/agent_prompts.py
  • swarms/prompts/agent_self_builder_prompt.py
  • swarms/prompts/agent_system_prompts.py
  • swarms/prompts/ai_research_team.py
  • swarms/prompts/aot_prompt.py
  • swarms/prompts/auto_agent_builder_prompt.py
  • swarms/prompts/autobloggen.py
  • swarms/prompts/autonomous_agent_prompt.py
  • swarms/prompts/autoswarm.py
  • swarms/prompts/code_interpreter.py
  • swarms/prompts/code_spawner.py
  • swarms/prompts/collaborative_prompts.py
  • swarms/prompts/debate_with_judge_prompts.py
  • swarms/prompts/documentation.py
  • swarms/prompts/education.py
  • swarms/prompts/finance_agent_prompt.py
  • swarms/prompts/finance_agent_sys_prompt.py
  • swarms/prompts/groupchat_prompt.py
  • swarms/prompts/growth_agent_prompt.py
  • swarms/prompts/handoffs_prompt.py
  • swarms/prompts/heavy_swarm_prompts.py
  • swarms/prompts/hierarchical_swarm_prompts.py
  • swarms/prompts/idea2img.py
  • swarms/prompts/legal_agent_prompt.py
  • swarms/prompts/llm_council_prompts.py
  • swarms/prompts/logistics.py
  • swarms/prompts/max_loop_prompt.py
  • swarms/prompts/meta_system_prompt.py
  • swarms/prompts/moa_prompt.py
  • swarms/prompts/multi_agent_collab_prompt.py
  • swarms/prompts/multi_modal_prompts.py
  • swarms/prompts/multi_modal_visual_prompts.py
  • swarms/prompts/operations_agent_prompt.py
  • swarms/prompts/paper_idea_agent.py
  • swarms/prompts/personal_stylist.py
  • swarms/prompts/phased_fan_out_workflow_prompts.py
  • swarms/prompts/planner_generator_evaluator_prompts.py
  • swarms/prompts/planner_worker_prompts.py
  • swarms/prompts/product_agent_prompt.py
  • swarms/prompts/programming.py
  • swarms/prompts/project_manager.py
  • swarms/prompts/prompt.py
  • swarms/prompts/prompt_generator.py
  • swarms/prompts/prompt_generator_optimizer.py
  • swarms/prompts/python.py
  • swarms/prompts/react.py
  • swarms/prompts/react_base_prompt.py
  • swarms/prompts/reasoning_prompt.py
  • swarms/prompts/refiner_agent_prompt.py
  • swarms/prompts/reflexion_prompts.py
  • swarms/prompts/safety_prompt.py
  • swarms/prompts/sales.py
  • swarms/prompts/sales_prompts.py
  • swarms/prompts/security_team.py
  • swarms/prompts/self_operating_prompt.py
  • swarms/prompts/sop_generator_agent_prompt.py
  • swarms/prompts/summaries_prompts.py
  • swarms/prompts/support_agent_prompt.py
  • swarms/prompts/swarm_manager_agent.py
  • swarms/prompts/task_assignment_prompt.py
  • swarms/prompts/tests.py
  • swarms/prompts/tools.py
  • swarms/prompts/tree_of_thoughts_prompts.py
  • swarms/prompts/urban_planning.py
  • swarms/prompts/visual_cot.py
  • swarms/prompts/worker_prompt.py
  • swarms/prompts/xray_swarm_prompt.py
  • swarms/schemas/__init__.py
  • swarms/schemas/agent_errors.py
  • swarms/schemas/agent_mcp_errors.py
  • swarms/schemas/hs_schemas.py
  • swarms/schemas/mcp_schemas.py
  • swarms/schemas/planner_worker_schemas.py
  • swarms/structs/__init__.py
  • swarms/structs/advisor_swarm.py
  • swarms/structs/agent.py
  • swarms/structs/agent_loader.py
  • swarms/structs/agent_rearrange.py
  • swarms/structs/agent_registry.py
  • swarms/structs/agent_roles.py
  • swarms/structs/agent_router.py
  • swarms/structs/agentmail_channel.py
  • swarms/structs/async_subagent.py
  • swarms/structs/auction_swarm.py
  • swarms/structs/auto_agent_builder.py
  • swarms/structs/auto_swarm_builder.py
  • swarms/structs/autonomous_loop_utils.py
  • swarms/structs/batch_agent_execution.py
  • swarms/structs/batched_grid_workflow.py
  • swarms/structs/broadcast.py
  • swarms/structs/check_models.py
  • swarms/structs/comms_channel.py
  • swarms/structs/concurrent_workflow.py
  • swarms/structs/context_utils.py
  • swarms/structs/conversation.py
  • swarms/structs/council_as_judge.py
  • swarms/structs/cron_job.py
  • swarms/structs/debate_with_judge.py
  • swarms/structs/decision_model.py
  • swarms/structs/deep_discussion.py
  • swarms/structs/dynamic_skills_loader.py
  • swarms/structs/execution_utils.py
  • swarms/structs/file_channel.py
  • swarms/structs/graph_workflow.py
  • swarms/structs/groupchat.py
  • swarms/structs/heavy_swarm.py
  • swarms/structs/hiearchical_swarm.py
  • swarms/structs/hierarchical_order_parser.py
  • swarms/structs/http_channel.py
  • swarms/structs/hybrid_hiearchical_peer_swarm.py
  • swarms/structs/llm_council.py
  • swarms/structs/ma_blocks.py
  • swarms/structs/ma_utils.py
  • swarms/structs/majority_voting.py
  • swarms/structs/mcp_deployer.py
  • swarms/structs/mixture_of_agents.py
  • swarms/structs/model_router.py
  • swarms/structs/multi_agent_debates.py
  • swarms/structs/multi_agent_exec.py
  • swarms/structs/multi_agent_router.py
  • swarms/structs/omni_agent_types.py
  • swarms/structs/one_to_one.py
  • swarms/structs/one_to_three.py
  • swarms/structs/phased_fan_out_workflow.py
  • swarms/structs/planner_generator_evaluator.py
  • swarms/structs/planner_worker_swarm.py
  • swarms/structs/queue_channel.py
  • swarms/structs/round_robin.py
  • swarms/structs/safe_loading.py
  • swarms/structs/self_moa_seq.py
  • swarms/structs/sequential_workflow.py
  • swarms/structs/serialization.py
  • swarms/structs/smtp_channel.py
  • swarms/structs/social_algorithms.py
  • swarms/structs/spreadsheet_swarm.py
  • swarms/structs/sqlite_channel.py
  • swarms/structs/swarm_id.py
  • swarms/structs/swarm_router.py
  • swarms/structs/swarming_architectures.py
  • swarms/structs/transforms.py
  • swarms/structs/tree_swarm.py
  • swarms/telemetry/__init__.py
  • swarms/telemetry/bootup.py
  • swarms/telemetry/compression.py
  • swarms/telemetry/main.py
  • swarms/telemetry/otel.py
  • swarms/tools/__init__.py
  • swarms/tools/base_tool.py
  • swarms/tools/dynamic_tool_loader.py
  • swarms/tools/handoffs_tool.py
  • swarms/tools/handoffs_tool_schema.py
  • swarms/tools/mcp_manager.py
  • swarms/tools/py_func_to_openai_func_str.py
  • swarms/tools/pydantic_to_json.py
  • swarms/tools/tool_parse_exec.py
  • swarms/tools/tool_registry.py
  • swarms/tools/tool_type.py
  • swarms/tools/tool_utils.py
  • swarms/utils/__init__.py
  • swarms/utils/any_to_str.py
  • swarms/utils/class_to_pydantic.py
  • swarms/utils/disable_logging.py
  • swarms/utils/docstring_parser.py
  • swarms/utils/file_processing.py
  • swarms/utils/formatter.py
  • swarms/utils/generate_id.py
  • swarms/utils/generate_keys.py
  • swarms/utils/get_cpu_cores.py
  • swarms/utils/get_reasoning_efforts.py
  • swarms/utils/heavy_swarm_dashboard.py
  • swarms/utils/history_output_formatter.py
  • swarms/utils/image_file_b64.py
  • swarms/utils/index.py
  • swarms/utils/litellm_tokenizer.py
  • swarms/utils/litellm_wrapper.py
  • swarms/utils/llm_backend.py
  • swarms/utils/loguru_logger.py
  • swarms/utils/output_types.py
  • swarms/utils/str_to_dict.py
  • swarms/utils/workspace_manager.py
  • swarms/utils/workspace_utils.py
  • tests/agents/test_agent_judge.py
  • tests/agents/test_agent_marketplace_handler.py
  • tests/agents/test_autonomous_loop.py
  • tests/agents/test_autoswarm_writer.py
  • tests/agents/test_consistency_agent.py
  • tests/agents/test_context_compressor.py
  • tests/agents/test_flexion_agent.py
  • tests/agents/test_gkp_agent.py
  • tests/agents/test_llm_manager.py
  • tests/agents/test_reasoning_duo.py
  • tests/agents/test_skills_manager.py
  • tests/agents/test_tree_of_thoughts.py
  • tests/benchmark_graph_workflow.py
  • tests/prompts/test_agent_system_prompts.py
  • tests/prompts/test_autonomous_agent_prompt.py
  • tests/structs/test_advisor_swarm.py
  • tests/structs/test_agent.py
  • tests/structs/test_agent_loader.py
  • tests/structs/test_agent_rearrange.py
  • tests/structs/test_agent_registry.py
  • tests/structs/test_agent_router.py
  • tests/structs/test_agentmail_channel.py
  • tests/structs/test_async_subagent.py
  • tests/structs/test_auction_swarm.py
  • tests/structs/test_auto_agent_builder.py
  • tests/structs/test_auto_swarms_builder.py
  • tests/structs/test_batch_agent_execution.py
  • tests/structs/test_batched_grid_workflow.py
  • tests/structs/test_broadcast.py
  • tests/structs/test_check_models.py
  • tests/structs/test_comms_channel.py
  • tests/structs/test_component_ids.py
  • tests/structs/test_concurrent_workflow.py
  • tests/structs/test_conversation.py
  • tests/structs/test_council_as_judge.py
  • tests/structs/test_cron_job.py
  • tests/structs/test_decision_model.py
  • tests/structs/test_execution_utils.py
  • tests/structs/test_forest_swarm.py
  • tests/structs/test_graph_workflow.py
  • tests/structs/test_groupchat.py
  • tests/structs/test_heavy_swarm.py
  • tests/structs/test_hierarchical_order_parser.py
  • tests/structs/test_hierarchical_swarm.py
  • tests/structs/test_http_channel.py
  • tests/structs/test_hybrid_hiearchical_peer_swarm.py
  • tests/structs/test_i_agent.py
  • tests/structs/test_llm_council.py
  • tests/structs/test_majority_voting.py
  • tests/structs/test_mcp_deployer.py
  • tests/structs/test_moa.py
  • tests/structs/test_model_router.py
  • tests/structs/test_multi_agent_debate.py
  • tests/structs/test_multi_agent_exec.py
  • tests/structs/test_multi_agent_router.py
  • tests/structs/test_one_on_one_debate.py
  • tests/structs/test_one_to_one.py
  • tests/structs/test_one_to_three.py
  • tests/structs/test_phased_fan_out_workflow.py
  • tests/structs/test_queue_channel.py
  • tests/structs/test_reasoning_agent_router.py
  • tests/structs/test_round_robin_swarm.py
  • tests/structs/test_safe_loading.py
  • tests/structs/test_self_moa_seq.py
  • tests/structs/test_sequential_workflow.py
  • tests/structs/test_smtp_channel.py
  • tests/structs/test_social_algorithms.py
  • tests/structs/test_spreadsheet.py
  • tests/structs/test_sqlite_channel.py
  • tests/structs/test_swarm_architectures.py
  • tests/structs/test_swarm_router.py
  • tests/structs/test_swarming_architectures.py
  • tests/structs/test_transforms.py
  • tests/telemetry/test_bootup.py
  • tests/telemetry/test_compression.py
  • tests/telemetry/test_telemetry.py
  • tests/test___init__.py
  • tests/test_cli.py
  • tests/test_main_features.py
  • tests/test_prompt_caching.py
  • tests/test_streaming_timing.py
  • tests/tools/mcp_test_server.py
  • tests/tools/test_base_tool.py
  • tests/tools/test_dynamic_tool_loader.py
  • tests/tools/test_mcp_manager.py
  • tests/tools/test_output_str_fix.py
  • tests/tools/test_parse_tools.py
  • tests/utils/test_any_to_str.py
  • tests/utils/test_docstring_parser.py
  • tests/utils/test_formatter.py
  • tests/utils/test_history_output_formatter.py
  • tests/utils/test_image_file_b64.py
  • tests/utils/test_litellm_output_tokens.py
  • tests/utils/test_litellm_temperature.py
  • tests/utils/test_litellm_usage.py
  • tests/utils/test_litellm_wrapper.py
  • tests/utils/test_llm_backend.py
  • tests/utils/test_loguru_logger.py
  • tests/utils/test_ssrf_url_guard.py
  • tests/utils/test_workspace_manager.py

Files

  • .dockerignoreasset61 bytes
  • .env.exampleasset1,377 bytes
  • .github/CODEOWNERSasset2,221 bytes
  • .github/FUNDING.ymlasset640 bytes
  • .github/ISSUE_TEMPLATE/bug_report.mddoc548 bytes
  • .github/ISSUE_TEMPLATE/feature_request.mddoc603 bytes
  • .github/PULL_REQUEST_TEMPLATE.mddoc1,415 bytes
  • .github/action.ymlasset1,107 bytes
  • .github/copilot-instructions.mddoc577 bytes
  • .github/dependabot.ymlasset367 bytes
  • .github/labeler.ymlasset851 bytes
  • .github/workflows/RELEASE.ymlasset1,274 bytes
  • .github/workflows/block-payout-spam.ymlasset2,725 bytes
  • .github/workflows/dependency-review.ymlasset1,731 bytes
  • .github/workflows/label-ai-generated.ymlasset3,942 bytes
  • .github/workflows/label.ymlasset546 bytes
  • .github/workflows/lint.ymlasset800 bytes
  • .github/workflows/python-package.ymlasset1,566 bytes
  • .github/workflows/stale.ymlasset1,948 bytes
  • .github/workflows/test-main-features.ymlasset4,628 bytes
  • .github/workflows/tests.ymlasset579 bytes
  • .github/workflows/welcome.ymlasset583 bytes
  • .gitignoreasset7,630 bytes
  • AGENTS.mddoc2,474 bytes
  • CITATION.cffasset338 bytes
  • CLAUDE.mddoc40,363 bytes
  • CODE_OF_CONDUCT.mddoc5,218 bytes
  • CONTRIBUTING.mddoc8,750 bytes
  • Dockerfileruns1,080 bytes
  • LICENSEasset11,363 bytes
  • README.mddoc44,563 bytes
  • README_zh.mddoc41,954 bytes
  • SECURITY.mddoc3,880 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • SKILL.mdcore22,649 bytes
  • example.pyruns1,451 bytes
  • examples/README.mddoc38,344 bytes
  • examples/changelogs/880_update_changelog_examples/01_marketplace_prompt_fetching.pyruns519 bytes
  • examples/changelogs/880_update_changelog_examples/02_round_robin_swarm_routing.pyruns906 bytes
  • examples/changelogs/880_update_changelog_examples/03_graph_workflow_rustworkx.pyruns1,270 bytes
  • examples/changelogs/880_update_changelog_examples/04_agent_rearrange.pyruns1,034 bytes
  • examples/changelogs/880_update_changelog_examples/05_nested_swarms.pyruns1,037 bytes
  • examples/changelogs/880_update_changelog_examples/06_spreadsheet_swarm.pyruns1,257 bytes
  • examples/changelogs/880_update_changelog_examples/07_model_router.pyruns643 bytes
  • examples/changelogs/880_update_changelog_examples/08_self_moa_seq.pyruns568 bytes
  • examples/changelogs/880_update_changelog_examples/09_single_voice_agent.pyruns692 bytes
  • examples/changelogs/880_update_changelog_examples/10_multi_agent_voice_debate.pyruns1,443 bytes
  • examples/changelogs/880_update_changelog_examples/11_hierarchical_voice_swarm.pyruns2,164 bytes
  • examples/changelogs/880_update_changelog_examples/12_debate_with_judge.pyruns413 bytes
  • examples/changelogs/880_update_changelog_examples/13_council_as_judge.pyruns667 bytes
  • examples/changelogs/880_update_changelog_examples/14_swarm_router_round_robin.pyruns949 bytes
  • examples/changelogs/880_update_changelog_examples/15_graph_workflow_batch_agents.pyruns1,555 bytes
  • examples/changelogs/880_update_changelog_examples/README.mddoc12,327 bytes
  • examples/changelogs/880_update_changelog_examples/autosaving_example.pyruns469 bytes
  • examples/changelogs/v11_update/advisor_swarm_basic.pyruns399 bytes
  • examples/changelogs/v11_update/advisor_swarm_custom_agents.pyruns641 bytes
  • examples/changelogs/v11_update/agent_rearrange_batch_run.pyruns438 bytes
  • examples/changelogs/v11_update/agent_rearrange_repeated_flow.pyruns540 bytes
  • examples/changelogs/v11_update/conversation_cache_example.pyruns395 bytes
  • examples/changelogs/v11_update/env_loading_example.pyruns119 bytes
  • examples/changelogs/v11_update/graph_workflow_checkpoint.pyruns364 bytes
  • examples/changelogs/v11_update/graph_workflow_serialization.pyruns513 bytes
  • examples/changelogs/v11_update/heavy_swarm_16_agents.pyruns293 bytes
  • examples/changelogs/v11_update/heavy_swarm_grok_basic.pyruns254 bytes
  • examples/changelogs/v11_update/heavy_swarm_grok_router.pyruns206 bytes
  • examples/changelogs/v11_update/hierarchical_swarm_example.pyruns664 bytes
  • examples/changelogs/v11_update/planner_generator_evaluator_basic.pyruns465 bytes
  • examples/changelogs/v11_update/planner_generator_evaluator_with_tools.pyruns323 bytes
  • examples/changelogs/v11_update/planner_worker_swarm_basic.pyruns448 bytes
  • examples/changelogs/v11_update/planner_worker_task_schema.pyruns437 bytes
  • examples/changelogs/v11_update/sequential_workflow_drift_detection.pyruns650 bytes
  • examples/changelogs/v11_update/v11.mddoc14,801 bytes
  • examples/changelogs/v11_update/v11_blog.mddoc23,517 bytes
  • examples/changelogs/v11_update/v11_changelog.mddoc34,886 bytes
  • examples/changelogs/v12_update/01_persistent_memory.pyruns1,291 bytes
  • examples/changelogs/v12_update/02_context_compression.pyruns1,337 bytes
  • examples/changelogs/v12_update/03_grep_tool_autonomous_loop.pyruns1,066 bytes
  • examples/changelogs/v12_update/04_conversation_memory_compact.pyruns2,228 bytes
  • examples/changelogs/v12_update/05_graph_workflow_callbacks.pyruns2,019 bytes
  • examples/changelogs/v12_update/06_arun_stream.pyruns2,049 bytes
  • examples/changelogs/v12_update/07_interactive_mode.pyruns583 bytes
  • examples/changelogs/v12_update/article.mddoc11,862 bytes
  • examples/changelogs/v12_update/byzantine_consensus.pyruns13,005 bytes
  • examples/changelogs/v12_update/changelog_v12.mddoc8,850 bytes
  • examples/changelogs/v12_update/changelog_v12_organized.mddoc10,826 bytes
  • examples/changelogs/v13/CHANGELOG.mddoc19,176 bytes
  • examples/changelogs/v13/README.mddoc1,726 bytes
  • examples/changelogs/v13/agent_lookup_helpers_example.pyruns1,304 bytes
  • examples/changelogs/v13/agent_rearrange_flow_example.pyruns1,048 bytes
  • examples/changelogs/v13/agent_tools_default_example.pyruns534 bytes
  • examples/changelogs/v13/cli_examples.shruns277 bytes
  • examples/changelogs/v13/graph_workflow_composition_example.pyruns1,247 bytes
  • examples/changelogs/v13/groupchat_self_selecting_example.pyruns1,015 bytes
  • examples/changelogs/v13/heavy_swarm_variant_example.pyruns320 bytes
  • examples/changelogs/v13/round_robin_rotation_example.pyruns682 bytes
  • examples/changelogs/v13/sequential_workflow_streaming_example.pyruns1,176 bytes
  • examples/changelogs/v13/swarm_router_groupchat_example.pyruns934 bytes
  • examples/changelogs/v14-zena/01_opentelemetry_tracing.pyruns811 bytes
  • examples/changelogs/v14-zena/02_instrument_custom_harness.pyruns1,184 bytes
  • examples/changelogs/v14-zena/03_mcp_manager.pyruns1,497 bytes
  • examples/changelogs/v14-zena/04_auto_agent_builder.pyruns1,430 bytes
  • examples/changelogs/v14-zena/05_auction_swarm.pyruns1,121 bytes
  • examples/changelogs/v14-zena/06_groupchat_turn_based.pyruns1,239 bytes
  • examples/changelogs/v14-zena/07_hierarchical_swarm_recovery.pyruns1,319 bytes
  • examples/changelogs/v14-zena/09_class_to_pydantic.pyruns1,146 bytes
  • examples/changelogs/v14-zena/10_concurrent_workflow_on_error.pyruns781 bytes
  • examples/changelogs/v14-zena/11_graph_workflow.pyruns961 bytes
  • examples/changelogs/v14-zena/12_thread_pool_sizing.pyruns904 bytes
  • examples/changelogs/v14-zena/13_agent_loader_csv.pyruns431 bytes
  • examples/changelogs/v14-zena/README.mddoc2,894 bytes
  • examples/changelogs/v9_examples/autonomous_looper.pyruns491 bytes
  • examples/changelogs/v9_examples/example_autonomous_looper_tools.pyruns2,843 bytes
  • examples/changelogs/v9_examples/example_sub_agents.pyruns989 bytes
  • examples/channel_examples/README.mddoc2,352 bytes
  • examples/channel_examples/agent_channel.pyruns1,017 bytes
  • examples/channel_examples/agent_rearrange_channel.pyruns746 bytes
  • examples/channel_examples/agentmail_channel_example.pyruns961 bytes
  • examples/channel_examples/concurrent_workflow_channel.pyruns646 bytes
  • examples/channel_examples/graph_workflow_channel.pyruns1,077 bytes
  • examples/channel_examples/groupchat_channel.pyruns813 bytes
  • examples/channel_examples/hierarchical_swarm_channel.pyruns751 bytes
  • examples/channel_examples/http_channel_example.pyruns1,001 bytes
  • examples/channel_examples/http_channel_server.pyruns1,233 bytes
  • examples/channel_examples/majority_voting_channel.pyruns486 bytes
  • examples/channel_examples/mixture_of_agents_channel.pyruns933 bytes
  • examples/channel_examples/planner_worker_swarm_channel.pyruns789 bytes
  • examples/channel_examples/queue_channel_example.pyruns1,225 bytes
  • examples/channel_examples/resume_channel.pyruns616 bytes
  • examples/channel_examples/sequential_workflow_channel.pyruns855 bytes
  • examples/channel_examples/smtp_channel_example.pyruns1,113 bytes
  • examples/channel_examples/sqlite_channel.pyruns1,144 bytes
  • examples/channel_examples/sqlite_channel_example.pyruns1,149 bytes
  • examples/channel_examples/swarm_router_channel.pyruns704 bytes
  • examples/cli/01_setup_check.shruns108 bytes
  • examples/cli/02_onboarding.shruns110 bytes
  • examples/cli/03_get_api_key.shruns102 bytes
  • examples/cli/04_check_login.shruns100 bytes
  • examples/cli/05_create_agent.shruns316 bytes
  • examples/cli/06_run_agents_yaml.shruns147 bytes
  • examples/cli/07_load_markdown.shruns140 bytes
  • examples/cli/08_llm_council.shruns184 bytes
  • examples/cli/09_heavy_swarm.shruns183 bytes
  • examples/cli/10_autoswarm.shruns155 bytes
  • examples/cli/11_features.shruns100 bytes
  • examples/cli/12_help.shruns98 bytes
  • examples/cli/13_auto_upgrade.shruns109 bytes
  • examples/cli/14_book_call.shruns95 bytes
  • examples/cli/README.mddoc4,643 bytes
  • examples/cli/research_agent_example.shruns674 bytes
  • examples/cli/run_all_examples.shruns144 bytes
  • examples/decision_models/calibrated_ensemble_judge.pyruns6,528 bytes
  • examples/decision_models/debate_referee_early_stop.pyruns4,297 bytes
  • examples/decision_models/decision_model_agent_router.pyruns2,647 bytes
  • examples/decision_models/decision_screening_funnel.pyruns11,493 bytes
  • examples/decision_models/get_decision_models_example.pyruns1,235 bytes
  • examples/decision_models/guarded_group_chat.pyruns5,850 bytes
  • examples/decision_models/openai_decisions.pyruns2,323 bytes
  • examples/decision_models/simple_openai.pyruns1,224 bytes
  • examples/decision_models/system_one_director_swarm.pyruns6,440 bytes
  • examples/decision_models/typesafe_ticket_triage.pyruns1,991 bytes
  • examples/guides/840_update/README.mddoc661 bytes
  • examples/guides/840_update/agent_rearrange_concurrent_example.pyruns4,095 bytes
  • examples/guides/840_update/auto_swarm_builder_example.pyruns562 bytes
  • examples/guides/840_update/fallback_example.pyruns568 bytes
  • examples/guides/850_workshop/README.mddoc631 bytes
  • examples/guides/850_workshop/moa_seq_example.pyruns484 bytes
  • examples/guides/850_workshop/peer_review_example.pyruns2,669 bytes
  • examples/guides/850_workshop/test_agent_concurrent.pyruns1,004 bytes
  • examples/guides/README.mddoc7,838 bytes
  • examples/guides/agentsh_implementation/README.mddoc9,922 bytes
  • examples/guides/agentsh_implementation/agentsh.pyruns50,930 bytes
  • examples/guides/changelog_890/01_dynamic_skills_loader.pyruns1,230 bytes
  • examples/guides/changelog_890/02_autonomous_agent_loop.pyruns3,085 bytes
  • examples/guides/changelog_890/03_agent_handoffs.pyruns1,227 bytes
  • examples/guides/changelog_890/04_api_key_validation.pyruns1,165 bytes
  • examples/guides/changelog_890/05_max_loops_parameter.pyruns1,286 bytes
  • examples/guides/changelog_890/06_multi_tool_agent_tutorial.pyruns2,685 bytes
  • examples/guides/changelog_890/07_hierarchical_voice_agent.pyruns2,350 bytes
  • examples/guides/changelog_890/08_agent_rearrange_patterns.pyruns1,475 bytes
  • examples/guides/changelog_890/README.mddoc5,350 bytes
  • examples/guides/demos/README.mddoc4,167 bytes
  • examples/guides/demos/agent_with_fluidapi.pyruns3,175 bytes
  • examples/guides/demos/apps/hiring_swarm.pyruns13,177 bytes
  • examples/guides/demos/apps/smart_database_swarm.pyruns36,541 bytes
  • examples/guides/demos/chart_swarm.pyruns11,093 bytes
  • examples/guides/demos/crypto/dao_swarm.pyruns11,392 bytes
  • examples/guides/demos/crypto/ethchain_agent.pyruns10,392 bytes
  • examples/guides/demos/crypto/htx_swarm.pyruns9,745 bytes
  • examples/guides/demos/crypto/swarms_coin_agent.pyruns6,522 bytes
  • examples/guides/demos/crypto/swarms_coin_multimarket.pyruns12,936 bytes
  • examples/guides/demos/cuda_swarm.pyruns15,297 bytes
  • examples/guides/demos/finance/sentiment_news_analysis.pyruns7,562 bytes
  • examples/guides/demos/hackathon_feb16/fraud.pyruns10,837 bytes
  • examples/guides/demos/hackathon_feb16/sarasowti.pyruns8,950 bytes
  • examples/guides/demos/insurance/insurance_swarm.pyruns10,989 bytes
  • examples/guides/demos/legal/legal_swarm.pyruns15,621 bytes
  • examples/guides/demos/medical/health_privacy_swarm.pyruns9,325 bytes
  • examples/guides/demos/medical/health_privacy_swarm_two.pyruns9,827 bytes
  • examples/guides/demos/medical/medical_analysis_agent_rearrange.mddoc12,995 bytes
  • examples/guides/demos/medical/medical_coder_agent.pyruns7,464 bytes
  • examples/guides/demos/medical/medical_coding_report.mddoc17,051 bytes
  • examples/guides/demos/medical/medical_diagnosis_report.mddoc16,378 bytes
  • examples/guides/demos/medical/new_medical_rearrange.pyruns5,810 bytes
  • examples/guides/demos/medical/ollama_demo.pyruns7,505 bytes
  • examples/guides/demos/medical/rearrange_video_examples/reports/medical_analysis_agent_rearrange.mddoc12,417 bytes
  • examples/guides/demos/medical/rearrange_video_examples/reports/vc_document_analysis.mddoc19,538 bytes
  • examples/guides/demos/medical/rearrange_video_examples/term_sheet_swarm.pyruns7,105 bytes
  • examples/guides/demos/news_aggregator_summarizer.pyruns3,121 bytes
  • examples/guides/demos/privacy_building.pyruns9,026 bytes
  • examples/guides/demos/real_estate/README_realtor.mddoc1,107 bytes
  • examples/guides/demos/real_estate/morgtate_swarm.pyruns22,085 bytes
  • examples/guides/demos/real_estate/real_estate_agent.pyruns10,103 bytes
  • examples/guides/demos/real_estate/realtor_agent.pyruns4,688 bytes
  • examples/guides/demos/science/materials_science_agents.pyruns12,416 bytes
  • examples/guides/demos/science/open_scientist.pyruns22,762 bytes
  • examples/guides/demos/science/paper_idea_agent.pyruns2,454 bytes
  • examples/guides/demos/science/paper_idea_profile.pyruns3,803 bytes
  • examples/guides/demos/spike/agent_rearrange_test.pyruns8,005 bytes
  • examples/guides/demos/spike/function_caller_example.pyruns1,476 bytes
  • examples/guides/demos/spike/memory.pyruns4,208 bytes
  • examples/guides/demos/spike/spike.zipasset7,375 bytes
  • examples/guides/demos/spike/test.pyruns7,818 bytes
  • examples/guides/demos/synthetic_data/profession_sim/convert_json_to_csv.pyruns555 bytes
  • examples/guides/demos/synthetic_data/profession_sim/data.csvasset267,048 bytes
  • examples/guides/demos/synthetic_data/profession_sim/format_prompt.pyruns2,071 bytes
  • examples/guides/demos/synthetic_data/profession_sim/profession_persona_generator.pyruns43,248 bytes
  • examples/guides/demos/synthetic_data/profession_sim/profession_personas.csvasset557,511 bytes
  • examples/guides/demos/synthetic_data/profession_sim/profession_personas.progress.backup.jsonasset461,927 bytes
  • examples/guides/demos/synthetic_data/profession_sim/profession_personas.progress.jsonasset569,360 bytes
  • examples/guides/demos/synthetic_data/profession_sim/profession_personas_new_10.csvasset162,358 bytes
  • examples/guides/demos/synthetic_data/profession_sim/profession_personas_new_10.progress.backup.jsonasset29,598 bytes
  • examples/guides/demos/synthetic_data/profession_sim/profession_personas_new_10.progress.backup_new.jsonasset158,027 bytes
  • examples/guides/demos/synthetic_data/profession_sim/profession_personas_new_10.progress.jsonasset29,598 bytes
  • examples/guides/demos/synthetic_data/profession_sim/profession_personas_new_10.progress_neee.jsonasset167,221 bytes
  • examples/guides/demos/synthetic_data/profession_sim/prompt.txtdoc8,990 bytes
  • examples/guides/demos/synthetic_data/profession_sim/prompt_formatted.mddoc8,919 bytes
  • examples/guides/deployment/README.mddoc1,281 bytes
  • examples/guides/deployment/cron_job_examples/README.mddoc2,375 bytes
  • examples/guides/deployment/cron_job_examples/callback_cron_example.pyruns10,577 bytes
  • examples/guides/deployment/cron_job_examples/cron_job_example.pyruns9,284 bytes
  • examples/guides/deployment/cron_job_examples/cron_job_figma_stock_swarms_tools_example.pyruns3,057 bytes
  • examples/guides/deployment/cron_job_examples/crypto_concurrent_cron_example.pyruns13,102 bytes
  • examples/guides/deployment/cron_job_examples/figma_stock_example.pyruns2,436 bytes
  • examples/guides/deployment/cron_job_examples/multi_agent_schedules_cron.pyruns2,244 bytes
  • examples/guides/deployment/cron_job_examples/non_blocking_cron.pyruns2,145 bytes
  • examples/guides/deployment/cron_job_examples/one_agent_many_tasks_cron.pyruns1,124 bytes
  • examples/guides/deployment/cron_job_examples/resilient_cron.pyruns2,993 bytes
  • examples/guides/deployment/cron_job_examples/simple_callback_example.pyruns2,232 bytes
  • examples/guides/deployment/cron_job_examples/simple_concurrent_crypto_cron.pyruns5,148 bytes
  • examples/guides/deployment/cron_job_examples/single_agent_cron.pyruns1,009 bytes
  • examples/guides/deployment/cron_job_examples/solana_price_tracker.pyruns9,055 bytes
  • examples/guides/deployment/fastapi/README.mddoc2,971 bytes
  • examples/guides/deployment/fastapi/fastapi_agent_api_example.pyruns10,525 bytes
  • examples/guides/deployment/fastapi/requirements.txtdoc391 bytes
  • examples/guides/fairy_swarm/fairy_swarm.pyruns65,517 bytes
  • examples/guides/fairy_swarm/fairy_swarm_examples/README.mddoc1,120 bytes
  • examples/guides/fairy_swarm/fairy_swarm_examples/analytical_research.pyruns628 bytes
  • examples/guides/fairy_swarm/fairy_swarm_examples/basic_fairy_swarm.pyruns710 bytes
  • examples/guides/fairy_swarm/fairy_swarm_examples/custom_fairy.pyruns1,601 bytes
  • examples/guides/fairy_swarm/fairy_swarm_examples/custom_tools.pyruns1,453 bytes
  • examples/guides/fairy_swarm/fairy_swarm_examples/multi_page_wireframe.pyruns654 bytes
  • examples/guides/fairy_swarm/fairy_swarm_examples/selected_fairies.pyruns628 bytes
  • examples/guides/fairy_swarm/fairy_swarm_examples/standalone_tools.pyruns949 bytes
  • examples/guides/generation_length_blog/README.mddoc543 bytes
  • examples/guides/generation_length_blog/longform_generator.pyruns9,045 bytes
  • examples/guides/generation_length_blog/universal_api.pyruns1,207 bytes
  • examples/guides/geo_guesser_agent/README.mddoc991 bytes
  • examples/guides/geo_guesser_agent/geo_guesser_agent.pyruns885 bytes
  • examples/guides/geo_guesser_agent/miami.jpgasset154,531 bytes
  • examples/guides/graphworkflow_guide/GETTING_STARTED.mddoc6,719 bytes
  • examples/guides/graphworkflow_guide/README.mddoc9,520 bytes
  • examples/guides/graphworkflow_guide/comprehensive_demo.pyruns27,903 bytes
  • examples/guides/graphworkflow_guide/graph_workflow_technical_guide.mddoc37,753 bytes
  • examples/guides/graphworkflow_guide/quick_start_guide.pyruns14,747 bytes
  • examples/guides/hackathon_judge_agent/README.mddoc484 bytes
  • examples/guides/hackathon_judge_agent/hackathon_judger_agent.pyruns4,473 bytes
  • examples/guides/hackathon_judge_agent/projects.csvasset16,658 bytes
  • examples/guides/hackathons/README.mddoc929 bytes
  • examples/guides/hackathons/hackathon_sep_27/api_client.pyruns224 bytes
  • examples/guides/hackathons/hackathon_sep_27/diet_coach_agent.pyruns6,290 bytes
  • examples/guides/hackathons/hackathon_sep_27/nutritional_content_analysis_swarm.pyruns8,176 bytes
  • examples/guides/hackathons/hackathon_sep_27/nutritonal_content_analysis_swarm.shruns6,962 bytes
  • examples/guides/hackathons/hackathon_sep_27/pizza.jpgasset3,213,540 bytes
  • examples/guides/hiearchical_marketing_team.pyruns17,781 bytes
  • examples/guides/mem0/mem0_and_swarms.pyruns18,061 bytes
  • examples/guides/nano_banana_jarvis_agent/README.mddoc735 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/06cf227e-c233-4534-b450-14f9cee49c25.pngasset2,402,054 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/11440145-4b76-4f4a-8e3d-78963a2e4fd4.pngasset2,342,831 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/1c76d016-00e7-404b-b6f9-2e019e7f6ba1.pngasset2,322,913 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/1c80f356-709b-4860-bf8d-82ff896c0a23.pngasset2,340,642 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/2bd5f354-9466-4903-84f9-ebc9779ed0cd.pngasset2,323,237 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/3703ae44-5976-47e7-984d-4a17f6fe7924.pngasset2,484,332 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/39ffbfcc-856f-4ad3-b89b-66a0e3d92f1b.pngasset2,128,470 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/3a449068-fd60-40ac-a224-46748db6b961.pngasset2,345,909 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/3cd19628-d789-4216-ad0c-fc946d5e28a9.pngasset2,552,244 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/452da8e3-93f2-4210-a49d-6e6dd83fdff5.pngasset2,073,029 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/507a50ca-cae9-4ec0-b107-c126a35ebad1.pngasset2,358,351 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/71220613-f581-443b-a9c0-9afa66d15aad.pngasset2,070,746 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/7b99dd3e-e6a7-4f30-9c30-af71f57e9bae.pngasset2,404,837 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/b61104dd-b3ba-42da-adab-f3acb2102562.pngasset2,349,585 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/c19802f5-b1bd-4ef7-9d23-8432f1fd1394.pngasset3,180 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/c4249581-6c78-46d4-b7a1-385095eadf46.pngasset2,499,256 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/c9ba5268-cd08-4308-8341-d9de9a5b72a6.pngasset2,478,695 bytes
  • examples/guides/nano_banana_jarvis_agent/annotated_images/e75a287c-66ad-4b1f-89ba-313b8fe88e94.jpgasset142 bytes
  • examples/guides/nano_banana_jarvis_agent/building.jpgasset94,650 bytes
  • examples/guides/nano_banana_jarvis_agent/hk.jpgasset84,500 bytes
  • examples/guides/nano_banana_jarvis_agent/image.jpgasset71,319 bytes
  • examples/guides/nano_banana_jarvis_agent/img_gen_nano_banana.pyruns853 bytes
  • examples/guides/nano_banana_jarvis_agent/jarvis_agent.pyruns711 bytes
  • examples/guides/nano_banana_jarvis_agent/miami.jpgasset154,531 bytes
  • examples/guides/smart_database/README.mddoc8,630 bytes
  • examples/guides/voice_agents/voice_agents_examples/README.mddoc2,057 bytes
  • examples/guides/voice_agents/voice_agents_examples/agent_speech.pyruns601 bytes
  • examples/guides/voice_agents/voice_agents_examples/agent_with_speech.pyruns795 bytes
  • examples/guides/voice_agents/voice_agents_examples/debate_with_speech.pyruns5,237 bytes
  • examples/guides/voice_agents/voice_agents_examples/google_calendar_agent.pyruns14,049 bytes
  • examples/guides/voice_agents/voice_agents_examples/hiearchical_speech_swarm.pyruns3,122 bytes
  • examples/guides/voice_agents/voice_agents_examples/run_auto_agent_with_speech.pyruns1,024 bytes
  • examples/guides/web_scraper_agents/README.mddoc565 bytes
  • examples/guides/web_scraper_agents/batched_scraper_agent.pyruns920 bytes
  • examples/guides/web_scraper_agents/web_scraper_agent.pyruns599 bytes
  • examples/guides/workshops/README.mddoc827 bytes
  • examples/guides/workshops/workshop_sep_20/agent_tools_dict_example.pyruns399 bytes
  • examples/guides/workshops/workshop_sep_20/batched_grid_simple_example.pyruns1,253 bytes
  • examples/guides/workshops/workshop_sep_20/geo_guesser_agent.pyruns889 bytes
  • examples/guides/workshops/workshop_sep_20/hk.jpgasset84,500 bytes
  • examples/guides/workshops/workshop_sep_20/jarvis_agent.pyruns780 bytes
  • examples/guides/workshops/workshop_sep_20/miami.jpgasset154,531 bytes
  • examples/guides/workshops/workshop_sep_20/mountains.jpgasset1,243,046 bytes
  • examples/guides/x402_examples/README.mddoc2,823 bytes
  • examples/guides/x402_examples/agent_integration/x402_agent_buying.pyruns1,604 bytes
  • examples/guides/x402_examples/agent_integration/x402_discovery_query.pyruns7,343 bytes
  • examples/guides/x402_examples/env.exampleasset505 bytes
  • examples/guides/x402_examples/memecoin_agent_x402.pyruns8,319 bytes
  • examples/guides/x402_examples/research_agent_x402_example.pyruns2,179 bytes
  • examples/mcp/README.mddoc1,912 bytes
  • examples/mcp/agents/01_deepwiki_repo_qa.pyruns1,900 bytes
  • examples/mcp/agents/02_gitmcp_repo_docs.pyruns1,317 bytes
  • examples/mcp/agents/03_microsoft_learn_docs.pyruns1,202 bytes
  • examples/mcp/agents/04_multi_server_agent.pyruns1,454 bytes
  • examples/mcp/agents/05_exa_web_search.pyruns2,451 bytes
  • examples/mcp/agents/07_huggingface_model_search.pyruns2,524 bytes
  • examples/mcp/agents/10_firecrawl_web_scraping.pyruns2,823 bytes
  • examples/mcp/agents/12_semgrep_security_scan.pyruns3,399 bytes
  • examples/mcp/agents/13_mcp_sequential_workflow.pyruns4,401 bytes
  • examples/mcp/agents/FREE_MCP_SERVERS.mddoc6,727 bytes
  • examples/mcp/agents/README.mddoc2,792 bytes
  • examples/mcp/agents/autonomous_agent_dynamic_tools.pyruns2,211 bytes
  • examples/mcp/agents/deepwiki_minimal.pyruns2,241 bytes
  • examples/mcp/agents/finance_agent_mcp.pyruns693 bytes
  • examples/mcp/agents/mcp_connection_object.pyruns630 bytes
  • examples/mcp/agents/mcp_with_local_tools.pyruns1,384 bytes
  • examples/mcp/agents/multi_mcp_urls.pyruns1,776 bytes
  • examples/mcp/agents/multi_mcp_walkthrough.pyruns5,047 bytes
  • examples/mcp/agents/tools_list_dictionary.pyruns1,884 bytes
  • examples/mcp/client/01_list_tools.pyruns1,385 bytes
  • examples/mcp/client/02_call_tool.pyruns1,097 bytes
  • examples/mcp/client/03_execute_llm_tool_calls.pyruns1,762 bytes
  • examples/mcp/client/04_multi_server.pyruns2,147 bytes
  • examples/mcp/client/05_auth_and_config.pyruns3,084 bytes
  • examples/mcp/client/06_remote_agents.pyruns1,974 bytes
  • examples/mcp/client/README.mddoc2,475 bytes
  • examples/mcp/mcp_deployer/README.mddoc3,675 bytes
  • examples/mcp/mcp_deployer/background_server_and_client_agent.pyruns1,281 bytes
  • examples/mcp/mcp_deployer/custom_auth_per_tenant.pyruns989 bytes
  • examples/mcp/mcp_deployer/env_keys_and_extra_tools.pyruns871 bytes
  • examples/mcp/mcp_deployer/multiple_agents_one_server.pyruns1,425 bytes
  • examples/mcp/mcp_deployer/owner_key_or_tenant_auth.pyruns889 bytes
  • examples/mcp/mcp_deployer/plain_function_json_response.pyruns1,018 bytes
  • examples/mcp/mcp_deployer/sequential_workflow_as_tool.pyruns871 bytes
  • examples/mcp/mcp_deployer/single_agent_api_key.pyruns508 bytes
  • examples/mcp/mcp_deployer/sse_transport.pyruns462 bytes
  • examples/mcp/mcp_deployer/stdio_transport.pyruns373 bytes
  • examples/mcp/mcp_deployer/token_verifier_with_scopes.pyruns1,107 bytes
  • examples/mcp/servers/README.mddoc1,591 bytes
  • examples/mcp/servers/agent_as_tool_server.pyruns989 bytes
  • examples/mcp/servers/crypto_price_server.pyruns3,788 bytes
  • examples/mcp/servers/okx_crypto_server.pyruns3,881 bytes
  • examples/mcp/servers/streamable_http_server.pyruns798 bytes
  • examples/models/README.mddoc3,692 bytes
  • examples/models/anthropic/claude_4.pyruns668 bytes
  • examples/models/anthropic/claude_4_example.pyruns698 bytes
  • examples/models/anthropic/fable_agent.pyruns1,884 bytes
  • examples/models/anthropic/fable_example.pyruns726 bytes
  • examples/models/anthropic/swarms_claude_example.pyruns1,144 bytes
  • examples/models/azure/azure_agent.pyruns1,750 bytes
  • examples/models/azure/azure_agent_api_verison.pyruns1,774 bytes
  • examples/models/azure/azure_model_support.pyruns103 bytes
  • examples/models/cerebras/cerebras_example.pyruns372 bytes
  • examples/models/custom_llm/base_llm.pyruns798 bytes
  • examples/models/deepseek/deepseek_r1.pyruns220 bytes
  • examples/models/deepseek/fast_r1_groq.pyruns256 bytes
  • examples/models/deepseek/groq_deepseek_agent.pyruns256 bytes
  • examples/models/gpt_astra/gpt_astra.pyruns1,464 bytes
  • examples/models/gpt_astra/gpt_astra_usage.pyruns544 bytes
  • examples/models/gpt_astra/swarms_api_mixture_of_agents.pyruns2,758 bytes
  • examples/models/gpt_astra/swarms_api_single_agent.pyruns1,083 bytes
  • examples/models/gpt_oss/gpt_os_agent.pyruns1,170 bytes
  • examples/models/gpt_oss/groq_gpt_oss_models.pyruns1,761 bytes
  • examples/models/gpt_oss/multi_agent_gpt_oss_example.pyruns3,964 bytes
  • examples/models/llama4/litellm_example.pyruns203 bytes
  • examples/models/llama4/llama_4.pyruns1,453 bytes
  • examples/models/llama4/simple_agent.pyruns746 bytes
  • examples/models/lumo/lumo_example.pyruns1,713 bytes
  • examples/models/mistral/mistral_example.pyruns663 bytes
  • examples/models/moonshot/kimi_k3_local.pyruns1,595 bytes
  • examples/models/moonshot/kimi_k3_or.pyruns1,604 bytes
  • examples/models/ollama/kimi_k3_local_agent.pyruns968 bytes
  • examples/models/ollama/simple_example_ollama.pyruns517 bytes
  • examples/models/openai/4o_mini_demo.pyruns7,714 bytes
  • examples/models/openai/5.4_openai.pyruns1,479 bytes
  • examples/models/openai/concurrent_gpt5.pyruns4,392 bytes
  • examples/models/openai/example_o3.pyruns591 bytes
  • examples/models/openai/gpt_5.6_sol.pyruns655 bytes
  • examples/models/openai/gpt_5_example.pyruns718 bytes
  • examples/models/openai/o3_agent.pyruns479 bytes
  • examples/models/openai/reasoning_duo_batched.pyruns598 bytes
  • examples/models/openai/test_async_litellm.pyruns306 bytes
  • examples/models/openrouter/glm_or.pyruns758 bytes
  • examples/models/openrouter/groupchat_or.pyruns948 bytes
  • examples/models/openrouter/hy3_or.pyruns762 bytes
  • examples/models/openrouter/k3_kimi.pyruns2,331 bytes
  • examples/models/openrouter/k3_kimi_example.pyruns1,137 bytes
  • examples/models/openrouter/kimi_k3_single_agent.pyruns919 bytes
  • examples/models/openrouter/minimax.pyruns764 bytes
  • examples/models/qwen/qwen_3_base.pyruns2,143 bytes
  • examples/models/vllm/vllm_example.pyruns1,455 bytes
  • examples/models/vllm/vllm_wrapper.pyruns5,046 bytes
  • examples/multi_agent/README.mddoc9,859 bytes
  • examples/multi_agent/advisor_swarm_examples/advisor_swarm_example.pyruns723 bytes
  • examples/multi_agent/agent_grpo_examples/agent_grpo_math_example.pyruns2,642 bytes
  • examples/multi_agent/agent_grpo_examples/agent_grpo_physics_example.pyruns3,353 bytes
  • examples/multi_agent/agent_rearrange_examples/01_fan_out.pyruns2,538 bytes
  • examples/multi_agent/agent_rearrange_examples/02_fan_in.pyruns2,383 bytes
  • examples/multi_agent/agent_rearrange_examples/03_multi_stage.pyruns2,237 bytes
  • examples/multi_agent/agent_rearrange_examples/04_multi_provider_ensemble.pyruns2,623 bytes
  • examples/multi_agent/agent_rearrange_examples/05_new_features_showcase.pyruns1,269 bytes
  • examples/multi_agent/agent_rearrange_examples/README.mddoc542 bytes
  • examples/multi_agent/agent_rearrange_examples/batch_run_concurrent_example.pyruns4,441 bytes
  • examples/multi_agent/agent_rearrange_examples/diamond_flow_real_agents.pyruns3,533 bytes
  • examples/multi_agent/agent_rearrange_examples/nested_swarms_demo.pyruns11,684 bytes
  • examples/multi_agent/agent_rearrange_examples/rearrange_test.pyruns4,095 bytes
  • examples/multi_agent/agent_rearrange_examples/refactor_smoke_example.pyruns1,602 bytes
  • examples/multi_agent/agent_router_examples/README.mddoc471 bytes
  • examples/multi_agent/agent_router_examples/agent_router_example.pyruns1,888 bytes
  • examples/multi_agent/agent_router_examples/refactor_smoke_example.pyruns1,279 bytes
  • examples/multi_agent/aggregate_examples/aggregate_typed_turns_example.pyruns2,110 bytes
  • examples/multi_agent/alternate_debates/README.mddoc3,202 bytes
  • examples/multi_agent/alternate_debates/brainstorming_session.pyruns6,708 bytes
  • examples/multi_agent/alternate_debates/council_meeting.pyruns6,670 bytes
  • examples/multi_agent/alternate_debates/interview_series.pyruns5,338 bytes
  • examples/multi_agent/alternate_debates/mediation_session.pyruns5,846 bytes
  • examples/multi_agent/alternate_debates/mentorship_session.pyruns5,603 bytes
  • examples/multi_agent/alternate_debates/negotiation_session.pyruns6,869 bytes
  • examples/multi_agent/alternate_debates/peer_review_process.pyruns5,201 bytes
  • examples/multi_agent/alternate_debates/trial_simulation.pyruns8,545 bytes
  • examples/multi_agent/asb/README.mddoc854 bytes
  • examples/multi_agent/asb/asb_research.pyruns362 bytes
  • examples/multi_agent/asb/auto_agent.pyruns7,602 bytes
  • examples/multi_agent/asb/auto_swarm_builder_example.pyruns607 bytes
  • examples/multi_agent/asb/auto_swarm_builder_spec_only_example.pyruns286 bytes
  • examples/multi_agent/asb/auto_swarm_builder_test.pyruns660 bytes
  • examples/multi_agent/asb/auto_swarm_router.pyruns3,199 bytes
  • examples/multi_agent/asb/content_creation_asb.pyruns498 bytes
  • examples/multi_agent/auction_swarm_examples/README.mddoc4,124 bytes
  • examples/multi_agent/auction_swarm_examples/basic_auction.pyruns1,702 bytes
  • examples/multi_agent/auction_swarm_examples/batch_auction.pyruns1,700 bytes
  • examples/multi_agent/auction_swarm_examples/custom_scoring_auction.pyruns2,227 bytes
  • examples/multi_agent/auto_agent_builder_examples/README.mddoc5,669 bytes
  • examples/multi_agent/auto_agent_builder_examples/auto_agent_builder_example.pyruns1,395 bytes
  • examples/multi_agent/auto_agent_builder_examples/auto_agent_builder_simple.pyruns475 bytes
  • examples/multi_agent/auto_agent_builder_examples/concurrent_workflow.pyruns732 bytes
  • examples/multi_agent/auto_agent_builder_examples/exact_agent_count.pyruns632 bytes
  • examples/multi_agent/auto_agent_builder_examples/save_and_reuse_roster.pyruns1,476 bytes
  • examples/multi_agent/auto_agent_builder_examples/swarm_router_handoff.pyruns760 bytes
  • examples/multi_agent/batched_grid_workflow/README.mddoc1,913 bytes
  • examples/multi_agent/batched_grid_workflow/batched_grid_advanced_example.pyruns8,774 bytes
  • examples/multi_agent/batched_grid_workflow/batched_grid_simple_example.pyruns1,112 bytes
  • examples/multi_agent/batched_grid_workflow/batched_grid_swarm_router.pyruns1,162 bytes
  • examples/multi_agent/batched_grid_workflow/batched_grid_workflow_example.pyruns6,745 bytes
  • examples/multi_agent/broadcast_examples/README.mddoc1,073 bytes
  • examples/multi_agent/broadcast_examples/broadcast_class_example.pyruns937 bytes
  • examples/multi_agent/broadcast_examples/broadcast_function_example.pyruns912 bytes
  • examples/multi_agent/caching_examples/README.mddoc560 bytes
  • examples/multi_agent/caching_examples/example_multi_agent_caching.pyruns11,501 bytes
  • examples/multi_agent/caching_examples/quick_start_agent_caching.pyruns4,523 bytes
  • examples/multi_agent/concurrent_examples/README.mddoc1,271 bytes
  • examples/multi_agent/concurrent_examples/asi.pyruns926 bytes
  • examples/multi_agent/concurrent_examples/concurrent_example.pyruns2,842 bytes
  • examples/multi_agent/concurrent_examples/concurrent_example_dashboard.pyruns2,040 bytes
  • examples/multi_agent/concurrent_examples/concurrent_mix.pyruns3,491 bytes
  • examples/multi_agent/concurrent_examples/concurrent_swarm_example.pyruns919 bytes
  • examples/multi_agent/concurrent_examples/concurrent_workflow_autosave_example.pyruns1,761 bytes
  • examples/multi_agent/concurrent_examples/concurrent_workflow_random_example.pyruns1,674 bytes
  • examples/multi_agent/concurrent_examples/example_concurrent.pyruns1,663 bytes
  • examples/multi_agent/concurrent_examples/streaming_callback/example_streaming_workflow.pyruns1,670 bytes
  • examples/multi_agent/concurrent_examples/streaming_callback/parallel_search_agents.pyruns2,769 bytes
  • examples/multi_agent/concurrent_examples/streaming_concurrent_workflow.pyruns1,928 bytes
  • examples/multi_agent/council/judges/README.mddoc611 bytes
  • examples/multi_agent/council/judges/council_judge_basic.pyruns665 bytes
  • examples/multi_agent/council/judges/council_judge_complex_example.pyruns4,838 bytes
  • examples/multi_agent/council/judges/council_judge_custom_example.pyruns5,856 bytes
  • examples/multi_agent/council/judges/council_judge_evaluation.pyruns12,705 bytes
  • examples/multi_agent/council/judges/council_judge_example.pyruns1,683 bytes
  • examples/multi_agent/council/judges/council_of_judges_eval.pyruns616 bytes
  • examples/multi_agent/council/llm_council/README.mddoc4,117 bytes
  • examples/multi_agent/council/llm_council/business_strategy_council.pyruns947 bytes
  • examples/multi_agent/council/llm_council/etf_stock_analysis_council.pyruns824 bytes
  • examples/multi_agent/council/llm_council/finance_analysis_council.pyruns797 bytes
  • examples/multi_agent/council/llm_council/legal_analysis_council.pyruns963 bytes
  • examples/multi_agent/council/llm_council/llm_council_example.pyruns294 bytes
  • examples/multi_agent/council/llm_council/marketing_strategy_council.pyruns764 bytes
  • examples/multi_agent/council/llm_council/medical_diagnosis_council.pyruns918 bytes
  • examples/multi_agent/council/llm_council/medical_treatment_council.pyruns918 bytes
  • examples/multi_agent/council/llm_council/research_analysis_council.pyruns1,069 bytes
  • examples/multi_agent/council/llm_council/technology_assessment_council.pyruns1,002 bytes
  • examples/multi_agent/debate_examples/README.mddoc2,879 bytes
  • examples/multi_agent/debate_examples/business_strategy_debate_example.pyruns3,503 bytes
  • examples/multi_agent/debate_examples/debate_with_judge_example.pyruns373 bytes
  • examples/multi_agent/debate_examples/policy_debate_example.pyruns3,173 bytes
  • examples/multi_agent/debate_examples/technical_architecture_debate_example.pyruns2,524 bytes
  • examples/multi_agent/election_swarm_examples/README.mddoc617 bytes
  • examples/multi_agent/election_swarm_examples/apple_board_election_example.pyruns12,219 bytes
  • examples/multi_agent/election_swarm_examples/election_example.pyruns0 bytes
  • examples/multi_agent/exec_utilities/README.mddoc561 bytes
  • examples/multi_agent/forest_swarm_examples/README.mddoc856 bytes
  • examples/multi_agent/forest_swarm_examples/forest_swarm_example.pyruns10,983 bytes
  • examples/multi_agent/forest_swarm_examples/fund_manager_forest.pyruns6,450 bytes
  • examples/multi_agent/forest_swarm_examples/medical_forest_swarm.pyruns6,876 bytes
  • examples/multi_agent/forest_swarm_examples/tree_example.pyruns1,238 bytes
  • examples/multi_agent/forest_swarm_examples/tree_swarm_test.pyruns1,127 bytes
  • examples/multi_agent/graphworkflow_examples/README.mddoc984 bytes
  • examples/multi_agent/graphworkflow_examples/advanced_graph_workflow.pyruns13,611 bytes
  • examples/multi_agent/graphworkflow_examples/example_images/Graph-Workflow-01_visualization_ddbd7109-c7b1-40f6-83f0-f90771c3beac.pngasset11,258 bytes
  • examples/multi_agent/graphworkflow_examples/example_images/graph_workflow_example.pngasset11,258 bytes
  • examples/multi_agent/graphworkflow_examples/example_images/test_graphviz_visualization.pngasset37,255 bytes
  • examples/multi_agent/graphworkflow_examples/graph/graph_workflow_basic.pyruns1,397 bytes
  • examples/multi_agent/graphworkflow_examples/graph/graph_workflow_example.pyruns1,125 bytes
  • examples/multi_agent/graphworkflow_examples/graph_workflow_basic.pyruns1,195 bytes
  • examples/multi_agent/graphworkflow_examples/graph_workflow_basic_new.pyruns1,251 bytes
  • examples/multi_agent/graphworkflow_examples/graph_workflow_checkpointing.pyruns4,895 bytes
  • examples/multi_agent/graphworkflow_examples/graph_workflow_composition.pyruns4,374 bytes
  • examples/multi_agent/graphworkflow_examples/graph_workflow_example.pyruns1,460 bytes
  • examples/multi_agent/graphworkflow_examples/graph_workflow_fanout_fanin.pyruns1,780 bytes
  • examples/multi_agent/graphworkflow_examples/graph_workflow_serialization.pyruns3,938 bytes
  • examples/multi_agent/graphworkflow_examples/graph_workflow_streaming.pyruns3,962 bytes
  • examples/multi_agent/graphworkflow_examples/graph_workflow_validate.pyruns4,258 bytes
  • examples/multi_agent/graphworkflow_examples/graph_workflow_validation.pyruns2,052 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/01_basic_usage.pyruns1,278 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/02_backend_comparison.pyruns1,301 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/03_fan_out_fan_in_patterns.pyruns1,776 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/04_complex_workflow.pyruns2,435 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/05_performance_benchmark.pyruns2,531 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/06_error_handling.pyruns1,273 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/07_large_scale_workflow.pyruns1,430 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/08_parallel_chain_example.pyruns1,809 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/09_workflow_validation.pyruns2,013 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/10_real_world_scenario.pyruns3,121 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/Fan-Out-Fan-In-Workflow_visualization_1329d9aa-4cba-4eb5-a42c-5e4ccd165e4d.pngasset28,198 bytes
  • examples/multi_agent/graphworkflow_examples/rustworkx_examples/README.mddoc4,237 bytes
  • examples/multi_agent/graphworkflow_examples/test_parallel_processing_example.pyruns17,360 bytes
  • examples/multi_agent/groupchat/README.mddoc1,686 bytes
  • examples/multi_agent/groupchat/dynamic_groupchat_example.pyruns1,088 bytes
  • examples/multi_agent/groupchat/dynamic_groupchat_example_simple.pyruns965 bytes
  • examples/multi_agent/groupchat/enhanced_collaboration_example.pyruns6,547 bytes
  • examples/multi_agent/groupchat/groupchat_examples/crypto_tax.pyruns1,703 bytes
  • examples/multi_agent/groupchat/groupchat_examples/crypto_tax_swarm.pyruns4,116 bytes
  • examples/multi_agent/groupchat/groupchat_examples/group_chat_example.pyruns1,446 bytes
  • examples/multi_agent/groupchat/groupchat_examples/groupchat_example.pyruns1,836 bytes
  • examples/multi_agent/groupchat/groupchat_examples/mortgage_tax_panel_example.pyruns5,732 bytes
  • examples/multi_agent/groupchat/kimi_k3_groupchat.pyruns1,611 bytes
  • examples/multi_agent/groupchat/medical_panel_example.pyruns6,072 bytes
  • examples/multi_agent/groupchat/philosopher_groupchat.pyruns3,369 bytes
  • examples/multi_agent/groupchat/quantum_physics_swarm.pyruns8,584 bytes
  • examples/multi_agent/groupchat/simple_groupchat_reshoring_swarm.pyruns3,869 bytes
  • examples/multi_agent/groupchat/stream_example.pyruns498 bytes
  • examples/multi_agent/groupchat/test_groupchat_feat.pyruns801 bytes
  • examples/multi_agent/heavy_swarm_examples/README.mddoc850 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm.pyruns742 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_16_agents.pyruns787 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_4_agents.pyruns801 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_example.pyruns807 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_example_one.pyruns632 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_example_research.pyruns414 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_example_research_swarm.pyruns381 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_basic.pyruns736 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_heavy.pyruns540 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_medical.pyruns858 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_no_dashboard.pyruns506 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_question_preview.pyruns865 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_router.pyruns650 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_no_dashboard.pyruns739 bytes
  • examples/multi_agent/heavy_swarm_examples/heavy_swarm_with_image.pyruns995 bytes
  • examples/multi_agent/heavy_swarm_examples/medical_heavy_swarm_example.pyruns1,501 bytes
  • examples/multi_agent/heavy_swarm_examples/revenue_by_region.pngasset21,436 bytes
  • examples/multi_agent/hierarchical_swarm/README.mddoc1,815 bytes
  • examples/multi_agent/hierarchical_swarm/display_hierarchy_example.pyruns1,290 bytes
  • examples/multi_agent/hierarchical_swarm/example_hierarchical.pyruns1,902 bytes
  • examples/multi_agent/hierarchical_swarm/hiearchical_examples/advanced_hierarchical_swarm_examples.pyruns17,118 bytes
  • examples/multi_agent/hierarchical_swarm/hiearchical_examples/hiearchical_swarm_test.pyruns12,014 bytes
  • examples/multi_agent/hierarchical_swarm/hiearchical_examples/hierarchical_swarm_example.pyruns6,787 bytes
  • examples/multi_agent/hierarchical_swarm/hiearchical_swarm_example.pyruns1,310 bytes
  • examples/multi_agent/hierarchical_swarm/hiearchical_swarm_new_features_example.pyruns1,203 bytes
  • examples/multi_agent/hierarchical_swarm/hiearchical_swarm_ui/debug_dashboard.pyruns1,718 bytes
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_autosave_example.pyruns1,281 bytes
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_basic_demo.pyruns1,399 bytes
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_batch_demo.pyruns2,992 bytes
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_comparison_demo.pyruns3,773 bytes
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_example.pyruns6,102 bytes
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_plan_panel_example.pyruns1,038 bytes
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_streaming_demo.pyruns5,115 bytes
  • examples/multi_agent/hierarchical_swarm/hierarchical_swarm_streaming_example.pyruns9,122 bytes
  • examples/multi_agent/hierarchical_swarm/hs_interactive.pyruns628 bytes
  • examples/multi_agent/hierarchical_swarm/hs_stock_team.pyruns10,548 bytes
  • examples/multi_agent/hierarchical_swarm/hybrid_hiearchical_swarm.pyruns3,762 bytes
  • examples/multi_agent/hierarchical_swarm/sector_analysis_hiearchical_swarm.pyruns2,215 bytes
  • examples/multi_agent/hierarchical_swarm/simple_hierarchical_swarm_recovery.pyruns1,876 bytes
  • examples/multi_agent/ma_blocks_examples/find_agent_by_name_example.pyruns1,290 bytes
  • examples/multi_agent/majority_voting/README.mddoc697 bytes
  • examples/multi_agent/majority_voting/_doda_majority_voting_example_new.pyruns7,162 bytes
  • examples/multi_agent/majority_voting/majority_voting_example.pyruns1,107 bytes
  • examples/multi_agent/majority_voting/majority_voting_example_new.pyruns6,469 bytes
  • examples/multi_agent/majority_voting/snake_game_code_voting.pyruns5,148 bytes
  • examples/multi_agent/mar/README.mddoc895 bytes
  • examples/multi_agent/mar/model_router_example.pyruns279 bytes
  • examples/multi_agent/mar/multi_agent_router_example.pyruns1,448 bytes
  • examples/multi_agent/mar/multi_agent_router_minimal.pyruns605 bytes
  • examples/multi_agent/mar/multi_agent_router_specialist_routing.pyruns2,452 bytes
  • examples/multi_agent/mar/refactor_smoke_example.pyruns1,315 bytes
  • examples/multi_agent/moa_examples/README.mddoc556 bytes
  • examples/multi_agent/moa_examples/mixture_of_agents_example.pyruns2,269 bytes
  • examples/multi_agent/moa_examples/test_moa_new.pyruns1,623 bytes
  • examples/multi_agent/one_to_one_examples/README.mddoc1,120 bytes
  • examples/multi_agent/one_to_one_examples/one_to_one_class_example.pyruns751 bytes
  • examples/multi_agent/one_to_one_examples/one_to_one_function_example.pyruns626 bytes
  • examples/multi_agent/one_to_three_examples/README.mddoc1,122 bytes
  • examples/multi_agent/one_to_three_examples/one_to_three_class_example.pyruns979 bytes
  • examples/multi_agent/one_to_three_examples/one_to_three_function_example.pyruns784 bytes
  • examples/multi_agent/orchestration_examples/README.mddoc1,541 bytes
  • examples/multi_agent/orchestration_examples/ai_ethics_debate.pyruns2,811 bytes
  • examples/multi_agent/orchestration_examples/cybersecurity_incident_negotiation.pyruns4,180 bytes
  • examples/multi_agent/orchestration_examples/healthcare_panel_discussion.pyruns2,799 bytes
  • examples/multi_agent/orchestration_examples/insurance_claim_review.pyruns3,252 bytes
  • examples/multi_agent/orchestration_examples/investment_council_meeting.pyruns3,768 bytes
  • examples/multi_agent/orchestration_examples/medical_malpractice_trial.pyruns3,924 bytes
  • examples/multi_agent/orchestration_examples/merger_mediation_session.pyruns4,318 bytes
  • examples/multi_agent/orchestration_examples/nvidia_amd_executive_negotiation.pyruns7,559 bytes
  • examples/multi_agent/orchestration_examples/pharma_research_brainstorm.pyruns3,878 bytes
  • examples/multi_agent/orchestration_examples/philosophy_discussion_example.pyruns2,145 bytes
  • examples/multi_agent/orchestration_examples/startup_mentorship_program.pyruns2,714 bytes
  • examples/multi_agent/paper_implementations/README.mddoc435 bytes
  • examples/multi_agent/paper_implementations/long_agent.pyruns15,041 bytes
  • examples/multi_agent/phased_fan_out_workflow/bug_hunt.pyruns834 bytes
  • examples/multi_agent/phased_fan_out_workflow/contract_review.pyruns2,141 bytes
  • examples/multi_agent/planner_generator_evaluator/pge_example.pyruns1,040 bytes
  • examples/multi_agent/planner_generator_evaluator/pge_with_tools_example.pyruns2,561 bytes
  • examples/multi_agent/planner_worker_swarm/planner_worker_swarm_example.pyruns2,532 bytes
  • examples/multi_agent/round_robin_examples/engineering_design_review.pyruns2,733 bytes
  • examples/multi_agent/round_robin_examples/investment_committee_etf.pyruns2,519 bytes
  • examples/multi_agent/round_robin_examples/medical_treatment_review.pyruns2,318 bytes
  • examples/multi_agent/round_robin_examples/round_robin_example.pyruns1,688 bytes
  • examples/multi_agent/sequential_workflow/README.mddoc1,118 bytes
  • examples/multi_agent/sequential_workflow/drift_detection_commodities.pyruns2,561 bytes
  • examples/multi_agent/sequential_workflow/example_sequential.pyruns1,707 bytes
  • examples/multi_agent/sequential_workflow/research_analyse_write.pyruns1,289 bytes
  • examples/multi_agent/sequential_workflow/sequential_streaming_simple.pyruns908 bytes
  • examples/multi_agent/sequential_workflow/sequential_wofkflow.pyruns735 bytes
  • examples/multi_agent/sequential_workflow/sequential_worflow_test.pyruns2,594 bytes
  • examples/multi_agent/sequential_workflow/sequential_workflow.pyruns4,377 bytes
  • examples/multi_agent/sequential_workflow/sequential_workflow_autosave_example.pyruns1,782 bytes
  • examples/multi_agent/sequential_workflow/sequential_workflow_drift_detection.pyruns1,672 bytes
  • examples/multi_agent/sequential_workflow/sequential_workflow_example.pyruns1,724 bytes
  • examples/multi_agent/sequential_workflow/sequential_workflow_streaming.pyruns3,712 bytes
  • examples/multi_agent/sequential_workflow/sonnet_4_5_sequential.pyruns889 bytes
  • examples/multi_agent/simulations/agent_map/agent_map_simulation.pyruns58,602 bytes
  • examples/multi_agent/simulations/agent_map/hospital_simulation_demo.pyruns3,024 bytes
  • examples/multi_agent/simulations/agent_map/v0/README_simulation.mddoc9,014 bytes
  • examples/multi_agent/simulations/agent_map/v0/demo_simulation.pyruns10,763 bytes
  • examples/multi_agent/simulations/agent_map/v0/example_usage.pyruns2,351 bytes
  • examples/multi_agent/simulations/agent_map/v0/simple_hospital_demo.pyruns7,207 bytes
  • examples/multi_agent/simulations/agent_map/v0/test_group_conversations.pyruns6,298 bytes
  • examples/multi_agent/simulations/euroswarm_parliament/README.mddoc13,407 bytes
  • examples/multi_agent/simulations/euroswarm_parliament/__init__.pyruns1,812 bytes
  • examples/multi_agent/simulations/euroswarm_parliament/euroswarm_parliament_example.pyruns1,813 bytes
  • examples/multi_agent/simulations/euroswarm_parliament/wikipedia_personality_scraper.pyruns22,104 bytes
  • examples/multi_agent/simulations/example_bell_labs.pyruns1,061 bytes
  • examples/multi_agent/simulations/map_generation/game_map.pyruns21,759 bytes
  • examples/multi_agent/simulations/map_generation/map.pngasset965,560 bytes
  • examples/multi_agent/simulations/map_generation/map_two.pngasset1,095,093 bytes
  • examples/multi_agent/skill_orchestra_examples/skill_orchestra.pyruns31,999 bytes
  • examples/multi_agent/skill_orchestra_examples/skill_orchestra_example.pyruns2,520 bytes
  • examples/multi_agent/social_algorithms_examples/README.mddoc1,773 bytes
  • examples/multi_agent/social_algorithms_examples/adaptive_workflow_algorithm_example.pyruns18,982 bytes
  • examples/multi_agent/social_algorithms_examples/auction_market_algorithm_example.pyruns7,142 bytes
  • examples/multi_agent/social_algorithms_examples/collaborative_brainstorming_example.pyruns2,975 bytes
  • examples/multi_agent/social_algorithms_examples/competitive_evaluation_example.pyruns2,592 bytes
  • examples/multi_agent/social_algorithms_examples/consensus_building_algorithm_example.pyruns11,532 bytes
  • examples/multi_agent/social_algorithms_examples/hierarchical_decision_making_example.pyruns2,841 bytes
  • examples/multi_agent/social_algorithms_examples/iterative_refinement_algorithm_example.pyruns10,271 bytes
  • examples/multi_agent/social_algorithms_examples/multi_stage_pipeline_algorithm_example.pyruns13,748 bytes
  • examples/multi_agent/social_algorithms_examples/negotiation_algorithm_example.pyruns13,952 bytes
  • examples/multi_agent/social_algorithms_examples/peer_review_example.pyruns2,537 bytes
  • examples/multi_agent/social_algorithms_examples/refactor_smoke_example.pyruns1,825 bytes
  • examples/multi_agent/social_algorithms_examples/research_analysis_synthesis_example.pyruns2,541 bytes
  • examples/multi_agent/social_algorithms_examples/social_algorithms_example.pyruns3,456 bytes
  • examples/multi_agent/social_algorithms_examples/swarm_intelligence_algorithm_example.pyruns14,470 bytes
  • examples/multi_agent/spreadsheet_examples/README.mddoc1,579 bytes
  • examples/multi_agent/spreadsheet_examples/agent_config_example.csvasset992 bytes
  • examples/multi_agent/spreadsheet_examples/crypto_tax_swarm/crypto_tax_spreadsheet.pyruns885 bytes
  • examples/multi_agent/spreadsheet_examples/crypto_tax_swarm/crypto_tax_swarm_spreadsheet.csvasset2,277 bytes
  • examples/multi_agent/spreadsheet_examples/financial_analysis/swarm.csvasset2,237 bytes
  • examples/multi_agent/spreadsheet_examples/financial_analysis/swarm_csv.pyruns857 bytes
  • examples/multi_agent/spreadsheet_examples/spreadsheet_example.pyruns1,363 bytes
  • examples/multi_agent/spreadsheet_examples/spreadsheet_swarm_run_id_02575aa12829486c91967c24b927100b.csvasset8,332 bytes
  • examples/multi_agent/spreadsheet_examples/spreadsheet_swarm_run_id_69f4c23f5a97477ab2b8114521c33fd4.csvasset11,803 bytes
  • examples/multi_agent/spreadsheet_examples/spreadsheet_swarm_run_id_b93a2946b074493f8fa34a47377b2625.csvasset11,379 bytes
  • examples/multi_agent/spreadsheet_examples/spreadsheet_swarm_usage.pyruns5,016 bytes
  • examples/multi_agent/spreadsheet_examples/swarm_outputs/Spreedsheet-Swarm-Financial-Analysis-Swarm/Financial-Analysis-Swarm/spreedsheet-swarm-69f4c23f5a97477ab2b8114521c33fd4-metadata.jsonasset12,515 bytes
  • examples/multi_agent/spreadsheet_examples/swarm_outputs/Spreedsheet-Swarm-Financial-Analysis-Swarm/Financial-Analysis-Swarm/spreedsheet-swarm-b93a2946b074493f8fa34a47377b2625-metadata.jsonasset12,081 bytes
  • examples/multi_agent/swarm_router/README.mddoc1,413 bytes
  • examples/multi_agent/swarm_router/groupchat_swarm_router_example.pyruns1,776 bytes
  • examples/multi_agent/swarm_router/heavy_swarm_router_example.pyruns406 bytes
  • examples/multi_agent/swarm_router/market_analysis_swarm_router_concurrent.pyruns2,149 bytes
  • examples/multi_agent/swarm_router/sr_moa_example.pyruns2,436 bytes
  • examples/multi_agent/swarm_router/swarm_router.pyruns804 bytes
  • examples/multi_agent/swarm_router/swarm_router_benchmark.pyruns7,229 bytes
  • examples/multi_agent/swarm_router/swarm_router_concurrent_example.pyruns757 bytes
  • examples/multi_agent/swarm_router/swarm_router_example.pyruns6,010 bytes
  • examples/multi_agent/swarm_router/swarm_router_fallback_example.pyruns1,705 bytes
  • examples/multi_agent/swarm_router/swarm_router_mv.pyruns1,029 bytes
  • examples/multi_agent/swarm_router/swarm_router_test.pyruns2,391 bytes
  • examples/multi_agent/swarm_router/swarm_router_usage.pyruns3,439 bytes
  • examples/multi_agent/swarms_api_examples/README.mddoc520 bytes
  • examples/multi_agent/swarms_api_examples/hedge_fund_swarm.pyruns3,778 bytes
  • examples/multi_agent/swarms_api_examples/medical_swarm.pyruns5,090 bytes
  • examples/multi_agent/swarms_api_examples/swarms_api_client.pyruns1,535 bytes
  • examples/multi_agent/swarms_api_examples/swarms_api_example.pyruns5,815 bytes
  • examples/multi_agent/swarms_api_examples/tools_examples.pyruns7,912 bytes
  • examples/multi_agent/utils/README.mddoc481 bytes
  • examples/multi_agent/utils/agent_communication_examples.pyruns9,828 bytes
  • examples/multi_agent/utils/aggregate_example.pyruns1,318 bytes
  • examples/multi_agent/utils/batch_agent_example.pyruns2,622 bytes
  • examples/multi_agent/utils/meme_agents/bob_the_agent.pyruns1,876 bytes
  • examples/multi_agent/utils/one_to_one_broadcast_one_to_three.pyruns1,766 bytes
  • examples/multi_agent/utils/test_agent_concurrent.pyruns1,067 bytes
  • examples/multi_agent/utils/unique_swarms_examples.pyruns6,771 bytes
  • examples/reasoning_agents/README.mddoc2,353 bytes
  • examples/reasoning_agents/agent_judge_examples/example1_basic_evaluation.pyruns457 bytes
  • examples/reasoning_agents/agent_judge_examples/example2_technical_evaluation.pyruns733 bytes
  • examples/reasoning_agents/agent_judge_examples/example3_creative_evaluation.pyruns789 bytes
  • examples/reasoning_agents/moa_seq_example.pyruns446 bytes
  • examples/reasoning_agents/reasoning_agent_router_examples/agent_judge_example.pyruns239 bytes
  • examples/reasoning_agents/reasoning_agent_router_examples/gkp_agent_example.pyruns241 bytes
  • examples/reasoning_agents/reasoning_agent_router_examples/ire_example.pyruns249 bytes
  • examples/reasoning_agents/reasoning_agent_router_examples/reasoning_duo_example.pyruns216 bytes
  • examples/reasoning_agents/reasoning_agent_router_examples/reflexion_agent_example.pyruns253 bytes
  • examples/reasoning_agents/reasoning_agent_router_examples/self_consistency_example.pyruns256 bytes
  • examples/reasoning_agents/tree_of_thoughts_examples/README.mddoc3,863 bytes
  • examples/reasoning_agents/tree_of_thoughts_examples/mathematics/calculus_optimization.pyruns1,562 bytes
  • examples/reasoning_agents/tree_of_thoughts_examples/mathematics/irrationality_proof.pyruns1,490 bytes
  • examples/reasoning_agents/tree_of_thoughts_examples/mathematics/number_theory_counting.pyruns1,414 bytes
  • examples/reasoning_agents/tree_of_thoughts_examples/physics/fermi_estimation.pyruns1,600 bytes
  • examples/reasoning_agents/tree_of_thoughts_examples/physics/loop_the_loop.pyruns1,694 bytes
  • examples/reasoning_agents/tree_of_thoughts_examples/physics/projectile_motion.pyruns1,567 bytes
  • examples/reasoning_agents/tree_of_thoughts_examples/reasoning/bridge_and_torch.pyruns1,767 bytes
  • examples/reasoning_agents/tree_of_thoughts_examples/reasoning/constraint_scheduling.pyruns1,799 bytes
  • examples/reasoning_agents/tree_of_thoughts_examples/reasoning/knights_and_knaves.pyruns1,563 bytes
  • examples/single_agent/README.mddoc9,609 bytes
  • examples/single_agent/capabilities/autonomy/autonomous_agents/auto_agent.pyruns384 bytes
  • examples/single_agent/capabilities/autonomy/autonomous_agents/auto_agent_quant_etf.pyruns1,456 bytes
  • examples/single_agent/capabilities/autonomy/autonomous_agents/autonomous_agent.pyruns4,673 bytes
  • examples/single_agent/capabilities/autonomy/autonomous_agents/example_autonomous_looper_run_bash.pyruns1,115 bytes
  • examples/single_agent/capabilities/autonomy/autonomous_agents/marketplace_and_auto_agent.pyruns4,653 bytes
  • examples/single_agent/capabilities/autonomy/autonomous_agents/medical_research_auto_loop.pyruns1,760 bytes
  • examples/single_agent/capabilities/autonomy/autonomous_agents/sub_agent_test.pyruns637 bytes
  • examples/single_agent/capabilities/autonomy/handoffs/autonomous_agent_with_handoffs_example.pyruns7,601 bytes
  • examples/single_agent/capabilities/autonomy/handoffs/duo_agent.pyruns1,480 bytes
  • examples/single_agent/capabilities/autonomy/handoffs/handoff_example.pyruns2,011 bytes
  • examples/single_agent/capabilities/autonomy/handoffs/handoffs_example.pyruns1,873 bytes
  • examples/single_agent/capabilities/messages/messages_example.pyruns1,551 bytes
  • examples/single_agent/capabilities/prompt_caching/1_basic_caching.pyruns1,006 bytes
  • examples/single_agent/capabilities/prompt_caching/2_cache_config_ttl.pyruns890 bytes
  • examples/single_agent/capabilities/prompt_caching/3_cache_config_tools.pyruns1,253 bytes
  • examples/single_agent/capabilities/prompt_caching/4_cache_config_system_only.pyruns958 bytes
  • examples/single_agent/capabilities/prompt_caching/5_cache_config_openai.pyruns1,090 bytes
  • examples/single_agent/capabilities/prompt_caching/6_cache_config_all_options.pyruns1,333 bytes
  • examples/single_agent/capabilities/prompt_caching/cache_config_example.pyruns2,788 bytes
  • examples/single_agent/capabilities/prompt_caching/prompt_caching_example.pyruns3,169 bytes
  • examples/single_agent/capabilities/rag/README.mddoc6,733 bytes
  • examples/single_agent/capabilities/rag/full_agent_rag_example.pyruns10,618 bytes
  • examples/single_agent/capabilities/rag/pinecone_example.pyruns2,097 bytes
  • examples/single_agent/capabilities/rag/qdrant_agent.pyruns5,525 bytes
  • examples/single_agent/capabilities/rag/qdrant_rag_example.pyruns3,160 bytes
  • examples/single_agent/capabilities/rag/simple_example.pyruns6,110 bytes
  • examples/single_agent/capabilities/skills/agent_with_custom_skill.pyruns1,829 bytes
  • examples/single_agent/capabilities/skills/agent_with_dynamic_skills.pyruns1,310 bytes
  • examples/single_agent/capabilities/skills/agent_with_multiple_skills.pyruns1,356 bytes
  • examples/single_agent/capabilities/skills/agent_with_skills.pyruns930 bytes
  • examples/single_agent/capabilities/skills/multiple_skill_dirs/after.pyruns998 bytes
  • examples/single_agent/capabilities/skills/multiple_skill_dirs/before.pyruns1,107 bytes
  • examples/single_agent/capabilities/streaming/agent_stream_token.pyruns186 bytes
  • examples/single_agent/capabilities/streaming/agent_streaming.pyruns3,211 bytes
  • examples/single_agent/capabilities/streaming/auto_loop_streaming_example.pyruns932 bytes
  • examples/single_agent/capabilities/streaming/example_streaming_tools.pyruns3,840 bytes
  • examples/single_agent/capabilities/streaming/streaming_example.pyruns3,894 bytes
  • examples/single_agent/capabilities/tools/README.mddoc2,179 bytes
  • examples/single_agent/capabilities/tools/agent_mcp.pyruns663 bytes
  • examples/single_agent/capabilities/tools/agent_with_exa.pyruns3,990 bytes
  • examples/single_agent/capabilities/tools/exa_search_agent.pyruns237 bytes
  • examples/single_agent/capabilities/tools/example_async_vs_multithread.pyruns1,731 bytes
  • examples/single_agent/capabilities/tools/litellm_tool_example.pyruns1,313 bytes
  • examples/single_agent/capabilities/tools/multi_tool_usage_agent.pyruns12,984 bytes
  • examples/single_agent/capabilities/tools/new_tools_examples.pyruns6,209 bytes
  • examples/single_agent/capabilities/tools/omni_modal_agent.pyruns11,325 bytes
  • examples/single_agent/capabilities/tools/solana_tool/solana_tool.pyruns8,793 bytes
  • examples/single_agent/capabilities/tools/solana_tool/solana_tool_test.pyruns9,250 bytes
  • examples/single_agent/capabilities/tools/structured_outputs/example_meaning_of_life_agents.pyruns6,097 bytes
  • examples/single_agent/capabilities/tools/structured_outputs/structured_outputs_example.pyruns1,719 bytes
  • examples/single_agent/capabilities/tools/swarms_of_browser_agents.pyruns769 bytes
  • examples/single_agent/capabilities/tools/swarms_tools_example.pyruns385 bytes
  • examples/single_agent/capabilities/tools/together_deepseek_agent.pyruns3,153 bytes
  • examples/single_agent/capabilities/tools/tools_examples/dex_screener.pyruns1,034 bytes
  • examples/single_agent/capabilities/tools/tools_examples/financial_news_agent.pyruns948 bytes
  • examples/single_agent/capabilities/tools/tools_examples/simple_tool_example.pyruns503 bytes
  • examples/single_agent/capabilities/tools/tools_examples/swarms_tool_example_simple.pyruns986 bytes
  • examples/single_agent/capabilities/vision/README.mddoc837 bytes
  • examples/single_agent/capabilities/vision/anthropic_vision_test.pyruns765 bytes
  • examples/single_agent/capabilities/vision/base_64_images/image.jpgasset2,383,916 bytes
  • examples/single_agent/capabilities/vision/base_64_images/test_base64_image.pyruns391 bytes
  • examples/single_agent/capabilities/vision/burning_image.jpgasset43,016 bytes
  • examples/single_agent/capabilities/vision/image.jpgasset237,149 bytes
  • examples/single_agent/capabilities/vision/image_batch_example.pyruns716 bytes
  • examples/single_agent/capabilities/vision/image_batch_processor.pyruns8,077 bytes
  • examples/single_agent/capabilities/vision/multimodal_example.pyruns3,495 bytes
  • examples/single_agent/capabilities/vision/multiple_image_processing.pyruns792 bytes
  • examples/single_agent/capabilities/vision/vision_test.pyruns675 bytes
  • examples/single_agent/capabilities/vision/vision_tools.pyruns2,392 bytes
  • examples/single_agent/demos/README.mddoc517 bytes
  • examples/single_agent/demos/insurance_agent.pyruns6,771 bytes
  • examples/single_agent/demos/persistent_legal_agent.pyruns3,273 bytes
  • examples/single_agent/getting_started/interactive.pyruns437 bytes
  • examples/single_agent/getting_started/onboarding/README.mddoc494 bytes
  • examples/single_agent/getting_started/onboarding/agents.yamlasset1,760 bytes
  • examples/single_agent/getting_started/onboarding/onboard-basic.pyruns622 bytes
  • examples/single_agent/getting_started/simple_agent.pyruns387 bytes
  • examples/single_agent/integrations/external_agents/README.mddoc492 bytes
  • examples/single_agent/integrations/marketplace/marketplace_prompt_example.pyruns522 bytes
  • examples/single_agent/integrations/marketplace/medical_agent_add_to_marketplace.pyruns2,839 bytes
  • examples/single_agent/integrations/marketplace/quant_trader_agent.pyruns458 bytes
  • examples/single_agent/integrations/marketplace/zia_agent.pyruns277 bytes
  • examples/single_agent/reasoning/README.mddoc1,327 bytes
  • examples/single_agent/reasoning/agent_judge_evaluation_criteria_example.pyruns3,838 bytes
  • examples/single_agent/reasoning/agent_judge_example.pyruns1,430 bytes
  • examples/single_agent/reasoning/consistency_agent.pyruns404 bytes
  • examples/single_agent/reasoning/consistency_example.pyruns954 bytes
  • examples/single_agent/reasoning/gpk_agent.pyruns524 bytes
  • examples/single_agent/reasoning/iterative_agent.pyruns166 bytes
  • examples/single_agent/reasoning/reasoning_agent_router.pyruns1,025 bytes
  • examples/single_agent/reasoning/reasoning_agent_router_now.pyruns1,040 bytes
  • examples/single_agent/reasoning/reasoning_duo.pyruns5,281 bytes
  • examples/single_agent/reasoning/reasoning_duo_example.pyruns848 bytes
  • examples/single_agent/reasoning/reasoning_duo_test.pyruns1,049 bytes
  • examples/single_agent/utils/README.mddoc1,440 bytes
  • examples/single_agent/utils/agent_usage.pyruns2,938 bytes
  • examples/single_agent/utils/async_agent.pyruns1,247 bytes
  • examples/single_agent/utils/autosaving_examples/autosave_basic_example.pyruns1,225 bytes
  • examples/single_agent/utils/autosaving_examples/autosave_config_access_example.pyruns1,581 bytes
  • examples/single_agent/utils/autosaving_examples/autosave_directory_structure_example.pyruns1,453 bytes
  • examples/single_agent/utils/autosaving_examples/autosave_recovery_example.pyruns1,506 bytes
  • examples/single_agent/utils/custom_agent_base_url.pyruns874 bytes
  • examples/single_agent/utils/dynamic_context_window.pyruns842 bytes
  • examples/single_agent/utils/fallback_test.pyruns598 bytes
  • examples/single_agent/utils/grok_4_agent.pyruns613 bytes
  • examples/single_agent/utils/list_agent_output_types.pyruns170 bytes
  • examples/single_agent/utils/markdown_agent.pyruns173 bytes
  • examples/single_agent/utils/transform_prompts/transforms_agent_example.pyruns1,728 bytes
  • examples/single_agent/utils/transform_prompts/transforms_examples.pyruns17,825 bytes
  • examples/tools/README.mddoc1,801 bytes
  • examples/tools/agent_as_tools.pyruns15,398 bytes
  • examples/tools/base_tool_examples/README.mddoc670 bytes
  • examples/tools/base_tool_examples/base_tool_examples.pyruns1,865 bytes
  • examples/tools/base_tool_examples/conver_funcs_to_schema.pyruns5,633 bytes
  • examples/tools/base_tool_examples/exa_search_deep_research.pyruns123 bytes
  • examples/tools/base_tool_examples/example_usage.pyruns3,195 bytes
  • examples/tools/browser_use/browser_use_as_tool.pyruns2,795 bytes
  • examples/tools/browser_use/browser_use_demo.pyruns1,900 bytes
  • examples/tools/claude/claude_as_a_tool.pyruns7,376 bytes
  • examples/tools/dynamic_tools/dynamic_tool_loading.pyruns2,774 bytes
  • examples/tools/exa_search/exa_search_agent.pyruns260 bytes
  • examples/tools/exa_search/exa_search_agent_quant.pyruns534 bytes
  • examples/tools/exa_search/exa_search_test.pyruns100 bytes
  • examples/tools/firecrawl/firecrawl_agents_example.pyruns942 bytes
  • examples/tools/multi_tool_use/README.mddoc535 bytes
  • examples/tools/multi_tool_use/many_tool_use_demo.pyruns14,766 bytes
  • examples/tools/multi_tool_use/multi_tool_anthropic.pyruns6,184 bytes
  • examples/tools/social_media/social_media_tools.pyruns15,152 bytes
  • examples/tools/stagehand/1_stagehand_wrapper_agent.pyruns8,861 bytes
  • examples/tools/stagehand/2_stagehand_tools_agent.pyruns13,224 bytes
  • examples/tools/stagehand/3_stagehand_mcp_agent.pyruns8,680 bytes
  • examples/tools/stagehand/4_stagehand_multi_agent_workflow.pyruns11,771 bytes
  • examples/tools/stagehand/README.mddoc7,157 bytes
  • examples/tools/stagehand/requirements.txtdoc235 bytes
  • examples/utils/README.mddoc1,834 bytes
  • examples/utils/agent_loader/README.mddoc731 bytes
  • examples/utils/agent_loader/agent_loader_demo.pyruns1,084 bytes
  • examples/utils/agent_loader/claude_code_compatible.pyruns314 bytes
  • examples/utils/agent_loader/finance_advisor.mddoc887 bytes
  • examples/utils/agent_loader/multi_agents_loader_demo.pyruns522 bytes
  • examples/utils/class_to_base_model.pyruns1,972 bytes
  • examples/utils/communication_examples/README.mddoc753 bytes
  • examples/utils/communication_examples/duckdb_agent.pyruns693 bytes
  • examples/utils/communication_examples/pulsar_conversation.pyruns708 bytes
  • examples/utils/communication_examples/redis_conversation.pyruns1,341 bytes
  • examples/utils/communication_examples/sqlite_conversation.pyruns1,001 bytes
  • examples/utils/conversation_cache_examples/conversation_cache_interactive.pyruns1,447 bytes
  • examples/utils/conversation_cache_examples/sequential_cache_test.pyruns4,077 bytes
  • examples/utils/fetch_prompt.pyruns285 bytes
  • examples/utils/litellm_connect_issue.pyruns278 bytes
  • examples/utils/litellm_network_error_handling.pyruns4,490 bytes
  • examples/utils/misc/README.mddoc1,054 bytes
  • examples/utils/misc/agent_map_test.pyruns1,747 bytes
  • examples/utils/misc/conversation_simple.pyruns671 bytes
  • examples/utils/misc/conversation_test.pyruns495 bytes
  • examples/utils/misc/conversation_test_truncate.pyruns4,572 bytes
  • examples/utils/misc/csvagent_example.pyruns1,406 bytes
  • examples/utils/misc/dict_to_table.pyruns1,675 bytes
  • examples/utils/misc/swarm_matcher_example.pyruns609 bytes
  • examples/utils/misc/test_load_conversation.pyruns2,652 bytes
  • examples/utils/misc/visualizer_test.pyruns1,799 bytes
  • examples/utils/skills_load.pyruns298 bytes
  • examples/utils/swarms_api/README.mddoc780 bytes
  • examples/utils/swarms_api/agent_overview.pyruns1,356 bytes
  • examples/utils/swarms_api/batch_example.pyruns1,617 bytes
  • examples/utils/swarms_api/client_example.pyruns455 bytes
  • examples/utils/swarms_api/hospital_team.pyruns4,146 bytes
  • examples/utils/swarms_api/icd_ten_analysis.pyruns2,285 bytes
  • examples/utils/swarms_api/legal_team.pyruns6,532 bytes
  • examples/utils/swarms_api/rate_limits.pyruns245 bytes
  • examples/utils/telemetry/README.mddoc357 bytes
  • images/new_logo.pngasset36,473 bytes
  • images/swarms_logo_svg.svgasset3,309 bytes
  • pyproject.tomlasset3,222 bytes
  • requirements.txtdoc229 bytes
  • scripts/examples.pyruns814 bytes
  • scripts/github_commits.pyruns5,965 bytes
  • scripts/tests/run_all_tests.pyruns3,981 bytes
  • scripts/tests/test_rename_recursive.pyruns3,583 bytes
  • scripts/tests/test_upload_tests_to_issues.pyruns1,667 bytes
  • swarms/__init__.pyruns1,469 bytes
  • swarms/agents/__init__.pyruns1,154 bytes
  • swarms/agents/agent_judge.pyruns15,128 bytes
  • swarms/agents/agent_marketplace_handler.pyruns12,987 bytes
  • swarms/agents/ape_agent.pyruns1,046 bytes
  • swarms/agents/auto_chat_agent.pyruns1,386 bytes
  • swarms/agents/auto_generate_swarm_config.pyruns14,738 bytes
  • swarms/agents/autonomous_loop.pyruns84,210 bytes
  • swarms/agents/consistency_agent.pyruns18,349 bytes
  • swarms/agents/context_compressor.pyruns8,468 bytes
  • swarms/agents/flexion_agent.pyruns17,880 bytes
  • swarms/agents/gkp_agent.pyruns21,212 bytes
  • swarms/agents/heavy_swarm_agents.pyruns7,540 bytes
  • swarms/agents/i_agent.pyruns11,754 bytes
  • swarms/agents/llm_manager.pyruns36,365 bytes
  • swarms/agents/reasoning_agent_router.pyruns11,772 bytes
  • swarms/agents/reasoning_duo.pyruns6,822 bytes
  • swarms/agents/skills_manager.pyruns9,587 bytes
  • swarms/agents/tool_manager.pyruns34,492 bytes
  • swarms/agents/tree_of_thoughts.pyruns42,947 bytes
  • swarms/cli/__init__.pyruns0 bytes
  • swarms/cli/main.pyruns80,520 bytes
  • swarms/cli/models.pyruns8,411 bytes
  • swarms/cli/tips.pyruns11,071 bytes
  • swarms/cli/utils.pyruns15,741 bytes
  • swarms/env.pyruns401 bytes
  • swarms/prompts/__init__.pyruns1,173 bytes
  • swarms/prompts/accountant_swarm_prompts.pyruns11,320 bytes
  • swarms/prompts/advisor_swarm_prompts.pyruns2,200 bytes
  • swarms/prompts/ag_prompt.pyruns2,152 bytes
  • swarms/prompts/aga.pyruns9,129 bytes
  • swarms/prompts/agent_acknowledgement_prompt.pyruns13,522 bytes
  • swarms/prompts/agent_conversation_aggregator.pyruns2,162 bytes
  • swarms/prompts/agent_judge_prompt.pyruns2,235 bytes
  • swarms/prompts/agent_orchestration_prompt.pyruns4,006 bytes
  • swarms/prompts/agent_prompts.pyruns6,886 bytes
  • swarms/prompts/agent_self_builder_prompt.pyruns6,167 bytes
  • swarms/prompts/agent_system_prompts.pyruns8,263 bytes
  • swarms/prompts/ai_research_team.pyruns5,233 bytes
  • swarms/prompts/aot_prompt.pyruns1,148 bytes
  • swarms/prompts/auto_agent_builder_prompt.pyruns8,767 bytes
  • swarms/prompts/autobloggen.pyruns13,981 bytes
  • swarms/prompts/autonomous_agent_prompt.pyruns13,147 bytes
  • swarms/prompts/autoswarm.pyruns5,646 bytes
  • swarms/prompts/code_interpreter.pyruns2,235 bytes
  • swarms/prompts/code_spawner.pyruns4,006 bytes
  • swarms/prompts/collaborative_prompts.pyruns10,250 bytes
  • swarms/prompts/debate_with_judge_prompts.pyruns5,710 bytes
  • swarms/prompts/documentation.pyruns7,157 bytes
  • swarms/prompts/education.pyruns1,767 bytes
  • swarms/prompts/finance_agent_prompt.pyruns4,180 bytes
  • swarms/prompts/finance_agent_sys_prompt.pyruns6,132 bytes
  • swarms/prompts/groupchat_prompt.pyruns5,460 bytes
  • swarms/prompts/growth_agent_prompt.pyruns4,117 bytes
  • swarms/prompts/handoffs_prompt.pyruns2,770 bytes
  • swarms/prompts/heavy_swarm_prompts.pyruns54,793 bytes
  • swarms/prompts/hierarchical_swarm_prompts.pyruns23,088 bytes
  • swarms/prompts/idea2img.pyruns717 bytes
  • swarms/prompts/legal_agent_prompt.pyruns3,347 bytes
  • swarms/prompts/llm_council_prompts.pyruns8,544 bytes
  • swarms/prompts/logistics.pyruns4,785 bytes
  • swarms/prompts/max_loop_prompt.pyruns1,762 bytes
  • swarms/prompts/meta_system_prompt.pyruns3,374 bytes
  • swarms/prompts/moa_prompt.pyruns2,470 bytes
  • swarms/prompts/multi_agent_collab_prompt.pyruns14,061 bytes
  • swarms/prompts/multi_modal_prompts.pyruns3,511 bytes
  • swarms/prompts/multi_modal_visual_prompts.pyruns3,215 bytes
  • swarms/prompts/operations_agent_prompt.pyruns3,454 bytes
  • swarms/prompts/paper_idea_agent.pyruns1,082 bytes
  • swarms/prompts/personal_stylist.pyruns2,149 bytes
  • swarms/prompts/phased_fan_out_workflow_prompts.pyruns9,226 bytes
  • swarms/prompts/planner_generator_evaluator_prompts.pyruns6,847 bytes
  • swarms/prompts/planner_worker_prompts.pyruns3,640 bytes
  • swarms/prompts/product_agent_prompt.pyruns8,333 bytes
  • swarms/prompts/programming.pyruns10,144 bytes
  • swarms/prompts/project_manager.pyruns2,127 bytes
  • swarms/prompts/prompt.pyruns7,836 bytes
  • swarms/prompts/prompt_generator.pyruns4,412 bytes
  • swarms/prompts/prompt_generator_optimizer.pyruns3,625 bytes
  • swarms/prompts/python.pyruns13,215 bytes
  • swarms/prompts/react.pyruns2,960 bytes
  • swarms/prompts/react_base_prompt.pyruns1,928 bytes
  • swarms/prompts/reasoning_prompt.pyruns2,472 bytes
  • swarms/prompts/refiner_agent_prompt.pyruns0 bytes
  • swarms/prompts/reflexion_prompts.pyruns3,902 bytes
  • swarms/prompts/safety_prompt.pyruns2,913 bytes
  • swarms/prompts/sales.pyruns5,126 bytes
  • swarms/prompts/sales_prompts.pyruns5,013 bytes
  • swarms/prompts/security_team.pyruns2,635 bytes
  • swarms/prompts/self_operating_prompt.pyruns3,264 bytes
  • swarms/prompts/sop_generator_agent_prompt.pyruns4,070 bytes
  • swarms/prompts/summaries_prompts.pyruns4,640 bytes
  • swarms/prompts/support_agent_prompt.pyruns3,984 bytes
  • swarms/prompts/swarm_manager_agent.pyruns4,280 bytes
  • swarms/prompts/task_assignment_prompt.pyruns728 bytes
  • swarms/prompts/tests.pyruns4,271 bytes
  • swarms/prompts/tools.pyruns3,702 bytes
  • swarms/prompts/tree_of_thoughts_prompts.pyruns2,765 bytes
  • swarms/prompts/urban_planning.pyruns2,369 bytes
  • swarms/prompts/visual_cot.pyruns3,946 bytes
  • swarms/prompts/worker_prompt.pyruns5,554 bytes
  • swarms/prompts/xray_swarm_prompt.pyruns4,694 bytes
  • swarms/py.typedasset0 bytes
  • swarms/schemas/__init__.pyruns990 bytes
  • swarms/schemas/agent_errors.pyruns977 bytes
  • swarms/schemas/agent_mcp_errors.pyruns149 bytes
  • swarms/schemas/hs_schemas.pyruns4,835 bytes
  • swarms/schemas/mcp_schemas.pyruns6,596 bytes
  • swarms/schemas/planner_worker_schemas.pyruns5,159 bytes
  • swarms/structs/__init__.pyruns5,414 bytes
  • swarms/structs/advisor_swarm.pyruns10,506 bytes
  • swarms/structs/agent.pyruns114,416 bytes
  • swarms/structs/agent_loader.pyruns24,933 bytes
  • swarms/structs/agent_rearrange.pyruns53,249 bytes
  • swarms/structs/agent_registry.pyruns11,229 bytes
  • swarms/structs/agent_roles.pyruns582 bytes
  • swarms/structs/agent_router.pyruns9,245 bytes
  • swarms/structs/agentmail_channel.pyruns6,132 bytes
  • swarms/structs/async_subagent.pyruns7,687 bytes
  • swarms/structs/auction_swarm.pyruns16,827 bytes
  • swarms/structs/auto_agent_builder.pyruns17,929 bytes
  • swarms/structs/auto_swarm_builder.pyruns36,290 bytes
  • swarms/structs/autonomous_loop_utils.pyruns61,918 bytes
  • swarms/structs/batch_agent_execution.pyruns2,901 bytes
  • swarms/structs/batched_grid_workflow.pyruns4,442 bytes
  • swarms/structs/broadcast.pyruns4,025 bytes
  • swarms/structs/check_models.pyruns6,600 bytes
  • swarms/structs/comms_channel.pyruns1,930 bytes
  • swarms/structs/concurrent_workflow.pyruns27,402 bytes
  • swarms/structs/context_utils.pyruns9,841 bytes
  • swarms/structs/conversation.pyruns65,273 bytes
  • swarms/structs/council_as_judge.pyruns20,408 bytes
  • swarms/structs/cron_job.pyruns28,846 bytes
  • swarms/structs/debate_with_judge.pyruns16,437 bytes
  • swarms/structs/decision_model.pyruns25,445 bytes
  • swarms/structs/deep_discussion.pyruns2,264 bytes
  • swarms/structs/dynamic_skills_loader.pyruns8,194 bytes
  • swarms/structs/execution_utils.pyruns5,793 bytes
  • swarms/structs/file_channel.pyruns2,838 bytes
  • swarms/structs/graph_workflow.pyruns142,504 bytes
  • swarms/structs/groupchat.pyruns22,272 bytes
  • swarms/structs/heavy_swarm.pyruns67,228 bytes
  • swarms/structs/hiearchical_swarm.pyruns38,980 bytes
  • swarms/structs/hierarchical_order_parser.pyruns5,168 bytes
  • swarms/structs/http_channel.pyruns2,305 bytes
  • swarms/structs/hybrid_hiearchical_peer_swarm.pyruns8,839 bytes
  • swarms/structs/llm_council.pyruns10,862 bytes
  • swarms/structs/ma_blocks.pyruns5,739 bytes
  • swarms/structs/ma_utils.pyruns6,508 bytes
  • swarms/structs/majority_voting.pyruns15,370 bytes
  • swarms/structs/mcp_deployer.pyruns28,216 bytes
  • swarms/structs/mixture_of_agents.pyruns15,398 bytes
  • swarms/structs/model_router.pyruns13,510 bytes
  • swarms/structs/multi_agent_debates.pyruns6,826 bytes
  • swarms/structs/multi_agent_exec.pyruns19,413 bytes
  • swarms/structs/multi_agent_router.pyruns19,599 bytes
  • swarms/structs/omni_agent_types.pyruns230 bytes
  • swarms/structs/one_to_one.pyruns3,724 bytes
  • swarms/structs/one_to_three.pyruns3,815 bytes
  • swarms/structs/phased_fan_out_workflow.pyruns26,935 bytes
  • swarms/structs/planner_generator_evaluator.pyruns36,176 bytes
  • swarms/structs/planner_worker_swarm.pyruns35,079 bytes
  • swarms/structs/queue_channel.pyruns2,493 bytes
  • swarms/structs/round_robin.pyruns11,778 bytes
  • swarms/structs/safe_loading.pyruns7,800 bytes
  • swarms/structs/self_moa_seq.pyruns13,172 bytes
  • swarms/structs/sequential_workflow.pyruns21,298 bytes
  • swarms/structs/serialization.pyruns5,061 bytes
  • swarms/structs/smtp_channel.pyruns9,614 bytes
  • swarms/structs/social_algorithms.pyruns15,467 bytes
  • swarms/structs/spreadsheet_swarm.pyruns14,865 bytes
  • swarms/structs/sqlite_channel.pyruns5,481 bytes
  • swarms/structs/swarm_id.pyruns158 bytes
  • swarms/structs/swarm_router.pyruns46,539 bytes
  • swarms/structs/swarming_architectures.pyruns8,254 bytes
  • swarms/structs/transforms.pyruns17,044 bytes
  • swarms/structs/tree_swarm.pyruns17,820 bytes
  • swarms/telemetry/__init__.pyruns427 bytes
  • swarms/telemetry/bootup.pyruns1,032 bytes
  • swarms/telemetry/compression.pyruns3,607 bytes
  • swarms/telemetry/main.pyruns2,653 bytes
  • swarms/telemetry/otel.pyruns36,328 bytes
  • swarms/tools/__init__.pyruns1,142 bytes
  • swarms/tools/base_tool.pyruns62,079 bytes
  • swarms/tools/dynamic_tool_loader.pyruns14,320 bytes
  • swarms/tools/handoffs_tool.pyruns6,655 bytes
  • swarms/tools/handoffs_tool_schema.pyruns2,851 bytes
  • swarms/tools/mcp_manager.pyruns55,561 bytes
  • swarms/tools/py_func_to_openai_func_str.pyruns16,652 bytes
  • swarms/tools/pydantic_to_json.pyruns4,599 bytes
  • swarms/tools/tool_parse_exec.pyruns4,042 bytes
  • swarms/tools/tool_registry.pyruns6,189 bytes
  • swarms/tools/tool_type.pyruns177 bytes
  • swarms/tools/tool_utils.pyruns1,795 bytes
  • swarms/utils/__init__.pyruns1,063 bytes
  • swarms/utils/any_to_str.pyruns2,080 bytes
  • swarms/utils/class_to_pydantic.pyruns8,994 bytes
  • swarms/utils/disable_logging.pyruns1,580 bytes
  • swarms/utils/docstring_parser.pyruns3,316 bytes
  • swarms/utils/file_processing.pyruns4,178 bytes
  • swarms/utils/formatter.pyruns34,495 bytes
  • swarms/utils/generate_id.pyruns280 bytes
  • swarms/utils/generate_keys.pyruns997 bytes
  • swarms/utils/get_cpu_cores.pyruns663 bytes
  • swarms/utils/get_reasoning_efforts.pyruns1,008 bytes
  • swarms/utils/heavy_swarm_dashboard.pyruns10,833 bytes
  • swarms/utils/history_output_formatter.pyruns2,570 bytes
  • swarms/utils/image_file_b64.pyruns11,499 bytes
  • swarms/utils/index.pyruns5,080 bytes
  • swarms/utils/litellm_tokenizer.pyruns2,606 bytes
  • swarms/utils/litellm_wrapper.pyruns63,278 bytes
  • swarms/utils/llm_backend.pyruns3,884 bytes
  • swarms/utils/loguru_logger.pyruns5,313 bytes
  • swarms/utils/output_types.pyruns311 bytes
  • swarms/utils/str_to_dict.pyruns874 bytes
  • swarms/utils/workspace_manager.pyruns16,223 bytes
  • swarms/utils/workspace_utils.pyruns1,118 bytes
  • tests/README.mddoc6,426 bytes
  • tests/agents/test_agent_judge.pyruns2,587 bytes
  • tests/agents/test_agent_marketplace_handler.pyruns32,241 bytes
  • tests/agents/test_autonomous_loop.pyruns52,187 bytes
  • tests/agents/test_autoswarm_writer.pyruns28,373 bytes
  • tests/agents/test_consistency_agent.pyruns968 bytes
  • tests/agents/test_context_compressor.pyruns20,637 bytes
  • tests/agents/test_flexion_agent.pyruns1,828 bytes
  • tests/agents/test_gkp_agent.pyruns2,419 bytes
  • tests/agents/test_llm_manager.pyruns35,811 bytes
  • tests/agents/test_reasoning_duo.pyruns3,710 bytes
  • tests/agents/test_skills_manager.pyruns23,060 bytes
  • tests/agents/test_tree_of_thoughts.pyruns14,058 bytes
  • tests/benchmark_graph_workflow.pyruns9,027 bytes
  • tests/prompts/test_agent_system_prompts.pyruns1,020 bytes
  • tests/prompts/test_autonomous_agent_prompt.pyruns903 bytes
  • tests/requirements.txtdoc126 bytes
  • tests/structs/test_advisor_swarm.pyruns893 bytes
  • tests/structs/test_agent.pyruns86,459 bytes
  • tests/structs/test_agent_loader.pyruns26,493 bytes
  • tests/structs/test_agent_rearrange.pyruns54,310 bytes
  • tests/structs/test_agent_registry.pyruns25,563 bytes
  • tests/structs/test_agent_router.pyruns12,398 bytes
  • tests/structs/test_agentmail_channel.pyruns3,703 bytes
  • tests/structs/test_async_subagent.pyruns42,085 bytes
  • tests/structs/test_auction_swarm.pyruns983 bytes
  • tests/structs/test_auto_agent_builder.pyruns1,966 bytes
  • tests/structs/test_auto_swarms_builder.pyruns27,069 bytes
  • tests/structs/test_batch_agent_execution.pyruns4,333 bytes
  • tests/structs/test_batched_grid_workflow.pyruns14,741 bytes
  • tests/structs/test_broadcast.pyruns2,109 bytes
  • tests/structs/test_check_models.pyruns4,396 bytes
  • tests/structs/test_comms_channel.pyruns3,217 bytes
  • tests/structs/test_component_ids.pyruns9,677 bytes
  • tests/structs/test_concurrent_workflow.pyruns20,932 bytes
  • tests/structs/test_conversation.pyruns53,467 bytes
  • tests/structs/test_council_as_judge.pyruns1,689 bytes
  • tests/structs/test_cron_job.pyruns21,294 bytes
  • tests/structs/test_decision_model.pyruns44,672 bytes
  • tests/structs/test_execution_utils.pyruns11,315 bytes
  • tests/structs/test_forest_swarm.pyruns20,531 bytes
  • tests/structs/test_graph_workflow.pyruns57,220 bytes
  • tests/structs/test_groupchat.pyruns18,183 bytes
  • tests/structs/test_heavy_swarm.pyruns36,807 bytes
  • tests/structs/test_hierarchical_order_parser.pyruns6,058 bytes
  • tests/structs/test_hierarchical_swarm.pyruns38,714 bytes
  • tests/structs/test_http_channel.pyruns4,875 bytes
  • tests/structs/test_hybrid_hiearchical_peer_swarm.pyruns1,196 bytes
  • tests/structs/test_i_agent.pyruns3,506 bytes
  • tests/structs/test_llm_council.pyruns10,175 bytes
  • tests/structs/test_majority_voting.pyruns16,102 bytes
  • tests/structs/test_mcp_deployer.pyruns13,409 bytes
  • tests/structs/test_moa.pyruns18,775 bytes
  • tests/structs/test_model_router.pyruns2,307 bytes
  • tests/structs/test_multi_agent_debate.pyruns7,359 bytes
  • tests/structs/test_multi_agent_exec.pyruns1,149 bytes
  • tests/structs/test_multi_agent_router.pyruns17,667 bytes
  • tests/structs/test_one_on_one_debate.pyruns21,037 bytes
  • tests/structs/test_one_to_one.pyruns2,275 bytes
  • tests/structs/test_one_to_three.pyruns1,649 bytes
  • tests/structs/test_phased_fan_out_workflow.pyruns17,314 bytes
  • tests/structs/test_queue_channel.pyruns2,487 bytes
  • tests/structs/test_reasoning_agent_router.pyruns16,065 bytes
  • tests/structs/test_round_robin_swarm.pyruns4,083 bytes
  • tests/structs/test_safe_loading.pyruns2,394 bytes
  • tests/structs/test_self_moa_seq.pyruns24,511 bytes
  • tests/structs/test_sequential_workflow.pyruns24,780 bytes
  • tests/structs/test_smtp_channel.pyruns8,840 bytes
  • tests/structs/test_social_algorithms.pyruns15,140 bytes
  • tests/structs/test_spreadsheet.pyruns30,463 bytes
  • tests/structs/test_sqlite_channel.pyruns5,014 bytes
  • tests/structs/test_swarm_architectures.pyruns3,402 bytes
  • tests/structs/test_swarm_router.pyruns39,412 bytes
  • tests/structs/test_swarming_architectures.pyruns3,943 bytes
  • tests/structs/test_transforms.pyruns2,353 bytes
  • tests/telemetry/test_bootup.pyruns3,277 bytes
  • tests/telemetry/test_compression.pyruns3,947 bytes
  • tests/telemetry/test_telemetry.pyruns136,477 bytes
  • tests/test___init__.pyruns1,995 bytes
  • tests/test_cli.pyruns25,967 bytes
  • tests/test_main_features.pyruns25,619 bytes
  • tests/test_prompt_caching.pyruns14,051 bytes
  • tests/test_streaming_timing.pyruns18,538 bytes
  • tests/tools/mcp_test_server.pyruns2,625 bytes
  • tests/tools/test_base_tool.pyruns10,487 bytes
  • tests/tools/test_dynamic_tool_loader.pyruns40,917 bytes
  • tests/tools/test_mcp_manager.pyruns42,471 bytes
  • tests/tools/test_output_str_fix.pyruns6,693 bytes
  • tests/tools/test_parse_tools.pyruns2,890 bytes
  • tests/utils/test_any_to_str.pyruns4,910 bytes
  • tests/utils/test_docstring_parser.pyruns13,158 bytes
  • tests/utils/test_formatter.pyruns4,328 bytes
  • tests/utils/test_history_output_formatter.pyruns3,062 bytes
  • tests/utils/test_image_file_b64.pyruns318 bytes
  • tests/utils/test_litellm_output_tokens.pyruns4,799 bytes
  • tests/utils/test_litellm_temperature.pyruns1,381 bytes
  • tests/utils/test_litellm_usage.pyruns11,163 bytes
  • tests/utils/test_litellm_wrapper.pyruns20,790 bytes
  • tests/utils/test_llm_backend.pyruns8,314 bytes
  • tests/utils/test_loguru_logger.pyruns9,452 bytes
  • tests/utils/test_ssrf_url_guard.pyruns8,030 bytes
  • tests/utils/test_workspace_manager.pyruns11,580 bytes
Read SKILL.md

# Swarms

Swarms is a multi-agent orchestration framework. Everything is built from one primitive — `Agent` — which multi-agent structures compose. This document is verified against **swarms v14.0.0**.

## Live documentation

This skill can lag the library. When a signature here disagrees with the installed version, check the current docs:

- Docs MCP server, no key: `https://docs.swarms.world/mcp` (`claude mcp add --transport http swarms-docs https://docs.swarms.world/mcp`)
- Marketplace MCP server, Swarms API key for calls: `https://swarms.world/mcp`
- Plain-text docs: [llms.txt](https://docs.swarms.world/llms.txt) (index), [llms-full.txt](https://docs.swarms.world/llms-full.txt) (every page)

## Golden rules
View the complete source on GitHub

Skills included

  • swarms
  • code-review
  • data-visualization
  • financial-analysis
  • commit-messages
  • code-review

Repository facts

License
Apache-2.0
Created
May 11, 2023
Last pushed
Nov 6, 2026
Forks
1,066
Open issues
186
Project activity
Active

Rank over the last 12 weeks

Now #202 · best #156 · down 20 in 30 days

  1. #196 on Oct 29
  2. #197 on Oct 30
  3. #198 from Oct 31 to Nov 2
  4. #202 on Nov 3
  5. #201 on Nov 4
  6. #202 since Nov 5
65 earlier periods
  1. #148 on Aug 2
  2. #152 on Aug 6
  3. #150 on Aug 8
  4. #149 on Aug 9
  5. #153 on Aug 10
  6. #156 on Aug 11
  7. #155 on Aug 12
  8. #157 from Aug 13 to Aug 14
  9. #156 from Aug 15 to Aug 16
  10. #157 on Aug 17
  11. #158 from Aug 18 to Aug 19
  12. #157 from Aug 20 to Aug 21
  13. #159 from Aug 23 to Aug 24
  14. #158 from Aug 25 to Aug 26
  15. #159 on Aug 27
  16. #158 on Aug 28
  17. #159 on Aug 29
  18. #157 on Aug 30
  19. #158 on Aug 31
  20. #161 on Sep 1
  21. #158 on Sep 2
  22. #163 on Sep 3
  23. #162 on Sep 4
  24. #165 on Sep 5
  25. #162 on Sep 6
  26. #164 from Sep 7 to Sep 8
  27. #166 from Sep 9 to Sep 10
  28. #163 on Sep 11
  29. #167 from Sep 12 to Sep 13
  30. #166 on Sep 14
  31. #167 on Sep 15
  32. #166 from Sep 16 to Sep 17
  33. #168 on Sep 18
  34. #167 on Sep 19
  35. #170 on Sep 20
  36. #169 on Sep 21
  37. #170 on Sep 22
  38. #171 on Sep 23
  39. #172 from Sep 24 to Sep 25
  40. #173 on Sep 26
  41. #175 on Sep 27
  42. #176 from Sep 28 to Sep 29
  43. #172 on Sep 30
  44. #178 on Oct 2
  45. #175 from Oct 3 to Oct 4
  46. #180 from Oct 5 to Oct 6
  47. #183 on Oct 7
  48. #182 on Oct 8
  49. #185 on Oct 9
  50. #183 on Oct 10
  51. #186 on Oct 11
  52. #188 on Oct 12
  53. #190 on Oct 13
  54. #189 from Oct 14 to Oct 15
  55. #188 on Oct 16
  56. #190 on Oct 17
  57. #192 on Oct 18
  58. #191 on Oct 19
  59. #190 on Oct 20
  60. #192 on Oct 21
  61. #191 on Oct 22
  62. #190 on Oct 23
  63. #191 on Oct 24
  64. #193 on Oct 25
  65. #195 on Oct 28

Before you install

Network or broad shell

Automated signals, not a guarantee

Checked Nov 5, 2026

Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.

Show 232 notes
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
Show all 3,440 signals by file

.env.example

  • Access to secretsline 4
    [Credential-related source omitted]
  • Access to secretsline 18
    [Credential-related source omitted]
  • Access to secretsline 21
    [Credential-related source omitted]
  • Access to secretsline 24
    [Credential-related source omitted]
  • Access to secretsline 29
    [Credential-related source omitted]
  • Access to secretsline 32
    [Credential-related source omitted]
  • Access to secretsline 35
    [Credential-related source omitted]
  • Access to secretsline 40
    [Credential-related source omitted]
  • Access to secretsline 41
    [Credential-related source omitted]
  • Access to secretsline 42
    [Credential-related source omitted]
  • Access to secretsline 44
    [Credential-related source omitted]
  • Access to secretsline 47
    [Credential-related source omitted]
  • Access to secretsline 58
    [Credential-related source omitted]
  • Access to secretsline 65
    [Credential-related source omitted]

.github/PULL_REQUEST_TEMPLATE.md

  • Network accessline 12
    See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/kyegomez/swarms/blob/master/CONTRIBUTING.md
  • Network accessline 13
    https://github.com/kyegomez/swarms/blob/master/CONTRIBUTING.md
  • Network accessline 29
    See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/kyegomez/swarms

.github/copilot-instructions.md

  • Network accessline 5
    - Read [`AGENTS.md`](../AGENTS.md) for the quickstart and rules, and [`CLAUDE.md`](../CLAUDE.md) for the full guide to `Agent` and every multi-agent structure. - Import from the top level: `from swarms import Agent`. - For current APIs, use
  • Network accessline 6
    - Import from the top level: `from swarms import Agent`. - For current APIs, use the docs MCP server at `https://docs.swarms.world/mcp` or the plain-text docs at https://docs.swarms.world/llms.txt. - Commit and PR titles use `[TYPE][Functio
  • Network accessline 7
    - For current APIs, use the docs MCP server at `https://docs.swarms.world/mcp` or the plain-text docs at https://docs.swarms.world/llms.txt.

.github/dependabot.yml

  • Network accessline 1
    --- # https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
  • Network accessline 2
    # https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates

.github/workflows/dependency-review.yml

  • Network accessline 6
    # packages will be blocked from merging. # # Source repository: https://github.com/actions/dependency-review-action
  • Network accessline 7
    # # Source repository: https://github.com/actions/dependency-review-action # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-re
  • Network accessline 8
    # Source repository: https://github.com/actions/dependency-review-action
  • Network accessline 9
    # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
  • Network accessline 18
    #   contents: write # # https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api
  • Network accessline 19
    # # https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api permissions:
  • Network accessline 20
    # https://docs.github.com/en/enterprise-cloud@latest/code-security/supply-chain-security/understanding-your-software-supply-chain/using-the-dependency-submission-api
  • Network accessline 32
    - name: 'Dependency Review'         uses: actions/dependency-review-action@v4         # Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.
  • Network accessline 33
    uses: actions/dependency-review-action@v4         # Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.         with:
  • Network accessline 34
    # Commonly enabled options, see https://github.com/actions/dependency-review-action#configuration-options for all available options.

.github/workflows/label.yml

  • Network accessline 5
    # To use this workflow, you will need to set up a .github/labeler.yml # file with configuration.  For more information, see: # https://github.com/actions/labeler
  • Network accessline 7
    # https://github.com/actions/labeler

.github/workflows/python-package.yml

  • Network accessline 1
    # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
  • Network accessline 2
    # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
  • Network accessline 4
    # [ ] TODO [pep 458](https://blog.pypi.org/posts/2024-11-14-pypi-now-supports-digital-attestations/)

.github/workflows/stale.yml

  • Network accessline 4
    # You can adjust the behavior by modifying this file. # For more information, see: # https://github.com/actions/stale
  • Network accessline 5
    # For more information, see: # https://github.com/actions/stale name: Stale
  • Network accessline 6
    # https://github.com/actions/stale

.github/workflows/test-main-features.yml

  • Network accessline 42
    - name: Install Poetry       run: |         curl -sSL https://install.python-poetry.org | python3 -
  • Network accessline 43
    run: |         curl -sSL https://install.python-poetry.org | python3 -         echo "$HOME/.local/bin" >> $GITHUB_PATH
  • Dangerous shell operationline 44
    curl -sSL https://install.python-poetry.org | python3 -
  • Network accessline 44
    curl -sSL https://install.python-poetry.org | python3 -
  • Access to secretsline 58
    [Credential-related source omitted]
  • Access to secretsline 59
    [Credential-related source omitted]
  • Access to secretsline 60
    [Credential-related source omitted]
  • Access to secretsline 61
    [Credential-related source omitted]
  • Access to secretsline 62
    [Credential-related source omitted]
  • Access to secretsline 63
    [Credential-related source omitted]
  • Access to secretsline 64
    [Credential-related source omitted]
  • Network accessline 130
    - name: Install Poetry       run: |         curl -sSL https://install.python-poetry.org | python3 -
  • Network accessline 131
    run: |         curl -sSL https://install.python-poetry.org | python3 -         echo "$HOME/.local/bin" >> $GITHUB_PATH
  • Dangerous shell operationline 132
    curl -sSL https://install.python-poetry.org | python3 -
  • Network accessline 132
    curl -sSL https://install.python-poetry.org | python3 -

.github/workflows/tests.yml

  • Network accessline 22
    - name: Install Poetry       run: |         curl -sSL https://install.python-poetry.org | python3 -
  • Dangerous shell operationline 24
    curl -sSL https://install.python-poetry.org | python3 -
  • Network accessline 24
    curl -sSL https://install.python-poetry.org | python3 -

.gitignore

  • Access to secretsline 4
    [Credential-related source omitted]
  • Network accessline 183
    #   This is especially recommended for binary packages to ensure reproducibility, and is more #   commonly ignored for libraries. #   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
  • Network accessline 184
    #   commonly ignored for libraries. #   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control #poetry.lock
  • Network accessline 185
    #   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
  • Network accessline 191
    #   pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it #   in version control. #   https://pdm.fming.dev/#use-with-ide
  • Network accessline 192
    #   in version control. #   https://pdm.fming.dev/#use-with-ide .pdm.toml
  • Network accessline 193
    #   https://pdm.fming.dev/#use-with-ide
  • Access to secretsline 207
    [Credential-related source omitted]
  • Network accessline 239
    # PyCharm #  JetBrains specific template is maintained in a separate JetBrains.gitignore that can #  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
  • Network accessline 240
    #  JetBrains specific template is maintained in a separate JetBrains.gitignore that can #  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore #  and can be added to the global gitignore or merged into this 
  • Network accessline 241
    #  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
  • Network accessline 321
    #   This is especially recommended for binary packages to ensure reproducibility, and is more #   commonly ignored for libraries. #   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
  • Network accessline 322
    #   commonly ignored for libraries. #   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control #poetry.lock
  • Network accessline 323
    #   https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
  • Network accessline 329
    #   pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it #   in version control. #   https://pdm.fming.dev/#use-with-ide
  • Network accessline 330
    #   in version control. #   https://pdm.fming.dev/#use-with-ide .pdm.toml
  • Network accessline 331
    #   https://pdm.fming.dev/#use-with-ide
  • Access to secretsline 345
    [Credential-related source omitted]
  • Network accessline 377
    # PyCharm #  JetBrains specific template is maintained in a separate JetBrains.gitignore that can #  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
  • Network accessline 378
    #  JetBrains specific template is maintained in a separate JetBrains.gitignore that can #  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore #  and can be added to the global gitignore or merged into this 
  • Network accessline 379
    #  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore

AGENTS.md

  • Access to secretsline 9
    [Credential-related source omitted]
  • Network accessline 22
    - **[`SKILL.md`](./SKILL.md)**: a condensed version packaged as an agent skill. - **[`examples/`](./examples)**: hundreds of runnable examples. One is probably close to what you need. - **Docs MCP server**: `https://docs.swarms.world/mcp`, 
  • Network accessline 23
    - **[`examples/`](./examples)**: hundreds of runnable examples. One is probably close to what you need. - **Docs MCP server**: `https://docs.swarms.world/mcp`, no key. Search the current docs instead of relying on training data; names chang
  • Network accessline 24
    - **Docs MCP server**: `https://docs.swarms.world/mcp`, no key. Search the current docs instead of relying on training data; names changed across v12 to v16.
  • Network accessline 25
    [Credential-related source omitted]
  • Network accessline 26
    - **Plain-text docs**: [llms.txt](https://docs.swarms.world/llms.txt) and [llms-full.txt](https://docs.swarms.world/llms-full.txt).
  • Network accessline 40
    - Removing unused code (a method, parameter, attribute or line) needs no new unit test. Delete the tests that only exercised it and run the module's existing tests. - Not every change needs a unit test. When you add one, keep it small and f
  • Network accessline 42
    - User-visible changes need a matching PR in [swarms-framework-docs](https://github.com/The-Swarm-Corporation/swarms-framework-docs).

CITATION.cff

  • Network accessline 3
    title: "swarms" version: "7.8.6" url: "https://github.com/kyegomez/swarms"
  • Network accessline 4
    version: "7.8.6" url: "https://github.com/kyegomez/swarms" date-released: "2023-05-11"
  • Network accessline 5
    url: "https://github.com/kyegomez/swarms"

CLAUDE.md

  • Network accessline 11
    | Server | URL | Key | What it does | |---|---|---|---| | Docs | `https://docs.swarms.world/mcp` | none | Searches and reads the current documentation |
  • Network accessline 12
    |---|---|---|---| | Docs | `https://docs.swarms.world/mcp` | none | Searches and reads the current documentation | | Marketplace | `https://swarms.world/mcp` | Swarms API key for calls | Searches, reads and publishes agents, prompts and too
  • Network accessline 13
    | Docs | `https://docs.swarms.world/mcp` | none | Searches and reads the current documentation |
  • Network accessline 14
    | Marketplace | `https://swarms.world/mcp` | Swarms API key for calls | Searches, reads and publishes agents, prompts and tools on [swarms.world](https://swarms.world) |
  • Network accessline 16
    The whole documentation is also available as plain text at [docs.swarms.world/llms.txt](https://docs.swarms.world/llms.txt) (an index) and [docs.swarms.world/llms-full.txt](https://docs.swarms.world/llms-full.txt) (every page).
  • Network accessline 21
    claude mcp add --transport http swarms-docs https://docs.swarms.world/mcp
  • Network accessline 22
    [Credential-related source omitted]
  • Access to secretsline 22
    [Credential-related source omitted]
  • Access to secretsline 23
    [Credential-related source omitted]
  • Network accessline 29
    {   "mcpServers": {     "swarms-docs": { "url": "https://docs.swarms.world/mcp" },
  • Network accessline 30
    "mcpServers": {     "swarms-docs": { "url": "https://docs.swarms.world/mcp" },     "swarms-marketplace": {
  • Network accessline 31
    "swarms-docs": { "url": "https://docs.swarms.world/mcp" },
  • Network accessline 32
    [Credential-related source omitted]
  • Network accessline 33
    "url": "https://swarms.world/mcp",
  • Access to secretsline 34
    [Credential-related source omitted]
  • Access to secretsline 51
    [Credential-related source omitted]
  • Access to secretsline 52
    [Credential-related source omitted]
  • Access to secretsline 53
    [Credential-related source omitted]
  • Network accessline 889
    agent_name="MCPAgent",     model_name="gpt-5.4",     mcp_url="http://localhost:8000/sse",   # SSE endpoint
  • Network accessline 890
    model_name="gpt-5.4",     mcp_url="http://localhost:8000/sse",   # SSE endpoint     max_loops="auto",
  • Network accessline 891
    mcp_url="http://localhost:8000/sse",   # SSE endpoint
  • Network accessline 898
    model_name="gpt-5.4",     mcp_urls=[         "http://localhost:8000/sse",
  • Network accessline 899
    mcp_urls=[         "http://localhost:8000/sse",         "http://localhost:8001/sse",
  • Network accessline 900
    "http://localhost:8000/sse",
  • Network accessline 901
    "http://localhost:8001/sse",
  • Network accessline 914
    tools = get_mcp_tools_sync(server_url="http://localhost:8000/sse")
  • Network accessline 916
    import asyncio tools = asyncio.run(aget_mcp_tools(server_url="http://localhost:8000/sse"))
  • Network accessline 917
    tools = asyncio.run(aget_mcp_tools(server_url="http://localhost:8000/sse"))
  • Network accessline 1120
    Full specification: the [WARP Git Message Skill](https://swarms.world/prompt/32d1e7b4-34da-4035-bc05-d18f8e71a2f1) on the Swarms marketplace. Load it before writing a commit message, PR or issue for this repo.
  • Network accessline 1135
    🤖 Generated with [Claude Code](https://claude.com/claude-code) (Claude Opus 5.5)
  • Network accessline 1145
    The docs site lives in a separate repo, [The-Swarm-Corporation/swarms-framework-docs](https://github.com/The-Swarm-Corporation/swarms-framework-docs). Every change to the framework that users can see must come with a matching docs update th

CODE_OF_CONDUCT.md

  • Network accessline 117
    This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
  • Network accessline 119
    https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
  • Network accessline 121
    Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
  • Network accessline 122
    enforcement ladder](https://github.com/mozilla/diversity).
  • Network accessline 124
    [homepage]: https://www.contributor-covenant.org
  • Network accessline 126
    For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at
  • Network accessline 127
    https://www.contributor-covenant.org/faq. Translations are available at
  • Network accessline 128
    https://www.contributor-covenant.org/translations.

CONTRIBUTING.md

  • Network accessline 3
    <div align="left">   <a href="https://swarms.world">
  • Network accessline 4
    <a href="https://swarms.world">
  • Network accessline 5
    <img src="https://github.com/kyegomez/swarms/blob/master/images/new_logo.png" style="margin: 15px; max-width: 500px" width="50%" alt="Swarms Logo">
  • Network accessline 24
    - [Good First Issues](https://github.com/kyegomez/swarms/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) · [Contributing Board](https://github.com/users/kyegomez/projects/1)
  • Network accessline 31
    git clone https://github.com/kyegomez/swarms.git
  • Access to secretsline 39
    [Credential-related source omitted]
  • Access to secretsline 40
    [Credential-related source omitted]
  • Access to secretsline 41
    [Credential-related source omitted]
  • Network accessline 45
    [Environment setup docs →](https://docs.swarms.world/environment-setup)
  • Network accessline 53
    Search existing issues first. If it's new, open a [Bug Report](https://github.com/kyegomez/swarms/issues/new?template=bug_report.md) or [Feature Request](https://github.com/kyegomez/swarms/issues/new?template=feature_request.md) with a conc
  • Network accessline 75
    The full specification, with the type list, validation rules and examples, is the [WARP Git Message Skill](https://swarms.world/prompt/32d1e7b4-34da-4035-bc05-d18f8e71a2f1) on the Swarms marketplace. Agents can load it directly; humans can 
  • Network accessline 136
    - **Type annotations** on every function and method. - **Docstrings** on every public class, function, and method ([Google style](http://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) or [NumPy](https://numpydoc.readth
  • Network accessline 137
    - **Docstrings** on every public class, function, and method ([Google style](http://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) or [NumPy](https://numpydoc.readthedocs.io/en/latest/format.html)): description, `Args`
  • Network accessline 172
    | | | |---|---| | Docs | [docs.swarms.world](https://docs.swarms.world) · [Quickstart](https://docs.swarms.world/quickstart) · [Agent API](https://docs.swarms.world/api/agent) |
  • Network accessline 173
    |---|---| | Docs | [docs.swarms.world](https://docs.swarms.world) · [Quickstart](https://docs.swarms.world/quickstart) · [Agent API](https://docs.swarms.world/api/agent) | | Examples | [examples/](https://github.com/kyegomez/swarms/tree/mas
  • Network accessline 174
    | Docs | [docs.swarms.world](https://docs.swarms.world) · [Quickstart](https://docs.swarms.world/quickstart) · [Agent API](https://docs.swarms.world/api/agent) |
  • Network accessline 175
    | Examples | [examples/](https://github.com/kyegomez/swarms/tree/master/examples) — [single_agent](https://github.com/kyegomez/swarms/tree/master/examples/single_agent), [multi_agent](https://github.com/kyegomez/swarms/tree/master/examples/
  • Network accessline 176
    | Architectures | [SequentialWorkflow](https://docs.swarms.world/api/sequential-workflow) · [AgentRearrange](https://docs.swarms.world/api/agent-rearrange) · [MixtureOfAgents](https://docs.swarms.world/api/mixture-of-agents) · [GraphWorkflo
  • Network accessline 177
    | Community | [Discord](https://discord.gg/EamjgSaEQf) · [Twitter](https://twitter.com/kyegomez) · [LinkedIn](https://www.linkedin.com/company/the-swarm-corporation) · [YouTube](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) · [E
  • Network accessline 178
    | Onboarding | [Book a session with the maintainer](https://cal.com/swarms/swarms-onboarding-session) |

Dockerfile

  • Executable scriptline 1
    Executable file
  • Dangerous shell operationline 29
    RUN apk upgrade --no-cache      && apk add --no-cache bash      && rm -rf /usr/local/lib/python*/site-packages/pip* /usr/local/bin/pip*
  • Dangerous shell operationline 31
    && rm -rf /usr/local/lib/python*/site-packages/pip* /usr/local/bin/pip* \

LICENSE

  • Network accessline 1
    Apache License                            Version 2.0, January 2004                         http://www.apache.org/licenses/
  • Network accessline 3
    http://www.apache.org/licenses/
  • Network accessline 195
    http://www.apache.org/licenses/LICENSE-2.0

README.md

  • Network accessline 1
    <div align="left">   <a href="https://swarms.world">
  • Network accessline 2
    <a href="https://swarms.world">
  • Network accessline 3
    <img src="https://github.com/kyegomez/swarms/blob/master/images/new_logo.png" style="margin: 15px; max-width: 350px" width="70%" alt="Logo">
  • Network accessline 8
    <p align="left">   <!-- Main Navigation Links -->   <a href="https://swarms.ai">Swarms Website</a>
  • Network accessline 9
    <!-- Main Navigation Links -->   <a href="https://swarms.ai">Swarms Website</a>   <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  • Network accessline 10
    <a href="https://swarms.ai">Swarms Website</a>
  • Network accessline 11
    <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>   <a href="https://docs.swarms.world">Documentation</a>   <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  • Network accessline 12
    <a href="https://docs.swarms.world">Documentation</a>
  • Network accessline 13
    <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>   <a href="https://swarms.world">Swarms Marketplace</a>   <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  • Network accessline 14
    <a href="https://swarms.world">Swarms Marketplace</a>
  • Network accessline 20
    <p align="left">   <a href="https://pypi.org/project/swarms/" target="_blank">
  • Network accessline 21
    <a href="https://pypi.org/project/swarms/" target="_blank">
  • Network accessline 22
    <picture>       <source srcset="https://img.shields.io/pypi/v/swarms?style=for-the-badge&color=3670A0" media="(prefers-color-scheme: dark)">       <img alt="Version" src="https://img.shields.io/pypi/v/swarms?style=for-the-badge&color=3670A0
  • Network accessline 23
    <source srcset="https://img.shields.io/pypi/v/swarms?style=for-the-badge&color=3670A0" media="(prefers-color-scheme: dark)">
  • Network accessline 24
    <img alt="Version" src="https://img.shields.io/pypi/v/swarms?style=for-the-badge&color=3670A0">
  • Network accessline 25
    </picture>   </a>   <a href="https://pypi.org/project/swarms/" target="_blank">
  • Network accessline 26
    </a>   <a href="https://pypi.org/project/swarms/" target="_blank">     <picture>
  • Network accessline 27
    <a href="https://pypi.org/project/swarms/" target="_blank">
  • Network accessline 28
    <picture>       <source srcset="https://img.shields.io/pypi/dm/swarms?style=for-the-badge&color=3670A0" media="(prefers-color-scheme: dark)">       <img alt="Downloads" src="https://img.shields.io/pypi/dm/swarms?style=for-the-badge&color=36
  • Network accessline 29
    <source srcset="https://img.shields.io/pypi/dm/swarms?style=for-the-badge&color=3670A0" media="(prefers-color-scheme: dark)">
  • Network accessline 30
    <img alt="Downloads" src="https://img.shields.io/pypi/dm/swarms?style=for-the-badge&color=3670A0">
  • Network accessline 31
    </picture>   </a>   <a href="https://twitter.com/swarms_corp/">
  • Network accessline 32
    </a>   <a href="https://twitter.com/swarms_corp/">     <picture>
  • Network accessline 33
    <a href="https://twitter.com/swarms_corp/">
  • Network accessline 34
    <picture>       <source srcset="https://img.shields.io/badge/Twitter-Follow-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" media="(prefers-color-scheme: dark)">       <img src="https://img.shields.io/badge/Twitter-Follow-1DA1F2?st
  • Network accessline 35
    <source srcset="https://img.shields.io/badge/Twitter-Follow-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" media="(prefers-color-scheme: dark)">
  • Network accessline 36
    <img src="https://img.shields.io/badge/Twitter-Follow-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" alt="Twitter">
  • Network accessline 37
    </picture>   </a>   <a href="https://discord.gg/EamjgSaEQf">
  • Network accessline 38
    </a>   <a href="https://discord.gg/EamjgSaEQf">     <picture>
  • Network accessline 39
    <a href="https://discord.gg/EamjgSaEQf">
  • Network accessline 40
    <picture>       <source srcset="https://img.shields.io/badge/Discord-Join-5865F2?style=for-the-badge&logo=discord&logoColor=white" media="(prefers-color-scheme: dark)">       <img src="https://img.shields.io/badge/Discord-Join-5865F2?style=
  • Network accessline 41
    <source srcset="https://img.shields.io/badge/Discord-Join-5865F2?style=for-the-badge&logo=discord&logoColor=white" media="(prefers-color-scheme: dark)">
  • Network accessline 42
    <img src="https://img.shields.io/badge/Discord-Join-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord">
  • Network accessline 60
    # uv (recommended): https://github.com/astral-sh/uv
  • Network accessline 70
    # Clone the repository $ git clone https://github.com/kyegomez/swarms.git
  • Network accessline 71
    $ git clone https://github.com/kyegomez/swarms.git
  • Network accessline 80
    - [RouteHub](https://github.com/The-Swarm-Corporation/RouteHub) for faster model calls through a drop-in LLM gateway. No code changes needed. To switch back to litellm, set `SWARMS_LLM_BACKEND=litellm`.
  • Network accessline 81
    - [rustworkx](https://github.com/Qiskit/rustworkx), a graph library written in Rust, for faster `GraphWorkflow` graphs. Turn it on with `GraphWorkflow(backend="rustworkx")`.
  • Network accessline 90
    The official image, [`swarmscorp/swarms`](https://hub.docker.com/r/swarmscorp/swarms) on Docker Hub, has swarms and its CLI installed on Python 3.13, for `linux/amd64` and `linux/arm64`.
  • Access to secretsline 97
    [Credential-related source omitted]
  • Access to secretsline 100
    [Credential-related source omitted]
  • Network accessline 109
    [Learn more about the environment configuration here](https://docs.swarms.world/environment-setup)
  • Access to secretsline 112
    [Credential-related source omitted]
  • Access to secretsline 114
    [Credential-related source omitted]
  • Access to secretsline 115
    [Credential-related source omitted]
  • Network accessline 122
    An **Agent** is the fundamental building block of a swarm: an autonomous entity powered by an LLM + Tools + Memory. [Learn more Here](https://docs.swarms.world/api/agent)
  • Network accessline 179
    The [Model Context Protocol (MCP)](https://modelcontextprotocol.io) lets agents easily access external tools and data by pointing to an MCP server URL, which automatically provides tools to the agent as needed. Agents become MCP-enabled by 
  • Network accessline 185
    agent_name="MCP-Agent",     model_name="claude-sonnet-5",     mcp_url="https://mcp.deepwiki.com/mcp",
  • Network accessline 186
    model_name="claude-sonnet-5",     mcp_url="https://mcp.deepwiki.com/mcp",     max_loops=1,
  • Network accessline 187
    mcp_url="https://mcp.deepwiki.com/mcp",
  • Network accessline 215
    # Serves http://127.0.0.1:8000/mcp as the tool "researcher".
  • Network accessline 226
    [Credential-related source omitted]
  • Network accessline 227
    [Credential-related source omitted]
  • Network accessline 228
    [Credential-related source omitted]
  • Access to secretsline 228
    [Credential-related source omitted]
  • Access to secretsline 238
    [Credential-related source omitted]
  • Network accessline 247
    A **Swarm** consists of multiple agents working together. This simple example creates a two-agent workflow for researching and writing a blog post. [Learn More About SequentialWorkflow](https://docs.swarms.world/api/sequential-workflow)
  • Network accessline 281
    | **Architecture** | **Description** | **Best For** | |---|---|---| | **[SequentialWorkflow](https://docs.swarms.world/api/sequential-workflow)** | Agents execute tasks in a linear chain; the output of one agent becomes the input for the ne
  • Network accessline 282
    |---|---|---| | **[SequentialWorkflow](https://docs.swarms.world/api/sequential-workflow)** | Agents execute tasks in a linear chain; the output of one agent becomes the input for the next. | Step-by-step processes such as data transformati
  • Network accessline 283
    | **[SequentialWorkflow](https://docs.swarms.world/api/sequential-workflow)** | Agents execute tasks in a linear chain; the output of one agent becomes the input for the next. | Step-by-step processes such as data transformation pipelines a
  • Network accessline 284
    | **[ConcurrentWorkflow](https://docs.swarms.world/api/concurrent-workflow)** | Agents run tasks simultaneously for maximum efficiency. | High-throughput tasks such as batch processing and parallel data analysis. |
  • Network accessline 285
    | **[AgentRearrange](https://docs.swarms.world/api/agent-rearrange)** | Dynamically maps complex relationships (e.g., `a -> b, c`) between agents. | Flexible and adaptive workflows, task distribution, and dynamic routing. |
  • Network accessline 286
    | **[GraphWorkflow](https://docs.swarms.world/api/graph-workflow)** | Orchestrates agents as nodes in a Directed Acyclic Graph (DAG). | Complex projects with intricate dependencies, such as software builds. |
  • Network accessline 287
    | **[MixtureOfAgents (MoA)](https://docs.swarms.world/api/mixture-of-agents)** | Utilizes multiple expert agents in parallel and synthesizes their outputs. | Complex problem-solving and achieving state-of-the-art performance through collabo
  • Network accessline 288
    | **[GroupChat](https://docs.swarms.world/api/group-chat)** | Agents collaborate and make decisions through a conversational interface. | Real-time collaborative decision-making, negotiations, and brainstorming. |
  • Network accessline 289
    | **[ForestSwarm](https://docs.swarms.world/api/forest-swarm)** | Dynamically selects the most suitable agent or tree of agents for a given task. | Task routing, optimizing for expertise, and complex decision-making trees. |
  • Network accessline 290
    | **[HierarchicalSwarm](https://docs.swarms.world/api/hierarchical-swarm)** | Orchestrates agents with a director who creates plans and distributes tasks to specialized worker agents. | Complex project management, team coordination, and hie
  • Network accessline 291
    | **[HeavySwarm](https://docs.swarms.world/api/heavy-swarm)** | Implements a five-phase workflow with specialized agents (Research, Analysis, Alternatives, Verification) for comprehensive task analysis. | Complex research and analysis tasks
  • Network accessline 292
    | **[SwarmRouter](https://docs.swarms.world/api/swarm-router)** | A universal orchestrator that provides a single interface to run any type of swarm with dynamic selection. | Simplifying complex workflows, switching between swarm strategies
  • Network accessline 294
    Learn more about all of the 60+ Multi-Agent Structures we have available [here](https://docs.swarms.world)
  • Network accessline 377
    Inspired by `einsum`, `AgentRearrange` lets you define complex, non-linear relationships between agents using a simple string-based syntax. [Learn more](https://docs.swarms.world/api/agent-rearrange). This architecture is perfect for orches
  • Network accessline 407
    This makes `GraphWorkflow` the right choice when your workflow has fan-out / fan-in or diamond patterns, conditional dependencies, or any structure that doesn't fit a strict line or a flat parallel batch. Per-node callbacks let you hook int
  • Network accessline 441
    The `SwarmRouter` simplifies building complex workflows by providing a single interface to run any type of swarm. Instead of importing and managing different swarm classes, you can dynamically select the one you need just by changing the `s
  • Network accessline 494
    The `AutoSwarmBuilder` automatically generates specialized agents and their workflows based on your task description. Simply describe what you need, and it will create a complete multi-agent system with detailed prompts and optimal agent co
  • Network accessline 526
    The `MixtureOfAgents` architecture processes tasks by feeding them to multiple "expert" agents in parallel. Their diverse outputs are then synthesized by an aggregator agent to produce a final, high-quality result. [Learn more here](https:/
  • Network accessline 649
    `HeavySwarm` implements a sophisticated 5-phase workflow inspired by X.AI's Grok heavy implementation. It uses specialized agents (Research, Analysis, Alternatives, Verification) to provide comprehensive task analysis through intelligent qu
  • Network accessline 684
    **Social Algorithms** provide a flexible framework for defining custom communication patterns between agents. You can upload any arbitrary social algorithm as a callable that defines the sequence of communication, enabling agents to talk to
  • Network accessline 740
    The full documentation lives at **[docs.swarms.world](https://docs.swarms.world)**. Below are the resources most useful when building with Swarms, both for humans and for AI coding assistants.
  • Network accessline 742
    | Resource | Link | What it's for | |---|---|---| | **Main documentation** | [docs.swarms.world](https://docs.swarms.world) | Guides, API reference, tutorials |
  • Network accessline 743
    |---|---|---| | **Main documentation** | [docs.swarms.world](https://docs.swarms.world) | Guides, API reference, tutorials | | **`llms.txt` (LLM-ingestible docs)** | [docs.swarms.world/llms.txt](https://docs.swarms.world/llms.txt) | A singl
  • Network accessline 744
    | **Main documentation** | [docs.swarms.world](https://docs.swarms.world) | Guides, API reference, tutorials | | **`llms.txt` (LLM-ingestible docs)** | [docs.swarms.world/llms.txt](https://docs.swarms.world/llms.txt) | A single, machine-rea
  • Network accessline 745
    | **`llms.txt` (LLM-ingestible docs)** | [docs.swarms.world/llms.txt](https://docs.swarms.world/llms.txt) | A single, machine-readable index of the entire documentation, formatted for LLMs and AI IDEs (Cursor, Claude Code, etc.) to consume 
  • Network accessline 746
    | **Docs MCP server** | `https://docs.swarms.world/mcp` | A [Model Context Protocol](https://modelcontextprotocol.io) server that lets an assistant search and read the current docs. See [Using Swarms with AI Coding Assistants](#using-swarms
  • Network accessline 747
    | **MCP integration guide** | [docs.swarms.world/integrations/mcp](https://docs.swarms.world/integrations/mcp) | How to connect a Swarms `Agent` to any MCP server, auto-discover its tools, and call them from a swarm |
  • Network accessline 748
    | **API reference** | [docs.swarms.world/api](https://docs.swarms.world/api) | Per-class reference for `Agent`, `SequentialWorkflow`, `ConcurrentWorkflow`, `AgentRearrange`, `GraphWorkflow`, `SwarmRouter`, and every multi-agent architecture
  • Network accessline 749
    | **Environment setup** | [docs.swarms.world/environment-setup](https://docs.swarms.world/environment-setup) | API keys, model providers, and configuration options |
  • Network accessline 751
    > **Tip for AI coding assistants:** point your tool (Claude Code, Cursor, Windsurf, Continue, etc.) at `https://docs.swarms.world/llms.txt`. It will pull the entire docs index in one shot and write idiomatic Swarms code without per-question
  • Network accessline 763
    | Server | URL | Key | What it does | |---|---|---|---| | Docs | `https://docs.swarms.world/mcp` | none | Searches and reads the current documentation |
  • Network accessline 764
    |---|---|---|---| | Docs | `https://docs.swarms.world/mcp` | none | Searches and reads the current documentation | | Marketplace | `https://swarms.world/mcp` | Swarms API key for calls | Searches, reads and publishes agents, prompts and too
  • Network accessline 765
    | Docs | `https://docs.swarms.world/mcp` | none | Searches and reads the current documentation |
  • Network accessline 766
    | Marketplace | `https://swarms.world/mcp` | Swarms API key for calls | Searches, reads and publishes agents, prompts and tools on [swarms.world](https://swarms.world) |
  • Network accessline 768
    The whole documentation is also available as plain text at [docs.swarms.world/llms.txt](https://docs.swarms.world/llms.txt) (an index) and [docs.swarms.world/llms-full.txt](https://docs.swarms.world/llms-full.txt) (every page).
  • Network accessline 773
    claude mcp add --transport http swarms-docs https://docs.swarms.world/mcp
  • Network accessline 774
    [Credential-related source omitted]
  • Access to secretsline 774
    [Credential-related source omitted]
  • Access to secretsline 775
    [Credential-related source omitted]
  • Network accessline 781
    {   "mcpServers": {     "swarms-docs": { "url": "https://docs.swarms.world/mcp" },
  • Network accessline 782
    "mcpServers": {     "swarms-docs": { "url": "https://docs.swarms.world/mcp" },     "swarms-marketplace": {
  • Network accessline 783
    "swarms-docs": { "url": "https://docs.swarms.world/mcp" },
  • Network accessline 784
    [Credential-related source omitted]
  • Network accessline 785
    "url": "https://swarms.world/mcp",
  • Access to secretsline 786
    [Credential-related source omitted]
  • Network accessline 796
    Swarms delivers a comprehensive, enterprise-grade multi-agent infrastructure platform designed for production-scale deployments and seamless integration with existing systems. [Learn more about the swarms feature set here](https://docs.swar
  • Network accessline 811
    | Protocol | Description | Documentation | |----------|-------------|---------------| | **[MCP (Model Context Protocol)](https://docs.swarms.world/integrations/mcp)** | Standardized protocol for AI agents to interact with external tools and
  • Network accessline 812
    |----------|-------------|---------------| | **[MCP (Model Context Protocol)](https://docs.swarms.world/integrations/mcp)** | Standardized protocol for AI agents to interact with external tools and services through MCP servers. Enables dyna
  • Network accessline 813
    | **[MCP (Model Context Protocol)](https://docs.swarms.world/integrations/mcp)** | Standardized protocol for AI agents to interact with external tools and services through MCP servers. Enables dynamic tool discovery and execution. | [MCP In
  • Network accessline 814
    | **[X402](https://docs.swarms.world/examples/integrations/x402-payment)** | Cryptocurrency payment protocol for API endpoints. Enables monetization of agents with pay-per-use models. | [X402 Quickstart](https://docs.swarms.world/examples/i
  • Network accessline 815
    | **[Swarms Marketplace](https://swarms.world)** | Platform for discovering and sharing production-ready prompts, agents, and tools. Enables automatic prompt loading from the marketplace and publishing your own prompts directly from code. |
  • Network accessline 816
    | **[Open Responses](https://www.openresponses.org/)** | Open-source specification and ecosystem for multi-provider, interoperable LLM interfaces based on the OpenAI Responses API. Provides a unified schema and tooling for calling language 
  • Network accessline 817
    | **[Agent Skills](https://docs.swarms.world/agents/agent-skills)** | Lightweight, markdown-based format for defining modular, reusable agent capabilities introduced by Anthropic. Enables specialization of agents without modifying code by l
  • Network accessline 832
    Learn more about how you can make a meaningful impact in our [Contributor's Guide](https://docs.swarms.world/community/contributing).
  • Network accessline 838
    1. **Find an Issue to Tackle:** The best way to begin is by visiting our [**contributing project board**](https://github.com/users/kyegomez/projects/1). Look for issues tagged with `good first issue`; these are specifically selected for new
  • Network accessline 840
    2. **Report a Bug or Request a Feature:** Have a new idea or found something that isn't working right? We'd love to hear from you. Please [**file a Bug Report or Feature Request**](https://github.com/kyegomez/swarms/issues) on our GitHub Is
  • Network accessline 842
    3. **Understand Our Workflow and Standards:** Before submitting your work, please review our complete [**Contribution Guidelines**](https://github.com/kyegomez/swarms/blob/master/CONTRIBUTING.md). To help maintain code quality, we also enco
  • Network accessline 844
    4. **Join the Discussion:** To participate in roadmap discussions and connect with other developers, join our community on [**Discord**](https://discord.gg/EamjgSaEQf).
  • Network accessline 846
    5. **Use WARP for Every Commit, PR and Issue:** All contributors, people and AI agents alike, must write commit messages, PR titles and issue titles in the WARP (Warp Speed Protocol) shorthand: `[TYPE][Function/FileName][Short Description]`
  • Network accessline 852
    <a href="https://github.com/kyegomez/swarms/graphs/contributors">
  • Network accessline 853
    <img src="https://contrib.rocks/image?repo=kyegomez/swarms" />
  • Network accessline 861
    - **Check Open roles:** [swarms.ai/hiring](https://swarms.ai/hiring)
  • Network accessline 868
    Join thousands of agent builders and AI engineers in the **[Swarms Discord](https://discord.gg/EamjgSaEQf)** for technical support, project showcases, collaboration, and the latest swarms ecosystem updates.
  • Network accessline 870
    [Join the Swarms Discord →](https://discord.gg/EamjgSaEQf)
  • Network accessline 878
    | Platform | Description | Link | |----------|-------------|------| | Documentation | Official documentation and guides | [docs.swarms.world](https://docs.swarms.world) |
  • Network accessline 879
    |----------|-------------|------| | Documentation | Official documentation and guides | [docs.swarms.world](https://docs.swarms.world) | | Blog | Latest updates and technical articles | [Medium](https://medium.com/@kyeg) |
  • Network accessline 880
    | Documentation | Official documentation and guides | [docs.swarms.world](https://docs.swarms.world) |
  • Network accessline 881
    | Blog | Latest updates and technical articles | [Medium](https://medium.com/@kyeg) |
  • Network accessline 882
    | Discord | Live chat and community support | [Join Discord](https://discord.gg/EamjgSaEQf) |
  • Network accessline 883
    | Twitter | Latest news and announcements | [@swarms_corp](https://twitter.com/swarms_corp) |
  • Network accessline 884
    | LinkedIn | Professional network and updates | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
  • Network accessline 885
    | YouTube | Tutorials and demos | [Swarms Channel](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
  • Network accessline 886
    | Events | Join our community events | [Sign up here](https://lu.ma/swarms_calendar) |
  • Network accessline 887
    | Onboarding Session | Get onboarded with Kye Gomez, creator and lead maintainer of Swarms | [Book Session](https://cal.com/swarms/swarms-onboarding-session) |
  • Network accessline 898
    title   = {{Swarms: Production-Grade Multi-Agent Infrastructure Platform}},   year    = {2022},   howpublished = {\url{https://github.com/kyegomez/swarms}},
  • Network accessline 899
    year    = {2022},   howpublished = {\url{https://github.com/kyegomez/swarms}},   note    = {Documentation available at \url{https://docs.swarms.world}},
  • Network accessline 900
    howpublished = {\url{https://github.com/kyegomez/swarms}},
  • Network accessline 901
    note    = {Documentation available at \url{https://docs.swarms.world}},

README_zh.md

  • Network accessline 1
    <div align="left">   <a href="https://swarms.world">
  • Network accessline 2
    <a href="https://swarms.world">
  • Network accessline 3
    <img src="https://github.com/kyegomez/swarms/blob/master/images/new_logo.png" style="margin: 15px; max-width: 350px" width="70%" alt="Logo">
  • Network accessline 8
    <p align="left">   <!-- Main Navigation Links -->   <a href="https://swarms.ai">Swarms 官网</a>
  • Network accessline 9
    <!-- Main Navigation Links -->   <a href="https://swarms.ai">Swarms 官网</a>   <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  • Network accessline 10
    <a href="https://swarms.ai">Swarms 官网</a>
  • Network accessline 11
    <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>   <a href="https://docs.swarms.world">文档</a>   <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  • Network accessline 12
    <a href="https://docs.swarms.world">文档</a>
  • Network accessline 13
    <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>   <a href="https://swarms.world">Swarms 市场</a>   <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
  • Network accessline 14
    <a href="https://swarms.world">Swarms 市场</a>
  • Network accessline 20
    <p align="left">   <a href="https://pypi.org/project/swarms/" target="_blank">
  • Network accessline 21
    <a href="https://pypi.org/project/swarms/" target="_blank">
  • Network accessline 22
    <picture>       <source srcset="https://img.shields.io/pypi/v/swarms?style=for-the-badge&color=3670A0" media="(prefers-color-scheme: dark)">       <img alt="Version" src="https://img.shields.io/pypi/v/swarms?style=for-the-badge&color=3670A0
  • Network accessline 23
    <source srcset="https://img.shields.io/pypi/v/swarms?style=for-the-badge&color=3670A0" media="(prefers-color-scheme: dark)">
  • Network accessline 24
    <img alt="Version" src="https://img.shields.io/pypi/v/swarms?style=for-the-badge&color=3670A0">
  • Network accessline 25
    </picture>   </a>   <a href="https://pypi.org/project/swarms/" target="_blank">
  • Network accessline 26
    </a>   <a href="https://pypi.org/project/swarms/" target="_blank">     <picture>
  • Network accessline 27
    <a href="https://pypi.org/project/swarms/" target="_blank">
  • Network accessline 28
    <picture>       <source srcset="https://img.shields.io/pypi/dm/swarms?style=for-the-badge&color=3670A0" media="(prefers-color-scheme: dark)">       <img alt="Downloads" src="https://img.shields.io/pypi/dm/swarms?style=for-the-badge&color=36
  • Network accessline 29
    <source srcset="https://img.shields.io/pypi/dm/swarms?style=for-the-badge&color=3670A0" media="(prefers-color-scheme: dark)">
  • Network accessline 30
    <img alt="Downloads" src="https://img.shields.io/pypi/dm/swarms?style=for-the-badge&color=3670A0">
  • Network accessline 31
    </picture>   </a>   <a href="https://twitter.com/swarms_corp/">
  • Network accessline 32
    </a>   <a href="https://twitter.com/swarms_corp/">     <picture>
  • Network accessline 33
    <a href="https://twitter.com/swarms_corp/">
  • Network accessline 34
    <picture>       <source srcset="https://img.shields.io/badge/Twitter-Follow-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" media="(prefers-color-scheme: dark)">       <img src="https://img.shields.io/badge/Twitter-Follow-1DA1F2?st
  • Network accessline 35
    <source srcset="https://img.shields.io/badge/Twitter-Follow-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" media="(prefers-color-scheme: dark)">
  • Network accessline 36
    <img src="https://img.shields.io/badge/Twitter-Follow-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" alt="Twitter">
  • Network accessline 37
    </picture>   </a>   <a href="https://discord.gg/EamjgSaEQf">
  • Network accessline 38
    </a>   <a href="https://discord.gg/EamjgSaEQf">     <picture>
  • Network accessline 39
    <a href="https://discord.gg/EamjgSaEQf">
  • Network accessline 40
    <picture>       <source srcset="https://img.shields.io/badge/Discord-Join-5865F2?style=for-the-badge&logo=discord&logoColor=white" media="(prefers-color-scheme: dark)">       <img src="https://img.shields.io/badge/Discord-Join-5865F2?style=
  • Network accessline 41
    <source srcset="https://img.shields.io/badge/Discord-Join-5865F2?style=for-the-badge&logo=discord&logoColor=white" media="(prefers-color-scheme: dark)">
  • Network accessline 42
    <img src="https://img.shields.io/badge/Discord-Join-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Discord">
  • Network accessline 65
    [uv](https://github.com/astral-sh/uv) 是一个用 Rust 编写的高速 Python 包安装器与依赖解析器。
  • Network accessline 80
    # Clone the repository $ git clone https://github.com/kyegomez/swarms.git
  • Network accessline 81
    $ git clone https://github.com/kyegomez/swarms.git
  • Network accessline 90
    [点击这里了解更多环境配置信息](https://docs.swarms.world/environment-setup)
  • Access to secretsline 93
    [Credential-related source omitted]
  • Access to secretsline 95
    [Credential-related source omitted]
  • Access to secretsline 96
    [Credential-related source omitted]
  • Network accessline 102
    **Agent(智能体)** 是 swarm 的基本构建单元,是一个由 LLM + 工具 + 记忆驱动的自主实体。[点击这里了解更多](https://docs.swarms.world/api/agent)
  • Network accessline 159
    [模型上下文协议(MCP)](https://modelcontextprotocol.io) 让智能体只需指向一个 MCP 服务器 URL,即可轻松访问外部工具和数据,所需工具会自动提供给智能体。通过设置 `mcp_url` 或 `mcp_urls`,智能体即可启用 MCP,并且无需手动配置就能使用一个或多个服务器上的工具。像 [DeepWiki](https://mcp.deepwiki.com/mcp) 这样免费、公开的 MCP 服务器开箱即用,可立即为智能体提供实用工
  • Network accessline 165
    agent_name="MCP-Agent",     model_name="claude-sonnet-5",     mcp_url="https://mcp.deepwiki.com/mcp",
  • Network accessline 166
    model_name="claude-sonnet-5",     mcp_url="https://mcp.deepwiki.com/mcp",     max_loops=1,
  • Network accessline 167
    mcp_url="https://mcp.deepwiki.com/mcp",
  • Network accessline 195
    # Serves http://127.0.0.1:8000/mcp as the tool "researcher".
  • Network accessline 206
    [Credential-related source omitted]
  • Network accessline 207
    [Credential-related source omitted]
  • Network accessline 208
    [Credential-related source omitted]
  • Access to secretsline 208
    [Credential-related source omitted]
  • Access to secretsline 218
    [Credential-related source omitted]
  • Network accessline 227
    一个 **Swarm** 由多个协同工作的智能体组成。下面这个简单示例创建了一个双智能体工作流,用于研究并撰写一篇博客文章。[了解更多关于 SequentialWorkflow 的信息](https://docs.swarms.world/api/sequential-workflow)
  • Network accessline 261
    | **架构** | **说明** | **适用场景** | |---|---|---| | **[SequentialWorkflow](https://docs.swarms.world/api/sequential-workflow)** | 智能体按线性链条执行任务;前一个智能体的输出作为下一个智能体的输入。 | 数据转换流水线、报告生成等按步骤进行的流程。 |
  • Network accessline 262
    |---|---|---| | **[SequentialWorkflow](https://docs.swarms.world/api/sequential-workflow)** | 智能体按线性链条执行任务;前一个智能体的输出作为下一个智能体的输入。 | 数据转换流水线、报告生成等按步骤进行的流程。 | | **[ConcurrentWorkflow](https://docs.swarms.world/api/concurrent-workflow)** | 智能体同
  • Network accessline 263
    | **[SequentialWorkflow](https://docs.swarms.world/api/sequential-workflow)** | 智能体按线性链条执行任务;前一个智能体的输出作为下一个智能体的输入。 | 数据转换流水线、报告生成等按步骤进行的流程。 |
  • Network accessline 264
    | **[ConcurrentWorkflow](https://docs.swarms.world/api/concurrent-workflow)** | 智能体同时运行任务,以获得最高效率。 | 批处理、并行数据分析等高吞吐量任务。 |
  • Network accessline 265
    | **[AgentRearrange](https://docs.swarms.world/api/agent-rearrange)** | 动态映射智能体之间的复杂关系(例如 `a -> b, c`)。 | 灵活、自适应的工作流,任务分发和动态路由。 |
  • Network accessline 266
    | **[GraphWorkflow](https://docs.swarms.world/api/graph-workflow)** | 将智能体编排为有向无环图(DAG)中的节点。 | 依赖关系复杂的项目,例如软件构建。 |
  • Network accessline 267
    | **[MixtureOfAgents (MoA)](https://docs.swarms.world/api/mixture-of-agents)** | 并行调用多个专家智能体,并综合它们的输出。 | 复杂问题求解,通过协作达到最先进的效果。 |
  • Network accessline 268
    | **[GroupChat](https://docs.swarms.world/api/group-chat)** | 智能体通过对话界面协作并做出决策。 | 实时协作决策、谈判和头脑风暴。 |
  • Network accessline 269
    | **[ForestSwarm](https://docs.swarms.world/api/forest-swarm)** | 为给定任务动态选择最合适的智能体或智能体树。 | 任务路由、按专长优化,以及复杂的决策树。 |
  • Network accessline 270
    | **[HierarchicalSwarm](https://docs.swarms.world/api/hierarchical-swarm)** | 由一个主管(director)制定计划并将任务分发给专门的工作智能体。 | 复杂的项目管理、团队协调,以及带反馈循环的分层决策。 |
  • Network accessline 271
    | **[HeavySwarm](https://docs.swarms.world/api/heavy-swarm)** | 通过专门的智能体(研究、分析、备选方案、验证)实现五阶段工作流,进行全面的任务分析。 | 复杂的研究与分析任务、金融分析、战略规划和综合报告。 |
  • Network accessline 272
    | **[SwarmRouter](https://docs.swarms.world/api/swarm-router)** | 通用编排器,提供单一接口以动态选择并运行任意类型的 swarm。 | 简化复杂工作流、在 swarm 策略之间切换,以及统一的多智能体管理。 |
  • Network accessline 274
    我们提供了 60 多种多智能体结构,[点击这里](https://docs.swarms.world)了解全部内容。
  • Network accessline 357
    受 `einsum` 启发,`AgentRearrange` 让你可以用简单的字符串语法定义智能体之间复杂的非线性关系。[了解更多](https://docs.swarms.world/api/agent-rearrange)。这种架构非常适合编排动态工作流,智能体可以并行、串行,或以你选择的任意组合方式工作。
  • Network accessline 387
    当你的工作流包含扇出/扇入模式、条件依赖,或任何无法用一条直线或一个扁平并行批次表达的结构时,`GraphWorkflow` 是正确的选择。[了解更多关于 GraphWorkflow 的信息](https://docs.swarms.world/api/graph-workflow)
  • Network accessline 426
    `SwarmRouter` 提供单一接口来运行任意类型的 swarm,从而简化复杂工作流的构建。你不必导入和管理不同的 swarm 类,只需修改 `swarm_type` 参数即可动态选择所需的类型。[阅读完整文档](https://docs.swarms.world/api/swarm-router)
  • Network accessline 482
    `AutoSwarmBuilder` 会根据你的任务描述自动生成专门的智能体及其工作流。只需描述你的需求,它就会创建一个完整的多智能体系统,包含详细的提示词和最优的智能体配置。[了解更多关于 AutoSwarmBuilder 的信息](https://docs.swarms.world/api/auto-swarm-builder)
  • Network accessline 524
    `MixtureOfAgents` 架构将任务并行交给多个"专家"智能体处理,然后由一个聚合智能体综合它们各不相同的输出,得到最终的高质量结果。[点击这里了解更多](https://docs.swarms.world/examples/mixture-of-agents-example)
  • Network accessline 697
    这种架构非常适合金融分析、战略规划、研究报告,以及任何需要深入、多维度分析的任务。[了解更多关于 HeavySwarm 的信息](https://docs.swarms.world/api/heavy-swarm)
  • Network accessline 703
    **社交算法** 提供了一个灵活的框架,用于定义智能体之间的自定义通信模式。你可以将任意社交算法作为可调用对象上传,由它定义通信顺序,让智能体以精巧的方式相互交流。[了解更多关于社交算法的信息](https://docs.swarms.world/api/social-algorithms)
  • Network accessline 761
    完整文档位于 **[docs.swarms.world](https://docs.swarms.world)**。下面是使用 Swarms 进行开发时最有用的资源,既适合人类阅读,也适合 AI 编程助手使用。
  • Network accessline 763
    | 资源 | 链接 | 用途 | |---|---|---| | **主文档** | [docs.swarms.world](https://docs.swarms.world) | 指南、API 参考、教程 |
  • Network accessline 764
    |---|---|---| | **主文档** | [docs.swarms.world](https://docs.swarms.world) | 指南、API 参考、教程 | | **`llms.txt`(可供 LLM 摄取的文档)** | [docs.swarms.world/llms.txt](https://docs.swarms.world/llms.txt) | 整套文档的单一机器可读索引,专为 LLM 和 AI IDE(Cursor、Claude Code 等
  • Network accessline 765
    | **主文档** | [docs.swarms.world](https://docs.swarms.world) | 指南、API 参考、教程 |
  • Network accessline 766
    | **`llms.txt`(可供 LLM 摄取的文档)** | [docs.swarms.world/llms.txt](https://docs.swarms.world/llms.txt) | 整套文档的单一机器可读索引,专为 LLM 和 AI IDE(Cursor、Claude Code 等)一次性获取而格式化 |
  • Network accessline 767
    | **MCP 集成指南** | [docs.swarms.world/mcp](https://docs.swarms.world/mcp) | 如何将 Swarms `Agent` 连接到任意 [模型上下文协议](https://modelcontextprotocol.io) 服务器、自动发现其工具,并在 swarm 中调用 |
  • Network accessline 768
    | **API 参考** | [docs.swarms.world/api](https://docs.swarms.world/api) | `Agent`、`SequentialWorkflow`、`ConcurrentWorkflow`、`AgentRearrange`、`GraphWorkflow`、`SwarmRouter` 以及每一种多智能体架构的逐类参考 |
  • Network accessline 769
    | **环境设置** | [docs.swarms.world/environment-setup](https://docs.swarms.world/environment-setup) | API 密钥、模型提供商和配置选项 |
  • Network accessline 771
    > **给 AI 编程助手的提示:** 将你的工具(Claude Code、Cursor、Windsurf、Continue 等)指向 `https://docs.swarms.world/llms.txt`。它会一次性拉取整个文档索引,无需逐个问题查询即可写出地道的 Swarms 代码。
  • Network accessline 785
    Swarms 提供了一个全面的企业级多智能体基础设施平台,专为生产规模部署和与现有系统的无缝集成而设计。[点击这里了解更多 swarms 功能](https://docs.swarms.world/community/features)
  • Network accessline 800
    | 协议 | 说明 | 文档 | |----------|-------------|---------------| | **[MCP(模型上下文协议)](https://docs.swarms.world/integrations/mcp)** | 供 AI 智能体通过 MCP 服务器与外部工具和服务交互的标准化协议。支持动态工具发现与执行。 | [MCP 集成指南](https://docs.swarms.world/integrations/mcp) |
  • Network accessline 801
    |----------|-------------|---------------| | **[MCP(模型上下文协议)](https://docs.swarms.world/integrations/mcp)** | 供 AI 智能体通过 MCP 服务器与外部工具和服务交互的标准化协议。支持动态工具发现与执行。 | [MCP 集成指南](https://docs.swarms.world/integrations/mcp) | | **[X402](https://docs
  • Network accessline 802
    | **[MCP(模型上下文协议)](https://docs.swarms.world/integrations/mcp)** | 供 AI 智能体通过 MCP 服务器与外部工具和服务交互的标准化协议。支持动态工具发现与执行。 | [MCP 集成指南](https://docs.swarms.world/integrations/mcp) |
  • Network accessline 803
    | **[X402](https://docs.swarms.world/examples/integrations/x402-payment)** | 面向 API 端点的加密货币支付协议。支持以按次付费模式将智能体商业化。 | [X402 快速入门](https://docs.swarms.world/examples/integrations/x402-payment) |
  • Network accessline 804
    | **[Swarms 市场](https://swarms.world)** | 用于发现和分享可直接投入生产的提示词、智能体和工具的平台。支持从市场自动加载提示词,也支持直接从代码发布你自己的提示词。 | [市场教程](https://docs.swarms.world/integrations/marketplace) |
  • Network accessline 805
    | **[Open Responses](https://www.openresponses.org/)** | 基于 OpenAI Responses API 的多提供商、可互操作 LLM 接口的开源规范与生态。提供统一的 schema 和工具,用于调用语言模型、流式返回结果和组合智能体工作流,与具体提供商无关。 | [Open Responses 官网](https://www.openresponses.org/) |
  • Network accessline 806
    | **[Agent Skills](https://docs.swarms.world/agents/agent-skills)** | 由 Anthropic 提出的轻量级、基于 markdown 的格式,用于定义模块化、可复用的智能体能力。通过从简单的 SKILL.md 文件加载技能定义,无需修改代码即可让智能体专业化。 | [Agent Skills 文档](https://docs.swarms.world/agents/agent-skills) |
  • Network accessline 821
    在我们的[贡献者指南](https://docs.swarms.world/community/contributing)中了解如何产生有意义的影响。
  • Network accessline 827
    1. **找一个要解决的 Issue:** 最好的起点是访问我们的[**贡献项目看板**](https://github.com/users/kyegomez/projects/1)。留意带有 `good first issue` 标签的 issue,它们是专门为新贡献者挑选的。
  • Network accessline 829
    2. **报告 Bug 或提出功能需求:** 有新想法,或发现了不正常的地方?我们很乐意听取你的意见。请在 GitHub Issues 页面[**提交 Bug 报告或功能需求**](https://github.com/kyegomez/swarms/issues)。
  • Network accessline 831
    3. **了解我们的工作流和规范:** 在提交你的工作之前,请阅读完整的[**贡献指南**](https://github.com/kyegomez/swarms/blob/master/CONTRIBUTING.md)。为了保持代码质量,我们也建议你阅读[**代码整洁**](https://docs.swarms.world/community/contributing-to-docs)指南。
  • Network accessline 833
    4. **加入讨论:** 想参与路线图讨论并与其他开发者交流,请加入我们的 [**Discord**](https://discord.gg/EamjgSaEQf) 社区。
  • Network accessline 835
    5. **所有提交、PR 和 Issue 都必须使用 WARP:** 无论是人还是 AI 智能体,所有贡献者的提交信息、PR 标题和 Issue 标题都必须采用 WARP(Warp Speed Protocol)速记格式:`[TYPE][Function/FileName][Short Description]`,例如 `[FIX][Agent._run][Raise AgentLLMError after retry exhaustion]`。完整规范见 [**WARP G
  • Network accessline 841
    <a href="https://github.com/kyegomez/swarms/graphs/contributors">
  • Network accessline 842
    <img src="https://contrib.rocks/image?repo=kyegomez/swarms" />
  • Network accessline 850
    - **在招职位:** [swarms.ai/hiring](https://swarms.ai/hiring)
  • Network accessline 856
    加入 **[Swarms Discord](https://discord.gg/EamjgSaEQf)**,与数千名智能体开发者和 AI 工程师一起获取技术支持、展示项目、开展协作,并了解 swarms 生态的最新动态。
  • Network accessline 858
    [加入 Swarms Discord →](https://discord.gg/EamjgSaEQf)
  • Network accessline 866
    | 平台 | 说明 | 链接 | |----------|-------------|------| | 文档 | 官方文档与指南 | [docs.swarms.world](https://docs.swarms.world) |
  • Network accessline 867
    |----------|-------------|------| | 文档 | 官方文档与指南 | [docs.swarms.world](https://docs.swarms.world) | | 博客 | 最新动态与技术文章 | [Medium](https://medium.com/@kyeg) |
  • Network accessline 868
    | 文档 | 官方文档与指南 | [docs.swarms.world](https://docs.swarms.world) |
  • Network accessline 869
    | 博客 | 最新动态与技术文章 | [Medium](https://medium.com/@kyeg) |
  • Network accessline 870
    | Discord | 实时聊天与社区支持 | [加入 Discord](https://discord.gg/EamjgSaEQf) |
  • Network accessline 871
    | Twitter | 最新消息与公告 | [@swarms_corp](https://twitter.com/swarms_corp) |
  • Network accessline 872
    | LinkedIn | 职业网络与动态 | [The Swarm Corporation](https://www.linkedin.com/company/the-swarm-corporation) |
  • Network accessline 873
    | YouTube | 教程与演示 | [Swarms 频道](https://www.youtube.com/channel/UC9yXyitkbU_WSy7bd_41SqQ) |
  • Network accessline 874
    | 活动 | 参加我们的社区活动 | [在此报名](https://lu.ma/swarms_calendar) |
  • Network accessline 875
    | 入门指导 | 由 Swarms 创始人兼首席维护者 Kye Gomez 带你入门 | [预约指导](https://cal.com/swarms/swarms-onboarding-session) |
  • Network accessline 886
    title   = {{Swarms: Production-Grade Multi-Agent Infrastructure Platform}},   year    = {2022},   howpublished = {\url{https://github.com/kyegomez/swarms}},
  • Network accessline 887
    year    = {2022},   howpublished = {\url{https://github.com/kyegomez/swarms}},   note    = {Documentation available at \url{https://docs.swarms.world}},
  • Network accessline 888
    howpublished = {\url{https://github.com/kyegomez/swarms}},
  • Network accessline 889
    note    = {Documentation available at \url{https://docs.swarms.world}},

SKILL.md

  • Network accessline 14
    - Docs MCP server, no key: `https://docs.swarms.world/mcp` (`claude mcp add --transport http swarms-docs https://docs.swarms.world/mcp`)
  • Network accessline 15
    - Marketplace MCP server, Swarms API key for calls: `https://swarms.world/mcp`
  • Network accessline 16
    - Plain-text docs: [llms.txt](https://docs.swarms.world/llms.txt) (index), [llms-full.txt](https://docs.swarms.world/llms-full.txt) (every page)
  • Network accessline 33
    Set the key for whichever provider you use — any [LiteLLM](https://docs.litellm.ai/docs/providers) model string works:
  • Access to secretsline 36
    [Credential-related source omitted]
  • Access to secretsline 37
    [Credential-related source omitted]
  • Access to secretsline 38
    [Credential-related source omitted]
  • Network accessline 163
    agent_name="MCPAgent",     model_name="gpt-5.4",     mcp_url="http://localhost:8000/sse",
  • Network accessline 164
    model_name="gpt-5.4",     mcp_url="http://localhost:8000/sse",     # or: mcp_urls=["http://localhost:8000/sse", "http://localhost:8001/sse"]
  • Network accessline 165
    mcp_url="http://localhost:8000/sse",
  • Network accessline 166
    # or: mcp_urls=["http://localhost:8000/sse", "http://localhost:8001/sse"]
  • Network accessline 176
    mgr = MCPManager(mcp_url="http://localhost:8000/sse")
  • Network accessline 642
    - Docs: [docs.swarms.world](https://docs.swarms.world) · [Agent API](https://docs.swarms.world/api/agent)

example.py

  • Executable scriptline 1
    Executable file

examples/README.md

  • Network accessline 366
    | [O3](models/openai/o3_agent.py) | O3 model integration | | [Qwen](models/qwen/qwen_3_base.py) | Qwen model integration | | [Ollama](https://docs.swarms.world) | Local Ollama and other providers via LiteLLM—see docs and [models/](models/) 
  • Network accessline 368
    | [Ollama](https://docs.swarms.world) | Local Ollama and other providers via LiteLLM—see docs and [models/](models/) |
  • Network accessline 403
    | Category | Example | Description | Link | |----------|---------|-------------|------| | **Basic Examples** | Basic Agent | Simple agent setup and usage | [Basic Agent](https://docs.swarms.world/examples/basic-agent) |
  • Network accessline 404
    |----------|---------|-------------|------| | **Basic Examples** | Basic Agent | Simple agent setup and usage | [Basic Agent](https://docs.swarms.world/examples/basic-agent) | | **Basic Examples** | Agent with Tools | Using agents with vari
  • Network accessline 405
    | **Basic Examples** | Basic Agent | Simple agent setup and usage | [Basic Agent](https://docs.swarms.world/examples/basic-agent) |
  • Network accessline 406
    | **Basic Examples** | Agent with Tools | Using agents with various tools | [Agent with Tools](https://docs.swarms.world/examples/agent-with-tools) |
  • Network accessline 407
    | **Basic Examples** | Agent with Structured Outputs | Working with structured data outputs | [Structured Outputs](https://docs.swarms.world/agents/structured-outputs) |
  • Network accessline 408
    | **Basic Examples** | Agent with MCP Integration | Model Context Protocol integration | [MCP Integration](https://docs.swarms.world/integrations/mcp) |
  • Network accessline 409
    | **Basic Examples** | Vision Processing | Agents with image processing capabilities | [Vision Processing](https://docs.swarms.world/examples/vision-agent) |
  • Network accessline 410
    | **Basic Examples** | Multiple Images | Working with multiple images | [Multiple Images](https://docs.swarms.world/examples/vision-agent) |
  • Network accessline 411
    | **Basic Examples** | Vision and Tools | Combining vision with tool usage | [Vision and Tools](https://docs.swarms.world/examples/vision-agent) |
  • Network accessline 412
    | **Basic Examples** | Agent Streaming | Real-time agent output streaming | [Agent Streaming](https://docs.swarms.world/examples/agents/agent-streaming) |
  • Network accessline 413
    | **Basic Examples** | Agent Output Types | Different output formats and types | [Output Types](https://docs.swarms.world/agents/structured-outputs) |
  • Network accessline 414
    | **Basic Examples** | Gradio Chat Interface | Building interactive chat interfaces | [Gradio UI](https://docs.swarms.world/examples/basic-agent) |
  • Network accessline 415
    | **Model Providers** | Model Providers Overview | Complete guide to supported models | [Model Providers](https://docs.swarms.world/integrations/model-providers) |
  • Network accessline 416
    | **Model Providers** | OpenAI | OpenAI model integration | [OpenAI Examples](https://docs.swarms.world/integrations/model-providers) |
  • Network accessline 417
    | **Model Providers** | Anthropic | Claude model integration | [Anthropic Examples](https://docs.swarms.world/integrations/model-providers) |
  • Network accessline 418
    | **Model Providers** | Groq | Groq model integration | [Groq Examples](https://docs.swarms.world/integrations/model-providers) |
  • Network accessline 419
    | **Model Providers** | Cohere | Cohere model integration | [Cohere Examples](https://docs.swarms.world/integrations/model-providers) |
  • Network accessline 420
    | **Model Providers** | DeepSeek | DeepSeek model integration | [DeepSeek Examples](https://docs.swarms.world/integrations/model-providers) |
  • Network accessline 421
    | **Model Providers** | Ollama | Local Ollama model integration | [Ollama Examples](https://docs.swarms.world/integrations/model-providers) |
  • Network accessline 422
    | **Model Providers** | OpenRouter | OpenRouter model integration | [OpenRouter Examples](https://docs.swarms.world/integrations/model-providers) |
  • Network accessline 423
    | **Model Providers** | XAI | XAI model integration | [XAI Examples](https://docs.swarms.world/integrations/model-providers) |
  • Network accessline 424
    | **Model Providers** | Llama4 | Llama4 model integration | [Llama4 Examples](https://docs.swarms.world/integrations/model-providers) |
  • Network accessline 425
    | **Multi-Agent Architecture** | HierarchicalSwarm | Hierarchical agent orchestration | [HierarchicalSwarm Examples](https://docs.swarms.world/examples/hierarchical-swarm-example) |
  • Network accessline 426
    | **Multi-Agent Architecture** | Hybrid Hierarchical-Cluster Swarm | Advanced hierarchical patterns | [HHCS Examples](https://docs.swarms.world/api/hhcs) |
  • Network accessline 427
    | **Multi-Agent Architecture** | GroupChat | Multi-agent conversations | [GroupChat Examples](https://docs.swarms.world/examples/group-chat-example) |
  • Network accessline 428
    | **Multi-Agent Architecture** | Sequential Workflow | Step-by-step agent workflows | [Sequential Examples](https://docs.swarms.world/examples/sequential-workflow-example) |
  • Network accessline 429
    | **Multi-Agent Architecture** | SwarmRouter | Universal swarm orchestration | [SwarmRouter Examples](https://docs.swarms.world/architectures/swarm-router) |
  • Network accessline 430
    | **Multi-Agent Architecture** | MultiAgentRouter | Minimal router example | [MultiAgentRouter Examples](https://docs.swarms.world/api/multi-agent-router) |
  • Network accessline 431
    | **Multi-Agent Architecture** | ConcurrentWorkflow | Parallel agent execution | [Concurrent Examples](https://docs.swarms.world/examples/concurrent-workflow-example) |
  • Network accessline 432
    | **Multi-Agent Architecture** | Mixture of Agents | Expert agent collaboration | [MoA Examples](https://docs.swarms.world/examples/mixture-of-agents-example) |
  • Network accessline 433
    | **Multi-Agent Architecture** | Unique Swarms | Specialized swarm patterns | [Unique Swarms](https://docs.swarms.world/architectures/overview) |
  • Network accessline 434
    | **Multi-Agent Architecture** | Agents as Tools | Using agents as tools in workflows | [Agents as Tools](https://docs.swarms.world/architectures/overview) |
  • Network accessline 435
    | **Multi-Agent Architecture** | Aggregate Responses | Combining multiple agent outputs | [Aggregate Examples](https://docs.swarms.world/architectures/mixture-of-agents) |
  • Network accessline 436
    | **Multi-Agent Architecture** | Interactive GroupChat | Real-time agent interactions | [Interactive GroupChat](https://docs.swarms.world/examples/group-chat-example) |
  • Network accessline 437
    | **Applications** | Advanced Research System | Multi-agent research system inspired by Anthropic's research methodology | [AdvancedResearch](https://github.com/The-Swarm-Corporation/AdvancedResearch) |
  • Network accessline 438
    | **Applications** | Hospital Simulation | Healthcare simulation system using multi-agent architecture | [HospitalSim](https://github.com/The-Swarm-Corporation/HospitalSim) |
  • Network accessline 439
    | **Applications** | Browser Agents | Web automation with agents | [Browser Agents](https://docs.swarms.world/examples/integrations/browser-use) |
  • Network accessline 440
    | **Applications** | Finance Analysis | Financial applications | [Finance Examples](https://docs.swarms.world/examples/use-cases/financial-analysis) |
  • Network accessline 441
    | **Cookbook & Templates** | Examples Overview | Complete examples directory | [Examples Index](https://docs.swarms.world/examples/) |
  • Network accessline 442
    | **Cookbook & Templates** | Cookbook Index | Curated example collection | [Cookbook](https://docs.swarms.world/examples/overviews/cookbook) |
  • Network accessline 443
    | **Cookbook & Templates** | Paper Implementations | Research paper implementations | [Paper Implementations](https://docs.swarms.world/examples/overviews/paper-implementations) |
  • Network accessline 444
    | **Cookbook & Templates** | Templates & Applications | Reusable templates | [Templates](https://docs.swarms.world/examples/overviews/templates) |

examples/changelogs/880_update_changelog_examples/01_marketplace_prompt_fetching.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/02_round_robin_swarm_routing.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/03_graph_workflow_rustworkx.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/04_agent_rearrange.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/05_nested_swarms.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/06_spreadsheet_swarm.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/07_model_router.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/08_self_moa_seq.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/09_single_voice_agent.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/10_multi_agent_voice_debate.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/11_hierarchical_voice_swarm.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/12_debate_with_judge.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/13_council_as_judge.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/14_swarm_router_round_robin.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/15_graph_workflow_batch_agents.py

  • Executable scriptline 1
    Executable file

examples/changelogs/880_update_changelog_examples/README.md

  • Access to secretsline 59
    [Credential-related source omitted]
  • Access to secretsline 62
    [Credential-related source omitted]
  • Access to secretsline 65
    [Credential-related source omitted]
  • Access to secretsline 66
    [Credential-related source omitted]
  • Access to secretsline 72
    [Credential-related source omitted]
  • Access to secretsline 73
    [Credential-related source omitted]
  • Access to secretsline 74
    [Credential-related source omitted]
  • Access to secretsline 75
    [Credential-related source omitted]
  • Access to secretsline 114
    [Credential-related source omitted]
  • Access to secretsline 305
    [Credential-related source omitted]
  • Access to secretsline 324
    [Credential-related source omitted]
  • Access to secretsline 343
    [Credential-related source omitted]
  • Network accessline 417
    - [Swarms Documentation](https://docs.swarms.world)
  • Network accessline 418
    - [Swarms GitHub Repository](https://github.com/kyegomez/swarms)
  • Network accessline 419
    - [Swarms Marketplace](https://swarms.world/marketplace)

examples/changelogs/880_update_changelog_examples/autosaving_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/advisor_swarm_basic.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/advisor_swarm_custom_agents.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/agent_rearrange_batch_run.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/agent_rearrange_repeated_flow.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/conversation_cache_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/env_loading_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 3
    [Credential-related source omitted]

examples/changelogs/v11_update/graph_workflow_checkpoint.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/graph_workflow_serialization.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/heavy_swarm_16_agents.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/heavy_swarm_grok_basic.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/heavy_swarm_grok_router.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/hierarchical_swarm_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/planner_generator_evaluator_basic.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/planner_generator_evaluator_with_tools.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/planner_worker_swarm_basic.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/planner_worker_task_schema.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/sequential_workflow_drift_detection.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v11_update/v11_blog.md

  • Network accessline 341
    **What it was:** When agents were given URL-fetching tools, nothing prevented them from requesting internal network addresses — `http://192.168.x.x`, `http://10.x.x.x`, `http://localhost`, `http://169.254.169.254` (AWS metadata endpoint), a

examples/changelogs/v11_update/v11_changelog.md

  • Dangerous shell operationline 647
    # - base64 decode piped to shell  (base64 -d ... | bash)
  • Dangerous shell operationline 650
    # - sudo / su / pkexec (privilege escalation)
  • Network accessline 651
    # - /etc/passwd, /etc/shadow, /etc/sudoers reads # - environment variable dumps (printenv, env |, set |) # - network exfiltration (nc -e, ncat -e, wget --post, curl -d)
  • Network accessline 652
    # - environment variable dumps (printenv, env |, set |) # - network exfiltration (nc -e, ncat -e, wget --post, curl -d) # - history manipulation (history -c, unset histfile)
  • Dangerous shell operationline 653
    # - network exfiltration (nc -e, ncat -e, wget --post, curl -d)
  • Network accessline 653
    # - network exfiltration (nc -e, ncat -e, wget --post, curl -d)
  • Access to secretsline 764
    [Credential-related source omitted]

examples/changelogs/v12_update/01_persistent_memory.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v12_update/02_context_compression.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v12_update/03_grep_tool_autonomous_loop.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v12_update/04_conversation_memory_compact.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v12_update/05_graph_workflow_callbacks.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v12_update/06_arun_stream.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v12_update/07_interactive_mode.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v12_update/article.md

  • Network accessline 3
    > Apache 2.0 · [github.com/kyegomez/swarms](https://github.com/kyegomez/swarms)

examples/changelogs/v12_update/byzantine_consensus.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v12_update/changelog_v12.md

  • Network accessline 3
    > Apache 2.0 · [github.com/kyegomez/swarms](https://github.com/kyegomez/swarms)

examples/changelogs/v12_update/changelog_v12_organized.md

  • Network accessline 3
    > Apache 2.0 · [github.com/kyegomez/swarms](https://github.com/kyegomez/swarms)

examples/changelogs/v13/README.md

  • Access to secretsline 8
    [Credential-related source omitted]

examples/changelogs/v13/agent_lookup_helpers_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v13/agent_rearrange_flow_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v13/agent_tools_default_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v13/cli_examples.sh

  • Executable scriptline 1
    #!/usr/bin/env bash

examples/changelogs/v13/graph_workflow_composition_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v13/groupchat_self_selecting_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v13/heavy_swarm_variant_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v13/round_robin_rotation_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v13/sequential_workflow_streaming_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v13/swarm_router_groupchat_example.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/01_opentelemetry_tracing.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 13
    [Credential-related source omitted]

examples/changelogs/v14-zena/02_instrument_custom_harness.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/03_mcp_manager.py

  • Executable scriptline 1
    Executable file
  • Network accessline 14
    agent_name="MCP-Agent",     model_name="gpt-5.4",     mcp_url="http://localhost:8000/mcp",
  • Network accessline 15
    model_name="gpt-5.4",     mcp_url="http://localhost:8000/mcp",     max_loops=1,
  • Network accessline 16
    mcp_url="http://localhost:8000/mcp",
  • Network accessline 23
    model_name="gpt-5.4",     mcp_urls=[         "http://localhost:8000/mcp",
  • Network accessline 24
    mcp_urls=[         "http://localhost:8000/mcp",         "https://tools.internal.example.com/mcp",
  • Network accessline 25
    "http://localhost:8000/mcp",
  • Network accessline 26
    "https://tools.internal.example.com/mcp",
  • Network accessline 38
    #     agent_name="OAuth-MCP-Agent", #     model_name="gpt-5.4", #     mcp_url="https://api.partner.example.com/mcp",
  • Network accessline 39
    #     model_name="gpt-5.4", #     mcp_url="https://api.partner.example.com/mcp", #     mcp_oauth=MCPOAuthConfig(
  • Network accessline 40
    #     mcp_url="https://api.partner.example.com/mcp",
  • Access to secretsline 43
    [Credential-related source omitted]

examples/changelogs/v14-zena/04_auto_agent_builder.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/05_auction_swarm.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/06_groupchat_turn_based.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/07_hierarchical_swarm_recovery.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/09_class_to_pydantic.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/10_concurrent_workflow_on_error.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/11_graph_workflow.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/12_thread_pool_sizing.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/13_agent_loader_csv.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v14-zena/README.md

  • Access to secretsline 11
    [Credential-related source omitted]

examples/changelogs/v9_examples/autonomous_looper.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v9_examples/example_autonomous_looper_tools.py

  • Executable scriptline 1
    Executable file

examples/changelogs/v9_examples/example_sub_agents.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 6
    [Credential-related source omitted]

examples/channel_examples/agent_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/agent_rearrange_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/agentmail_channel_example.py

  • Executable scriptline 1
    Executable file
  • Network accessline 3
    [Credential-related source omitted]
  • Access to secretsline 3
    [Credential-related source omitted]

examples/channel_examples/concurrent_workflow_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/graph_workflow_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/groupchat_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/hierarchical_swarm_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/http_channel_example.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    URL = "http://127.0.0.1:8765/channels/ev-report"

examples/channel_examples/http_channel_server.py

  • Executable scriptline 1
    Executable file
  • Network accessline 38
    if __name__ == "__main__":     print("Serving channels on http://127.0.0.1:8765")
  • Network accessline 39
    print("Serving channels on http://127.0.0.1:8765")

examples/channel_examples/majority_voting_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/mixture_of_agents_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/planner_worker_swarm_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/queue_channel_example.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/resume_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/sequential_workflow_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/smtp_channel_example.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/sqlite_channel.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/sqlite_channel_example.py

  • Executable scriptline 1
    Executable file

examples/channel_examples/swarm_router_channel.py

  • Executable scriptline 1
    Executable file

examples/cli/01_setup_check.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/02_onboarding.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/03_get_api_key.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/04_check_login.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/05_create_agent.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/06_run_agents_yaml.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/07_load_markdown.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/08_llm_council.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/09_heavy_swarm.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/10_autoswarm.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/11_features.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/12_help.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/13_auto_upgrade.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/14_book_call.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/README.md

  • Access to secretsline 149
    [Credential-related source omitted]
  • Access to secretsline 150
    [Credential-related source omitted]
  • Access to secretsline 151
    [Credential-related source omitted]

examples/cli/research_agent_example.sh

  • Executable scriptline 1
    #!/bin/bash

examples/cli/run_all_examples.sh

  • Executable scriptline 1
    #!/bin/bash

examples/decision_models/calibrated_ensemble_judge.py

  • Executable scriptline 1
    Executable file

examples/decision_models/debate_referee_early_stop.py

  • Executable scriptline 1
    Executable file

examples/decision_models/decision_model_agent_router.py

  • Executable scriptline 1
    Executable file

examples/decision_models/decision_screening_funnel.py

  • Executable scriptline 1
    Executable file

examples/decision_models/get_decision_models_example.py

  • Executable scriptline 1
    Executable file

examples/decision_models/guarded_group_chat.py

  • Executable scriptline 1
    Executable file

examples/decision_models/openai_decisions.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 6
    [Credential-related source omitted]

examples/decision_models/simple_openai.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 3
    [Credential-related source omitted]

examples/decision_models/system_one_director_swarm.py

  • Executable scriptline 1
    Executable file

examples/decision_models/typesafe_ticket_triage.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 3
    [Credential-related source omitted]

examples/guides/840_update/agent_rearrange_concurrent_example.py

  • Executable scriptline 1
    Executable file

examples/guides/840_update/auto_swarm_builder_example.py

  • Executable scriptline 1
    Executable file

examples/guides/840_update/fallback_example.py

  • Executable scriptline 1
    Executable file

examples/guides/850_workshop/moa_seq_example.py

  • Executable scriptline 1
    Executable file

examples/guides/850_workshop/peer_review_example.py

  • Executable scriptline 1
    Executable file

examples/guides/850_workshop/test_agent_concurrent.py

  • Executable scriptline 1
    Executable file

examples/guides/agentsh_implementation/README.md

  • Network accessline 3
    A single-file implementation of **Agensh: Scaling Organizational Intelligence to 1,024 Agents** (Zhan, Song, Dong, Huang, Lian, Xia, Wei — Microsoft Research, [arXiv:2609.26781](https://arxiv.org/abs/2609.26781)), built on the Swarms `Agent
  • Access to secretsline 24
    [Credential-related source omitted]

examples/guides/agentsh_implementation/agentsh.py

  • Executable scriptline 1
    Executable file

examples/guides/changelog_890/01_dynamic_skills_loader.py

  • Executable scriptline 1
    Executable file

examples/guides/changelog_890/02_autonomous_agent_loop.py

  • Executable scriptline 1
    Executable file

examples/guides/changelog_890/03_agent_handoffs.py

  • Executable scriptline 1
    Executable file

examples/guides/changelog_890/04_api_key_validation.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 4
    [Credential-related source omitted]
  • Access to secretsline 22
    [Credential-related source omitted]

examples/guides/changelog_890/05_max_loops_parameter.py

  • Executable scriptline 1
    Executable file

examples/guides/changelog_890/06_multi_tool_agent_tutorial.py

  • Executable scriptline 1
    Executable file

examples/guides/changelog_890/07_hierarchical_voice_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/changelog_890/08_agent_rearrange_patterns.py

  • Executable scriptline 1
    Executable file

examples/guides/changelog_890/README.md

  • Access to secretsline 37
    [Credential-related source omitted]
  • Access to secretsline 40
    [Credential-related source omitted]
  • Network accessline 150
    - [Swarms Documentation](https://docs.swarms.world)
  • Network accessline 151
    - [Swarms GitHub Repository](https://github.com/kyegomez/swarms)
  • Network accessline 152
    - [Swarms Marketplace](https://swarms.world/marketplace)

examples/guides/demos/agent_with_fluidapi.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/apps/hiring_swarm.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/apps/smart_database_swarm.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/chart_swarm.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 208
    [Credential-related source omitted]

examples/guides/demos/crypto/dao_swarm.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/crypto/ethchain_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 55
    self.w3 = Web3(             Web3.HTTPProvider(                 "https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
  • Network accessline 56
    Web3.HTTPProvider(                 "https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"             )
  • Network accessline 57
    "https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
  • Access to secretsline 71
    [Credential-related source omitted]
  • Access to secretsline 72
    [Credential-related source omitted]
  • Network accessline 100
    try:             response = requests.get(
  • Network accessline 101
    response = requests.get(
  • Network accessline 102
    "https://api.coingecko.com/api/v3/simple/price",

examples/guides/demos/crypto/htx_swarm.py

  • Executable scriptline 1
    Executable file
  • Network accessline 121
    def fetch_htx_data(coin_name: str):     base_url = "https://api.huobi.pro"
  • Network accessline 122
    base_url = "https://api.huobi.pro"
  • Network accessline 130
    try:         ticker_response = requests.get(
  • Network accessline 131
    ticker_response = requests.get(
  • Network accessline 149
    order_book_response = requests.get(
  • Network accessline 167
    trades_response = requests.get(
  • Network accessline 186
    kline_response = requests.get(

examples/guides/demos/crypto/swarms_coin_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 93
    def fetch_swarms_data():     url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 94
    url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 100
    "include_24hr_change": "true",     }     response = requests.get(url, params=params)
  • Network accessline 101
    }     response = requests.get(url, params=params)     response.raise_for_status()
  • Network accessline 102
    response = requests.get(url, params=params)

examples/guides/demos/crypto/swarms_coin_multimarket.py

  • Executable scriptline 1
    Executable file
  • Network accessline 117
    def __init__(self):         self.base_urls = {             "coingecko": "https://api.coingecko.com/api/v3",
  • Network accessline 118
    self.base_urls = {             "coingecko": "https://api.coingecko.com/api/v3",             "dexscreener": "https://api.dexscreener.com/latest/dex",
  • Network accessline 119
    "coingecko": "https://api.coingecko.com/api/v3",
  • Network accessline 120
    "dexscreener": "https://api.dexscreener.com/latest/dex",
  • Network accessline 121
    "birdeye": "https://public-api.birdeye.so/public",  # Using Birdeye instead of Jupiter
  • Network accessline 126
    async with aiohttp.ClientSession() as session:

examples/guides/demos/cuda_swarm.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/finance/sentiment_news_analysis.py

  • Executable scriptline 1
    Executable file
  • Network accessline 135
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"         }         response = requests.get(url, headers=headers, timeout=10)
  • Network accessline 136
    }         response = requests.get(url, headers=headers, timeout=10)         response.raise_for_status()
  • Network accessline 137
    response = requests.get(url, headers=headers, timeout=10)
  • Network accessline 230
    if __name__ == "__main__":     url = "https://finance.yahoo.com/"
  • Network accessline 231
    url = "https://finance.yahoo.com/"

examples/guides/demos/hackathon_feb16/fraud.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/hackathon_feb16/sarasowti.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/insurance/insurance_swarm.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/legal/legal_swarm.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 17
    [Credential-related source omitted]
  • Access to secretsline 260
    [Credential-related source omitted]

examples/guides/demos/medical/health_privacy_swarm.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/medical/health_privacy_swarm_two.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/medical/medical_coder_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/medical/new_medical_rearrange.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/medical/ollama_demo.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/medical/rearrange_video_examples/term_sheet_swarm.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/news_aggregator_summarizer.py

  • Executable scriptline 1
    Executable file
  • Network accessline 17
    try:         ids = httpx.get(
  • Network accessline 18
    ids = httpx.get(
  • Network accessline 19
    "https://hacker-news.firebaseio.com/v0/topstories.json",
  • Network accessline 25
    for story_id in ids[:limit]:         try:             item = httpx.get(
  • Network accessline 26
    try:             item = httpx.get(                 f"https://hacker-news.firebaseio.com/v0/item/{story_id}.json",
  • Network accessline 27
    item = httpx.get(
  • Network accessline 28
    f"https://hacker-news.firebaseio.com/v0/item/{story_id}.json",
  • Network accessline 70
    try:         res = httpx.get(url, timeout=10)
  • Network accessline 71
    res = httpx.get(url, timeout=10)

examples/guides/demos/privacy_building.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/real_estate/README_realtor.md

  • Network accessline 12
    2. Get your Realtor API key: - Visit [Realtor Search API](https://rapidapi.com/ntd119/api/realtor-search/)
  • Network accessline 13
    - Visit [Realtor Search API](https://rapidapi.com/ntd119/api/realtor-search/)

examples/guides/demos/real_estate/morgtate_swarm.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/real_estate/real_estate_agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 61
    [Credential-related source omitted]
  • Access to secretsline 65
    [Credential-related source omitted]
  • Network accessline 67
    [Credential-related source omitted]
  • Access to secretsline 67
    [Credential-related source omitted]
  • Network accessline 68
    self.base_url = "https://api.propertyradar.com/v1"         self.session = requests.Session()         self.session.headers.update(
  • Network accessline 69
    self.session = requests.Session()
  • Access to secretsline 72
    [Credential-related source omitted]
  • Access to secretsline 174
    [Credential-related source omitted]
  • Access to secretsline 175
    [Credential-related source omitted]
  • Access to secretsline 183
    [Credential-related source omitted]
  • Access to secretsline 184
    [Credential-related source omitted]
  • Access to secretsline 189
    [Credential-related source omitted]
  • Access to secretsline 197
    [Credential-related source omitted]
  • Access to secretsline 294
    [Credential-related source omitted]
  • Access to secretsline 295
    [Credential-related source omitted]

examples/guides/demos/real_estate/realtor_agent.py

  • Network accessline 1
    import http.client
  • Executable scriptline 1
    Executable file
  • Network accessline 23
    Raises:         http.client.HTTPException: If the API request fails
  • Network accessline 24
    http.client.HTTPException: If the API request fails
  • Network accessline 27
    conn = http.client.HTTPSConnection(
  • Access to secretsline 32
    [Credential-related source omitted]

examples/guides/demos/science/materials_science_agents.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/science/open_scientist.py

  • Executable scriptline 1
    Executable file
  • Network accessline 77
    api_url = "https://api.exa.ai/search"
  • Access to secretsline 79
    [Credential-related source omitted]
  • Network accessline 94
    try:         response = requests.post(
  • Network accessline 95
    response = requests.post(

examples/guides/demos/science/paper_idea_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/science/paper_idea_profile.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/spike/agent_rearrange_test.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 31
    [Credential-related source omitted]

examples/guides/demos/spike/function_caller_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 30
    [Credential-related source omitted]

examples/guides/demos/spike/memory.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/spike/test.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 31
    [Credential-related source omitted]

examples/guides/demos/synthetic_data/profession_sim/convert_json_to_csv.py

  • Executable scriptline 1
    Executable file

examples/guides/demos/synthetic_data/profession_sim/format_prompt.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/guides/demos/synthetic_data/profession_sim/profession_persona_generator.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/callback_cron_example.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/cron_job_example.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/cron_job_figma_stock_swarms_tools_example.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/crypto_concurrent_cron_example.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/figma_stock_example.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/multi_agent_schedules_cron.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/non_blocking_cron.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/one_agent_many_tasks_cron.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/resilient_cron.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/simple_callback_example.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/simple_concurrent_crypto_cron.py

  • Executable scriptline 1
    Executable file
  • Network accessline 22
    try:         url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 23
    url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 32
    response = requests.get(url, params=params, timeout=10)

examples/guides/deployment/cron_job_examples/single_agent_cron.py

  • Executable scriptline 1
    Executable file

examples/guides/deployment/cron_job_examples/solana_price_tracker.py

  • Executable scriptline 1
    Executable file
  • Network accessline 25
    url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 36
    response = requests.get(url, params=params, timeout=10)

examples/guides/deployment/fastapi/README.md

  • Network accessline 42
    3. **Access the API**:    - API: http://localhost:8000
  • Network accessline 43
    - API: http://localhost:8000
  • Network accessline 44
    - Documentation: http://localhost:8000/docs
  • Network accessline 45
    - Health check: http://localhost:8000/health
  • Network accessline 49
    curl -X POST "http://localhost:8000/agent/run" \

examples/guides/deployment/fastapi/fastapi_agent_api_example.py

  • Executable scriptline 1
    Executable file
  • Network accessline 338
    print("Starting Swarms Agent API...")     print(         "API Documentation will be available at: http://localhost:8000/docs"
  • Network accessline 339
    print(         "API Documentation will be available at: http://localhost:8000/docs"     )
  • Network accessline 340
    "API Documentation will be available at: http://localhost:8000/docs"
  • Network accessline 341
    )     print("Alternative docs at: http://localhost:8000/redoc")     print("Health check at: http://localhost:8000/health")
  • Network accessline 342
    print("Alternative docs at: http://localhost:8000/redoc")
  • Network accessline 343
    print("Health check at: http://localhost:8000/health")
  • Network accessline 344
    print("Available agents at: http://localhost:8000/agents")
  • Network accessline 345
    print("Examples at: http://localhost:8000/examples")

examples/guides/fairy_swarm/fairy_swarm.py

  • Executable scriptline 1
    Executable file
  • Network accessline 16
    Reference: https://twitter.com/tldraw - December 2023 thread on fairies feature

examples/guides/fairy_swarm/fairy_swarm_examples/README.md

  • Access to secretsline 21
    [Credential-related source omitted]

examples/guides/fairy_swarm/fairy_swarm_examples/analytical_research.py

  • Executable scriptline 1
    Executable file

examples/guides/fairy_swarm/fairy_swarm_examples/basic_fairy_swarm.py

  • Executable scriptline 1
    Executable file

examples/guides/fairy_swarm/fairy_swarm_examples/custom_fairy.py

  • Executable scriptline 1
    Executable file

examples/guides/fairy_swarm/fairy_swarm_examples/custom_tools.py

  • Executable scriptline 1
    Executable file

examples/guides/fairy_swarm/fairy_swarm_examples/multi_page_wireframe.py

  • Executable scriptline 1
    Executable file

examples/guides/fairy_swarm/fairy_swarm_examples/selected_fairies.py

  • Executable scriptline 1
    Executable file

examples/guides/fairy_swarm/fairy_swarm_examples/standalone_tools.py

  • Executable scriptline 1
    Executable file

examples/guides/generation_length_blog/longform_generator.py

  • Executable scriptline 1
    Executable file

examples/guides/generation_length_blog/universal_api.py

  • Executable scriptline 1
    Executable file

examples/guides/geo_guesser_agent/README.md

  • Access to secretsline 16
    [Credential-related source omitted]

examples/guides/geo_guesser_agent/geo_guesser_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/graphworkflow_guide/comprehensive_demo.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/guides/graphworkflow_guide/quick_start_guide.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/guides/hackathon_judge_agent/hackathon_judger_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/hackathon_judge_agent/projects.csv

  • Network accessline 8
    (20%)","Manual Total Score",Manual Scoring Feedback 1,Yuki Sato,Japan,Keio University Blockchain Club,Daiko,Daiko AI tells you when to sell and why based on market data and risk profile.,Daiko AI tells you when to sell and why based on mark
  • Network accessline 9
    Total Score",Manual Scoring Feedback 1,Yuki Sato,Japan,Keio University Blockchain Club,Daiko,Daiko AI tells you when to sell and why based on market data and risk profile.,Daiko AI tells you when to sell and why based on market data and ris
  • Network accessline 10
    1,Yuki Sato,Japan,Keio University Blockchain Club,Daiko,Daiko AI tells you when to sell and why based on market data and risk profile.,Daiko AI tells you when to sell and why based on market data and risk profile.,https://www.youtube.com/wa
  • Network accessline 35
    Mint Affection Tokens to your user account Real-time Affection Score Inquiry All transactions can be viewed in Solana Explorer",https://github.com/TreapGoGo/neko-sol,,https://github.com/TreapGoGo/neko-sol,,"Swarms AI API, Solana AI Tools",,
  • Network accessline 36
    Real-time Affection Score Inquiry All transactions can be viewed in Solana Explorer",https://github.com/TreapGoGo/neko-sol,,https://github.com/TreapGoGo/neko-sol,,"Swarms AI API, Solana AI Tools",,,,,0, 3,Gladx,Hong Kong,0xWHU/ 武汉大学 Web3 俱乐
  • Network accessline 37
    All transactions can be viewed in Solana Explorer",https://github.com/TreapGoGo/neko-sol,,https://github.com/TreapGoGo/neko-sol,,"Swarms AI API, Solana AI Tools",,,,,0,
  • Network accessline 57
    🚀 Lightweight - Pure front-end implementation, no back-end server required",https://github.com/TreapGoGo/sol-dream,,https://github.com/TreapGoGo/sol-dream,,"Solana AI Tools, Swarms AI API",,,,,0,
  • Network accessline 58
    4,Rafael Oliveira,Brazil,Other,AurumGrid,"Aurumgrid AUI – Artificial Universal Intelligence ","Aurumgrid AUI – Artificial Universal Intelligence ",https://github.com/Aurumgrid/aurumgrid-aui,https://github.com/Aurumgrid/aurumgrid-aui,https:/
  • Network accessline 59
    ","Aurumgrid AUI – Artificial Universal Intelligence ",https://github.com/Aurumgrid/aurumgrid-aui,https://github.com/Aurumgrid/aurumgrid-aui,https://github.com/Aurumgrid/aurumgrid-aui,https://x.com/RafaelO9416467/status/1978837487494516820,
  • Network accessline 60
    ",https://github.com/Aurumgrid/aurumgrid-aui,https://github.com/Aurumgrid/aurumgrid-aui,https://github.com/Aurumgrid/aurumgrid-aui,https://x.com/RafaelO9416467/status/1978837487494516820,"Solana AI Tools, Aethir GPU Compute, Swarms AI API",
  • Network accessline 61
    5,Michael Afolabi,Nigeria,Superteam NG,Wojat,"Wojat is a comprehensive, AI-powered memecoin hunting platform that combines real-time data collection, social media analysis, and AI-driven insights to help traders discover the next big memeco
  • Network accessline 62
    6,Brooks Shui,Taiwan,Nankai University Blockchain Association / 南开大学区块链协会,SPR Platform,"🦹🏻<U+200D>♀<U+FE0F>🔮SPR1.0: The ATH-Powered VLM estimation platform (🔗https://reflexresearches.com/)
  • Network accessline 78
    The video recognition module further breaks through the limitations of static recognition by analyzing dynamic footage of smartphone boot-up demonstrations and functional operations to determine if there are issues such as color cast, light
  • Network accessline 94
    The video recognition module further breaks through the limitations of static recognition by analyzing dynamic footage of smartphone boot-up demonstrations and functional operations to determine if there are issues such as color cast, light
  • Network accessline 127
    - Telegram Bot to move chatting beyond the website - Public API - Solana Program & Token (Currently on Testnet)",https://drive.google.com/file/d/1odChCG-RZeiH7i1OjR88dUitb2h1pkJY/view?usp=sharing,https://elowen.ai,https://github.com/elowen-
  • Network accessline 128
    - Public API - Solana Program & Token (Currently on Testnet)",https://drive.google.com/file/d/1odChCG-RZeiH7i1OjR88dUitb2h1pkJY/view?usp=sharing,https://elowen.ai,https://github.com/elowen-ai,https://x.com/OzanAndac_/status/1981922432689619
  • Network accessline 129
    - Solana Program & Token (Currently on Testnet)",https://drive.google.com/file/d/1odChCG-RZeiH7i1OjR88dUitb2h1pkJY/view?usp=sharing,https://elowen.ai,https://github.com/elowen-ai,https://x.com/OzanAndac_/status/1981922432689619368,Solana AI
  • Network accessline 130
    8,Shivam Agarwal,India,Other,SolGame,"A lightweight pixel **multicharacter**, Play To Earn dungeon game built on the Solana Devnet Blockchain, built with Phaser, powered by Metaplex NFT Marketplace Protocol. Our motivation is to enable user
  • Network accessline 131
    9,Fawzan Pima,Ghana,SG Union,Sol Terminal," An mcp server for solana that allows ai agents to gain context of solana capabilities like  sending solana , checking sol balance , manage sol accounts and wallets getting sol address al without n
  • Network accessline 132
    10,Riadh M belarbi,United Kingdom of Great Britain and Northern Ireland,Imperial Blockchain,toky.fun,"Toky.fun is an all in one platform ecosystem allowing users to launch projects and grow them with no code, using AI agents and leveraging 
  • Network accessline 135
    Demo link at: https://x.com/MYadidya/status/1983074064211308648
  • Network accessline 137
    Youtube link: https://youtu.be/fJrnTWOWPRM","Nebula Protocol is the world's first decentralized Earth observation platform where autonomous AI agents with their own Solana wallets monitor our planet 24/7 and record findings immutably on-cha
  • Network accessline 139
    Demo link at: https://x.com/MYadidya/status/1983074064211308648
  • Network accessline 140
    or Youtube link: https://youtu.be/fJrnTWOWPRM",https://nebv2article.netlify.app/,https://nebulav2.netlify.app/,https://github.com/YadidyaM/Nebula-2.0---Decentralized-Earth-Observation-Platform,https://x.com/MYadidya/status/19830740642113086
  • Network accessline 141
    Youtube link: https://youtu.be/fJrnTWOWPRM",https://nebv2article.netlify.app/,https://nebulav2.netlify.app/,https://github.com/YadidyaM/Nebula-2.0---Decentralized-Earth-Observation-Platform,https://x.com/MYadidya/status/1983074064211308648,
  • Network accessline 142
    12,Togo,Japan,N/A,TinyPay,"TinyPay is a crypto-native payment application built on Solana, enabling seamless real-world transactions with digital assets — even without an internet connection. We’re building the bridge between digital assets
  • Network accessline 143
    We’re building the bridge between digital assets and everyday spending, making crypto payments as effortless as cash or cards.","TinyPay is a crypto-native payment application built on Solana, enabling seamless real-world transactions with 
  • Network accessline 144
    We’re building the bridge between digital assets and everyday spending, making crypto payments as effortless as cash or cards.",https://docs.google.com/presentation/d/1kXA47K0ovv51GvYYEm2yWVHrwJYQLrtKMqMoS5wUhMk/edit?usp=sharing,https://www
  • Network accessline 149
    ",https://youtu.be/nn3zgyBGgdQ?si=xYHt87szURiqvVZz,https://youtu.be/nn3zgyBGgdQ?si=xYHt87szURiqvVZz,https://github.com/foxholeAI/foxholeAI,https://x.com/alan_ywang/status/1984315036429664509,"Solana AI Tools, Aethir GPU Compute, Swarms AI A

examples/guides/hackathons/hackathon_sep_27/api_client.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 7
    [Credential-related source omitted]

examples/guides/hackathons/hackathon_sep_27/diet_coach_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/hackathons/hackathon_sep_27/nutritional_content_analysis_swarm.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 7
    [Credential-related source omitted]
  • Access to secretsline 13
    [Credential-related source omitted]
  • Access to secretsline 55
    [Credential-related source omitted]
  • Access to secretsline 61
    [Credential-related source omitted]
  • Network accessline 70
    url = "https://swarms-api-285321057562.us-east1.run.app/v1/swarm/completions"
  • Access to secretsline 73
    [Credential-related source omitted]
  • Network accessline 77
    response = requests.post(url, headers=headers, json=swarm_config)
  • Access to secretsline 83
    [Credential-related source omitted]
  • Access to secretsline 85
    [Credential-related source omitted]
  • Access to secretsline 88
    [Credential-related source omitted]

examples/guides/hackathons/hackathon_sep_27/nutritonal_content_analysis_swarm.sh

  • Executable scriptline 1
    #!/bin/bash
  • Access to secretsline 3
    [Credential-related source omitted]
  • Access to secretsline 4
    [Credential-related source omitted]
  • Access to secretsline 5
    [Credential-related source omitted]
  • Network accessline 10
    [Credential-related source omitted]
  • Access to secretsline 10
    [Credential-related source omitted]
  • Access to secretsline 11
    [Credential-related source omitted]

examples/guides/hiearchical_marketing_team.py

  • Executable scriptline 1
    Executable file

examples/guides/mem0/mem0_and_swarms.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 12
    [Credential-related source omitted]
  • Access to secretsline 14
    [Credential-related source omitted]

examples/guides/nano_banana_jarvis_agent/img_gen_nano_banana.py

  • Executable scriptline 1
    Executable file

examples/guides/nano_banana_jarvis_agent/jarvis_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/voice_agents/voice_agents_examples/README.md

  • Network accessline 7
    - Install the [voice-agents](https://pypi.org/project/voice-agents/) package: `pip install voice-agents`
  • Network accessline 37
    - [Examples index](https://docs.swarms.world/examples/overviews/examples-index) — full list of runnable examples
  • Network accessline 38
    - [Streaming agents](https://docs.swarms.world/examples/agents/agent-streaming) — token-streaming patterns used by the voice callback

examples/guides/voice_agents/voice_agents_examples/agent_speech.py

  • Executable scriptline 1
    Executable file

examples/guides/voice_agents/voice_agents_examples/agent_with_speech.py

  • Executable scriptline 1
    Executable file

examples/guides/voice_agents/voice_agents_examples/debate_with_speech.py

  • Executable scriptline 1
    Executable file

examples/guides/voice_agents/voice_agents_examples/google_calendar_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 10
    Method 1: OAuth2 Flow (Recommended for user calendars) ------------------------------------------------------- 1. Go to Google Cloud Console: https://console.cloud.google.com/
  • Network accessline 11
    ------------------------------------------------------- 1. Go to Google Cloud Console: https://console.cloud.google.com/ 2. Create a new project or select an existing one
  • Network accessline 12
    1. Go to Google Cloud Console: https://console.cloud.google.com/
  • Network accessline 37
    SCOPES = ['https://www.googleapis.com/auth/calendar']
  • Access to secretsline 41
    [Credential-related source omitted]
  • Access to secretsline 61
    [Credential-related source omitted]
  • Network accessline 78
    SCOPES = ['https://www.googleapis.com/auth/calendar']
  • Access to secretsline 84
    [Credential-related source omitted]
  • Access to secretsline 85
    [Credential-related source omitted]
  • Network accessline 88
    Method 3: Using gcloud CLI (Quick testing) ------------------------------------------ 1. Install Google Cloud SDK: https://cloud.google.com/sdk/docs/install
  • Network accessline 89
    ------------------------------------------ 1. Install Google Cloud SDK: https://cloud.google.com/sdk/docs/install 2. Authenticate: gcloud auth application-default login
  • Network accessline 90
    1. Install Google Cloud SDK: https://cloud.google.com/sdk/docs/install
  • Access to secretsline 94
    [Credential-related source omitted]
  • Network accessline 96
    Note: Access tokens expire. For production, implement token refresh logic. For more details: https://developers.google.com/calendar/api/guides/auth
  • Network accessline 97
    For more details: https://developers.google.com/calendar/api/guides/auth
  • Access to secretsline 116
    [Credential-related source omitted]
  • Access to secretsline 131
    [Credential-related source omitted]
  • Access to secretsline 132
    [Credential-related source omitted]
  • Access to secretsline 148
    [Credential-related source omitted]
  • Access to secretsline 149
    [Credential-related source omitted]
  • Access to secretsline 151
    [Credential-related source omitted]
  • Access to secretsline 153
    [Credential-related source omitted]
  • Network accessline 184
    url = f"https://www.googleapis.com/calendar/v3/calendars/{calendar_id}/events"
  • Access to secretsline 187
    [Credential-related source omitted]
  • Network accessline 191
    try:         with httpx.Client(timeout=30.0) as client:
  • Network accessline 192
    with httpx.Client(timeout=30.0) as client:
  • Access to secretsline 217
    [Credential-related source omitted]
  • Access to secretsline 231
    [Credential-related source omitted]
  • Access to secretsline 232
    [Credential-related source omitted]
  • Access to secretsline 246
    [Credential-related source omitted]
  • Access to secretsline 247
    [Credential-related source omitted]
  • Access to secretsline 249
    [Credential-related source omitted]
  • Access to secretsline 251
    [Credential-related source omitted]
  • Network accessline 257
    url = f"https://www.googleapis.com/calendar/v3/calendars/{calendar_id}/events"
  • Access to secretsline 260
    [Credential-related source omitted]
  • Network accessline 277
    try:         with httpx.Client(timeout=30.0) as client:
  • Network accessline 278
    with httpx.Client(timeout=30.0) as client:
  • Access to secretsline 298
    [Credential-related source omitted]
  • Access to secretsline 304
    [Credential-related source omitted]
  • Access to secretsline 305
    [Credential-related source omitted]
  • Access to secretsline 315
    [Credential-related source omitted]
  • Access to secretsline 316
    [Credential-related source omitted]
  • Access to secretsline 318
    [Credential-related source omitted]
  • Access to secretsline 320
    [Credential-related source omitted]
  • Network accessline 323
    url = (         "https://www.googleapis.com/calendar/v3/users/me/calendarList"
  • Network accessline 324
    "https://www.googleapis.com/calendar/v3/users/me/calendarList"
  • Access to secretsline 328
    [Credential-related source omitted]
  • Network accessline 332
    try:         with httpx.Client(timeout=30.0) as client:
  • Network accessline 333
    with httpx.Client(timeout=30.0) as client:

examples/guides/voice_agents/voice_agents_examples/hiearchical_speech_swarm.py

  • Executable scriptline 1
    Executable file

examples/guides/voice_agents/voice_agents_examples/run_auto_agent_with_speech.py

  • Executable scriptline 1
    Executable file

examples/guides/web_scraper_agents/batched_scraper_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/web_scraper_agents/web_scraper_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/workshops/workshop_sep_20/agent_tools_dict_example.py

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    max_loops=1,     output_type="final",     mcp_url="http://0.0.0.0:8000/mcp",
  • Network accessline 9
    output_type="final",     mcp_url="http://0.0.0.0:8000/mcp", )
  • Network accessline 10
    mcp_url="http://0.0.0.0:8000/mcp",

examples/guides/workshops/workshop_sep_20/batched_grid_simple_example.py

  • Executable scriptline 1
    Executable file

examples/guides/workshops/workshop_sep_20/geo_guesser_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/workshops/workshop_sep_20/jarvis_agent.py

  • Executable scriptline 1
    Executable file

examples/guides/x402_examples/README.md

  • Access to secretsline 22
    [Credential-related source omitted]
  • Access to secretsline 23
    [Credential-related source omitted]
  • Network accessline 42
    The server will start at `http://localhost:8000`
  • Network accessline 48
    curl http://localhost:8000/
  • Network accessline 53
    curl http://localhost:8000/research?query="What are the latest breakthroughs in quantum computing?"
  • Network accessline 71
    For testnet (current setup): - Network: `base-sepolia` - Uses free facilitator: `https://x402.org/facilitator`
  • Network accessline 72
    - Network: `base-sepolia` - Uses free facilitator: `https://x402.org/facilitator` - Test USDC only
  • Network accessline 73
    - Uses free facilitator: `https://x402.org/facilitator`
  • Network accessline 76
    For mainnet: 1. Get CDP API credentials from [cdp.coinbase.com](https://cdp.coinbase.com)
  • Network accessline 77
    1. Get CDP API credentials from [cdp.coinbase.com](https://cdp.coinbase.com)
  • Access to secretsline 84
    [Credential-related source omitted]
  • Network accessline 100
    - [X402 Documentation](https://docs.cdp.coinbase.com/x402)
  • Network accessline 101
    - [Swarms Documentation](https://docs.swarms.world)
  • Network accessline 102
    - [X402 GitHub Examples](https://github.com/coinbase/x402/tree/main/examples)

examples/guides/x402_examples/agent_integration/x402_agent_buying.py

  • Executable scriptline 1
    Executable file
  • Network accessline 31
    response = await buy_x402_service(             affordable_service,             base_url="https://api.cdp.coinbase.com",
  • Network accessline 32
    affordable_service,             base_url="https://api.cdp.coinbase.com",             endpoint="/x402/v1/bazaar/services/service123"
  • Network accessline 33
    base_url="https://api.cdp.coinbase.com",
  • Access to secretsline 39
    [Credential-related source omitted]

examples/guides/x402_examples/agent_integration/x402_discovery_query.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    max_price: Optional[int] = None,     offset: int = 0,     base_url: str = "https://api.cdp.coinbase.com",
  • Network accessline 10
    offset: int = 0,     base_url: str = "https://api.cdp.coinbase.com", ) -> Dict[str, Any]:
  • Network accessline 11
    base_url: str = "https://api.cdp.coinbase.com",
  • Network accessline 53
    async with httpx.AsyncClient(timeout=30.0) as client:

examples/guides/x402_examples/env.example

  • Access to secretsline 2
    [Credential-related source omitted]
  • Network accessline 8
    # For mainnet only (optional during testnet testing) # Get these from https://cdp.coinbase.com
  • Network accessline 9
    # Get these from https://cdp.coinbase.com

examples/guides/x402_examples/memecoin_agent_x402.py

  • Executable scriptline 1
    Executable file

examples/guides/x402_examples/research_agent_x402_example.py

  • Executable scriptline 1
    Executable file

examples/mcp/README.md

  • Network accessline 3
    [MCP](https://modelcontextprotocol.io) lets an agent pull in tools from an external
  • Access to secretsline 14
    [Credential-related source omitted]
  • Network accessline 22
    agent_name="DeepWiki-Agent",     model_name="gpt-4o-mini",     mcp_url="https://mcp.deepwiki.com/mcp",   # free, no API key
  • Network accessline 23
    model_name="gpt-4o-mini",     mcp_url="https://mcp.deepwiki.com/mcp",   # free, no API key     max_loops=1,
  • Network accessline 24
    mcp_url="https://mcp.deepwiki.com/mcp",   # free, no API key
  • Access to secretsline 44
    [Credential-related source omitted]
  • Network accessline 47
    Examples that point at `http://localhost:8000/mcp` need a local server first — run one

examples/mcp/agents/01_deepwiki_repo_qa.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    Server : https://mcp.deepwiki.com/mcp
  • Network accessline 13
    The Agent auto-detects the transport from the URL scheme (an ``https://``
  • Access to secretsline 18
    [Credential-related source omitted]
  • Network accessline 41
    system_prompt=DEEPWIKI_SYSTEM_PROMPT,     model_name=MODEL,     mcp_url="https://mcp.deepwiki.com/mcp",
  • Network accessline 42
    model_name=MODEL,     mcp_url="https://mcp.deepwiki.com/mcp",     max_loops=1,
  • Network accessline 43
    mcp_url="https://mcp.deepwiki.com/mcp",

examples/mcp/agents/02_gitmcp_repo_docs.py

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    Server : https://gitmcp.io/<owner>/<repo>
  • Access to secretsline 16
    [Credential-related source omitted]
  • Network accessline 32
    ),     model_name=MODEL,     mcp_url=f"https://gitmcp.io/{OWNER}/{REPO}",
  • Network accessline 33
    model_name=MODEL,     mcp_url=f"https://gitmcp.io/{OWNER}/{REPO}",     max_loops=1,
  • Network accessline 34
    mcp_url=f"https://gitmcp.io/{OWNER}/{REPO}",

examples/mcp/agents/03_microsoft_learn_docs.py

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    Server : https://learn.microsoft.com/api/mcp
  • Access to secretsline 16
    [Credential-related source omitted]
  • Network accessline 29
    ),     model_name=MODEL,     mcp_url="https://learn.microsoft.com/api/mcp",
  • Network accessline 30
    model_name=MODEL,     mcp_url="https://learn.microsoft.com/api/mcp",     max_loops=1,
  • Network accessline 31
    mcp_url="https://learn.microsoft.com/api/mcp",

examples/mcp/agents/04_multi_server_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    Servers : https://mcp.deepwiki.com/mcp
  • Network accessline 10
    https://learn.microsoft.com/api/mcp
  • Access to secretsline 16
    [Credential-related source omitted]
  • Network accessline 30
    model_name=MODEL,     mcp_urls=[         "https://mcp.deepwiki.com/mcp",  # GitHub repo Q&A
  • Network accessline 31
    mcp_urls=[         "https://mcp.deepwiki.com/mcp",  # GitHub repo Q&A         "https://learn.microsoft.com/api/mcp",  # Microsoft docs
  • Network accessline 32
    "https://mcp.deepwiki.com/mcp",  # GitHub repo Q&A
  • Network accessline 33
    "https://learn.microsoft.com/api/mcp",  # Microsoft docs

examples/mcp/agents/05_exa_web_search.py

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    Server : https://mcp.exa.ai/mcp
  • Network accessline 9
    Auth   : Exa API key (free at https://dashboard.exa.ai/api-keys)
  • Access to secretsline 13
    [Credential-related source omitted]
  • Access to secretsline 15
    [Credential-related source omitted]
  • Network accessline 17
    [Credential-related source omitted]
  • Network accessline 18
    [Credential-related source omitted]
  • Access to secretsline 18
    [Credential-related source omitted]
  • Network accessline 19
    [Credential-related source omitted]
  • Access to secretsline 19
    [Credential-related source omitted]
  • Access to secretsline 30
    [Credential-related source omitted]
  • Network accessline 50
    [Credential-related source omitted]
  • Access to secretsline 50
    [Credential-related source omitted]

examples/mcp/agents/07_huggingface_model_search.py

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    Server : https://huggingface.co/mcp
  • Network accessline 18
    [Credential-related source omitted]
  • Access to secretsline 18
    [Credential-related source omitted]
  • Network accessline 19
    [Credential-related source omitted]
  • Access to secretsline 19
    [Credential-related source omitted]
  • Network accessline 20
    # https://huggingface.co/settings/tokens
  • Access to secretsline 30
    [Credential-related source omitted]
  • Network accessline 49
    system_prompt=HF_SYSTEM_PROMPT,     model_name=MODEL,     mcp_url="https://huggingface.co/mcp",
  • Network accessline 51
    mcp_url="https://huggingface.co/mcp",
  • Access to secretsline 53
    [Credential-related source omitted]

examples/mcp/agents/10_firecrawl_web_scraping.py

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    [Credential-related source omitted]
  • Access to secretsline 8
    [Credential-related source omitted]
  • Access to secretsline 17
    [Credential-related source omitted]
  • Network accessline 25
    Get a key (free tier): https://www.firecrawl.dev/
  • Access to secretsline 28
    [Credential-related source omitted]
  • Access to secretsline 29
    [Credential-related source omitted]
  • Access to secretsline 40
    [Credential-related source omitted]
  • Access to secretsline 53
    [Credential-related source omitted]
  • Network accessline 54
    sys.exit(         "FIRECRAWL_API_KEY is not set.\n"         "Get a free-tier key at https://www.firecrawl.dev/ and export it."
  • Network accessline 55
    [Credential-related source omitted]
  • Access to secretsline 55
    [Credential-related source omitted]
  • Network accessline 56
    "Get a free-tier key at https://www.firecrawl.dev/ and export it."
  • Network accessline 65
    [Credential-related source omitted]
  • Access to secretsline 65
    [Credential-related source omitted]
  • Network accessline 69
    if __name__ == "__main__":     result = agent.run(         "Scrape https://modelcontextprotocol.io/introduction and explain, in "
  • Network accessline 70
    result = agent.run(         "Scrape https://modelcontextprotocol.io/introduction and explain, in "         "the docs' own terms, what problem MCP solves and what the three "
  • Network accessline 71
    "Scrape https://modelcontextprotocol.io/introduction and explain, in "

examples/mcp/agents/12_semgrep_security_scan.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    Server : https://mcp.semgrep.ai/mcp
  • Network accessline 13
    Note: this endpoint accepted anonymous traffic historically and now returns 401 without a token. Verified 2026-08-12. Get a free token at https://semgrep.dev/login -> Settings -> Tokens.
  • Network accessline 15
    https://semgrep.dev/login -> Settings -> Tokens.
  • Network accessline 22
    [Credential-related source omitted]
  • Network accessline 23
    [Credential-related source omitted]
  • Access to secretsline 23
    [Credential-related source omitted]
  • Network accessline 24
    [Credential-related source omitted]
  • Access to secretsline 24
    [Credential-related source omitted]
  • Network accessline 78
    system_prompt=SECURITY_SYSTEM_PROMPT,     model_name=MODEL,     mcp_url="https://mcp.semgrep.ai/mcp",
  • Network accessline 79
    [Credential-related source omitted]
  • Network accessline 80
    mcp_url="https://mcp.semgrep.ai/mcp",
  • Access to secretsline 81
    [Credential-related source omitted]
  • Access to secretsline 86
    [Credential-related source omitted]
  • Network accessline 87
    sys.exit(             "SEMGREP_APP_TOKEN is not set.\n"             "Create a free token at https://semgrep.dev "
  • Network accessline 88
    "SEMGREP_APP_TOKEN is not set.\n"             "Create a free token at https://semgrep.dev "             "(Settings -> Tokens) and export it before running."
  • Network accessline 89
    "Create a free token at https://semgrep.dev "

examples/mcp/agents/13_mcp_sequential_workflow.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    Researcher : DeepWiki   (https://mcp.deepwiki.com/mcp)   — repo Q&A
  • Network accessline 10
    Librarian  : Context7   (https://mcp.context7.com/mcp)   — current library docs
  • Access to secretsline 31
    [Credential-related source omitted]
  • Network accessline 50
    ),     model_name=MODEL,     mcp_url="https://mcp.deepwiki.com/mcp",
  • Network accessline 51
    model_name=MODEL,     mcp_url="https://mcp.deepwiki.com/mcp",     max_loops=2,
  • Network accessline 52
    mcp_url="https://mcp.deepwiki.com/mcp",
  • Network accessline 68
    ),     model_name=MODEL,     mcp_url="https://mcp.context7.com/mcp",
  • Network accessline 69
    model_name=MODEL,     mcp_url="https://mcp.context7.com/mcp",     max_loops=3,
  • Network accessline 70
    mcp_url="https://mcp.context7.com/mcp",

examples/mcp/agents/FREE_MCP_SERVERS.md

  • Network accessline 3
    A catalog of real, public [MCP](https://modelcontextprotocol.io) servers you can
  • Network accessline 25
    agent_name="MCP-Agent",     model_name="gpt-4o-mini",              # any LiteLLM model with tool use     mcp_url="https://mcp.deepwiki.com/mcp",  # one server
  • Network accessline 26
    model_name="gpt-4o-mini",              # any LiteLLM model with tool use     mcp_url="https://mcp.deepwiki.com/mcp",  # one server     max_loops=1,
  • Network accessline 27
    mcp_url="https://mcp.deepwiki.com/mcp",  # one server
  • Network accessline 37
    model_name="gpt-4o-mini",     mcp_urls=[         "https://mcp.deepwiki.com/mcp",
  • Network accessline 38
    mcp_urls=[         "https://mcp.deepwiki.com/mcp",         "https://learn.microsoft.com/api/mcp",
  • Network accessline 39
    "https://mcp.deepwiki.com/mcp",
  • Network accessline 40
    "https://learn.microsoft.com/api/mcp",
  • Network accessline 46
    **Transport** is auto-detected: any `https://` URL uses streamable-HTTP. A few
  • Network accessline 54
    | Server | URL | What it does | |---|---|---| | **DeepWiki** | `https://mcp.deepwiki.com/mcp` | Q&A over any public GitHub repo's docs |
  • Network accessline 55
    |---|---|---| | **DeepWiki** | `https://mcp.deepwiki.com/mcp` | Q&A over any public GitHub repo's docs | | **GitMCP** | `https://gitmcp.io/<owner>/<repo>` | Turns a single repo into a docs/code MCP server |
  • Network accessline 56
    | **DeepWiki** | `https://mcp.deepwiki.com/mcp` | Q&A over any public GitHub repo's docs |
  • Network accessline 57
    | **GitMCP** | `https://gitmcp.io/<owner>/<repo>` | Turns a single repo into a docs/code MCP server |
  • Network accessline 58
    | **Microsoft Learn** | `https://learn.microsoft.com/api/mcp` | Official Microsoft / Azure / .NET documentation |
  • Network accessline 59
    | **AWS Knowledge** | `https://knowledge-mcp.global.api.aws` | Official AWS docs, API references, what's-new |
  • Network accessline 60
    | **Cloudflare Docs** | `https://docs.mcp.cloudflare.com/mcp` | Cloudflare product documentation |
  • Network accessline 61
    | **Hugging Face** | `https://huggingface.co/mcp` | Search models / datasets / Spaces (optional HF token unlocks more) |
  • Network accessline 62
    | **Context7** | `https://mcp.context7.com/mcp` | Up-to-date docs for thousands of libraries (rate-limited without a free key) |
  • Network accessline 66
    agent = Agent(     model_name="gpt-4o-mini",     mcp_url="https://gitmcp.io/kyegomez/swarms",
  • Network accessline 67
    model_name="gpt-4o-mini",     mcp_url="https://gitmcp.io/kyegomez/swarms",     max_loops=1,
  • Network accessline 68
    mcp_url="https://gitmcp.io/kyegomez/swarms",
  • Network accessline 79
    | Server | Endpoint / auth | What it does | |---|---|---| | **Exa** | `https://mcp.exa.ai/mcp?exaApiKey=…` (query param) | Web search + content retrieval |
  • Network accessline 80
    |---|---|---| | **Exa** | `https://mcp.exa.ai/mcp?exaApiKey=…` (query param) | Web search + content retrieval | | **Semgrep** | `https://mcp.semgrep.ai/mcp` + Bearer token | Static-analysis security scanning (was open, now 401 without a tok
  • Network accessline 81
    | **Exa** | `https://mcp.exa.ai/mcp?exaApiKey=…` (query param) | Web search + content retrieval |
  • Network accessline 82
    | **Semgrep** | `https://mcp.semgrep.ai/mcp` + Bearer token | Static-analysis security scanning (was open, now 401 without a token) |
  • Network accessline 83
    | **Globalping** | `https://mcp.globalping.dev/sse` + Bearer token | ping / traceroute / DNS / MTR from a global probe network (was open, now 401) |
  • Network accessline 84
    | **Tavily** | `https://mcp.tavily.com/mcp/?tavilyApiKey=…` (query param) | Web search built for agents |
  • Access to secretsline 85
    [Credential-related source omitted]
  • Network accessline 93
    import os key = os.environ["EXA_API_KEY"]  # free at https://dashboard.exa.ai/api-keys
  • Network accessline 94
    [Credential-related source omitted]
  • Access to secretsline 94
    [Credential-related source omitted]
  • Network accessline 95
    agent = Agent(     model_name="gpt-4o-mini",     mcp_url=f"https://mcp.exa.ai/mcp?exaApiKey={key}",
  • Network accessline 96
    model_name="gpt-4o-mini",     mcp_url=f"https://mcp.exa.ai/mcp?exaApiKey={key}",     max_loops=1,
  • Network accessline 97
    mcp_url=f"https://mcp.exa.ai/mcp?exaApiKey={key}",
  • Network accessline 106
    agent = Agent(     model_name="gpt-4o-mini",     mcp_url="https://example-server.com/mcp",
  • Network accessline 107
    [Credential-related source omitted]
  • Network accessline 108
    mcp_url="https://example-server.com/mcp",
  • Access to secretsline 109
    [Credential-related source omitted]
  • Network accessline 116
    agent = Agent(     model_name="gpt-4o-mini",     mcp_url="https://example-server.com/mcp",
  • Network accessline 117
    [Credential-related source omitted]
  • Network accessline 118
    mcp_url="https://example-server.com/mcp",
  • Access to secretsline 119
    [Credential-related source omitted]
  • Access to secretsline 128
    [Credential-related source omitted]
  • Network accessline 130
    `GitHub` (`https://api.githubcopilot.com/mcp/`), `Notion`, `Linear`, `Asana`,
  • Network accessline 135
    agent = Agent(     model_name="gpt-4o-mini",     mcp_url="https://api.githubcopilot.com/mcp/",
  • Network accessline 136
    [Credential-related source omitted]
  • Network accessline 137
    mcp_url="https://api.githubcopilot.com/mcp/",
  • Access to secretsline 138
    [Credential-related source omitted]
  • Network accessline 148
    - **PulseMCP** — https://www.pulsemcp.com
  • Network accessline 149
    - **Glama** — https://glama.ai/mcp/servers
  • Network accessline 150
    - **Smithery** — https://smithery.ai
  • Network accessline 151
    - **mcp.run** — https://www.mcp.run
  • Access to secretsline 188
    [Credential-related source omitted]

examples/mcp/agents/README.md

  • Access to secretsline 44
    [Credential-related source omitted]
  • Network accessline 48
    Examples pointing at `http://localhost:8000/mcp` need a local server — start one from

examples/mcp/agents/autonomous_agent_dynamic_tools.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 11
    [Credential-related source omitted]
  • Network accessline 27
    MCP_SERVER = "https://mcp.deepwiki.com/mcp"

examples/mcp/agents/deepwiki_minimal.py

  • Executable scriptline 1
    Executable file
  • Network accessline 4
    agent_name="MCP-Agent",     model_name="claude-sonnet-5",     mcp_url="https://mcp.deepwiki.com/mcp",
  • Network accessline 5
    model_name="claude-sonnet-5",     mcp_url="https://mcp.deepwiki.com/mcp",     max_loops=1,
  • Network accessline 6
    mcp_url="https://mcp.deepwiki.com/mcp",
  • Network accessline 28
    #       agent_name="MCP-Agent", #       model_name="gpt-5.4", #       mcp_url="https://api.githubcopilot.com/mcp/",
  • Network accessline 29
    [Credential-related source omitted]
  • Network accessline 30
    #       mcp_url="https://api.githubcopilot.com/mcp/",
  • Access to secretsline 31
    [Credential-related source omitted]
  • Network accessline 40
    #       model_name="gpt-5.4", #       mcp_config=MCPConnection( #           url="https://api.example.com/mcp",
  • Network accessline 41
    [Credential-related source omitted]
  • Network accessline 42
    #           url="https://api.example.com/mcp",
  • Access to secretsline 43
    [Credential-related source omitted]
  • Network accessline 55
    #       agent_name="MCP-Agent", #       model_name="gpt-5.4", #       mcp_url="https://api.example.com/mcp",
  • Network accessline 56
    #       model_name="gpt-5.4", #       mcp_url="https://api.example.com/mcp", #       mcp_oauth=MCPOAuthConfig(scopes=["mcp:tools", "offline_access"]),
  • Network accessline 57
    #       mcp_url="https://api.example.com/mcp",
  • Access to secretsline 66
    [Credential-related source omitted]
  • Network accessline 74
    #       model_name="gpt-5.4", #       mcp_urls=[ #           "https://mcp.deepwiki.com/mcp",
  • Network accessline 75
    #       mcp_urls=[ #           "https://mcp.deepwiki.com/mcp", #           "https://api.example.com/mcp",
  • Network accessline 76
    #           "https://mcp.deepwiki.com/mcp",
  • Network accessline 77
    #           "https://api.example.com/mcp",

examples/mcp/agents/finance_agent_mcp.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    system_prompt=FINANCIAL_AGENT_SYS_PROMPT,  # System prompt for financial tasks     max_loops=1,     mcp_url="http://localhost:8001/mcp",  # URL for the OKX crypto price MCP server
  • Network accessline 10
    max_loops=1,     mcp_url="http://localhost:8001/mcp",  # URL for the OKX crypto price MCP server     model_name="gpt-5.4",
  • Network accessline 11
    mcp_url="http://localhost:8001/mcp",  # URL for the OKX crypto price MCP server

examples/mcp/agents/mcp_connection_object.py

  • Executable scriptline 1
    Executable file
  • Network accessline 5
    mcp_config = MCPConnection(     url="http://localhost:8000/mcp",
  • Network accessline 6
    url="http://localhost:8000/mcp",
  • Network accessline 12
    mcp_url = "http://localhost:8000/mcp"

examples/mcp/agents/mcp_with_local_tools.py

  • Executable scriptline 1
    Executable file
  • Network accessline 41
    tools_list_dictionary=tools,     output_type="final",     mcp_url="http://localhost:8000/mcp",
  • Network accessline 42
    output_type="final",     mcp_url="http://localhost:8000/mcp", )
  • Network accessline 43
    mcp_url="http://localhost:8000/mcp",

examples/mcp/agents/multi_mcp_urls.py

  • Executable scriptline 1
    Executable file
  • Network accessline 40
    output_type="all",     mcp_urls=[         "http://localhost:8000/mcp",
  • Network accessline 41
    mcp_urls=[         "http://localhost:8000/mcp",         "http://localhost:8001/mcp",
  • Network accessline 42
    "http://localhost:8000/mcp",
  • Network accessline 43
    "http://localhost:8001/mcp",

examples/mcp/agents/multi_mcp_walkthrough.py

  • Executable scriptline 1
    Executable file
  • Network accessline 18
    max_loops=3,         mcp_urls=[             "http://localhost:8001/mcp",  # OKX Crypto Server
  • Network accessline 19
    mcp_urls=[             "http://localhost:8001/mcp",  # OKX Crypto Server             "http://localhost:8000/mcp",  # Agent Tools Server
  • Network accessline 20
    "http://localhost:8001/mcp",  # OKX Crypto Server
  • Network accessline 21
    "http://localhost:8000/mcp",  # Agent Tools Server
  • Network accessline 98
    system_prompt=custom_prompt,         mcp_urls=[             "http://localhost:8001/mcp",  # OKX Crypto
  • Network accessline 99
    mcp_urls=[             "http://localhost:8001/mcp",  # OKX Crypto             "http://localhost:8000/mcp",  # Agent Tools
  • Network accessline 100
    "http://localhost:8001/mcp",  # OKX Crypto
  • Network accessline 101
    "http://localhost:8000/mcp",  # Agent Tools
  • Network accessline 123
    system_prompt="You are a resilient agent that handles errors gracefully.",         mcp_urls=[             "http://localhost:8001/mcp",  # OKX Crypto (should be running)
  • Network accessline 124
    mcp_urls=[             "http://localhost:8001/mcp",  # OKX Crypto (should be running)             "http://localhost:8002/mcp",  # Non-existent server (will fail)
  • Network accessline 125
    "http://localhost:8001/mcp",  # OKX Crypto (should be running)
  • Network accessline 126
    "http://localhost:8002/mcp",  # Non-existent server (will fail)
  • Network accessline 127
    "http://localhost:8000/mcp",  # Agent Tools (should be running)

examples/mcp/agents/tools_list_dictionary.py

  • Executable scriptline 1
    Executable file
  • Network accessline 46
    # tools_list_dictionary=tools,     # mcp_servers=["http://localhost:8000/mcp"],
  • Network accessline 47
    # mcp_servers=["http://localhost:8000/mcp"],

examples/mcp/client/01_list_tools.py

  • Executable scriptline 1
    Executable file
  • Network accessline 21
    SERVER_URL = "http://localhost:8000/mcp"

examples/mcp/client/02_call_tool.py

  • Executable scriptline 1
    Executable file
  • Network accessline 21
    SERVER_URL = "http://localhost:8000/mcp"

examples/mcp/client/03_execute_llm_tool_calls.py

  • Executable scriptline 1
    Executable file
  • Network accessline 22
    SERVER_URL = "http://localhost:8000/mcp"

examples/mcp/client/04_multi_server.py

  • Executable scriptline 1
    Executable file
  • Network accessline 20
    SERVERS = [     "http://localhost:8000/mcp",
  • Network accessline 21
    "http://localhost:8000/mcp",
  • Network accessline 22
    "http://localhost:8001/mcp",
  • Network accessline 68
    manager.add_server("http://localhost:8002/mcp")

examples/mcp/client/05_auth_and_config.py

  • Executable scriptline 1
    Executable file
  • Network accessline 22
    manager = MCPManager(         mcp_url="https://api.example.com/mcp",
  • Network accessline 23
    mcp_url="https://api.example.com/mcp",
  • Access to secretsline 24
    [Credential-related source omitted]
  • Network accessline 32
    manager = MCPManager(         mcp_url="https://api.example.com/mcp",
  • Network accessline 33
    mcp_url="https://api.example.com/mcp",
  • Network accessline 41
    connection = MCPConnection(         url="https://api.example.com/mcp",
  • Network accessline 42
    url="https://api.example.com/mcp",
  • Network accessline 56
    connection = MCPConnection(         url="https://api.example.com/mcp",
  • Network accessline 57
    url="https://api.example.com/mcp",
  • Access to secretsline 58
    [Credential-related source omitted]
  • Network accessline 65
    connection = MCPConnection(         url="https://api.example.com/mcp",
  • Network accessline 66
    url="https://api.example.com/mcp",
  • Network accessline 69
    [Credential-related source omitted]
  • Network accessline 70
    [Credential-related source omitted]
  • Access to secretsline 70
    [Credential-related source omitted]
  • Network accessline 71
    token_url="https://api.example.com/oauth/token",
  • Network accessline 82
    manager = MCPManager(         mcp_urls=[             "http://localhost:8000/mcp",  # local, no auth
  • Network accessline 83
    mcp_urls=[             "http://localhost:8000/mcp",  # local, no auth             MCPConnection(
  • Network accessline 84
    "http://localhost:8000/mcp",  # local, no auth
  • Network accessline 85
    [Credential-related source omitted]
  • Network accessline 86
    url="https://api.example.com/mcp",
  • Access to secretsline 87
    [Credential-related source omitted]

examples/mcp/client/06_remote_agents.py

  • Executable scriptline 1
    Executable file
  • Network accessline 22
    SERVER_URL = "http://localhost:8000/mcp"

examples/mcp/client/README.md

  • Network accessline 14
    manager = MCPManager(mcp_url="http://localhost:8000/mcp")
  • Network accessline 35
    Most expect a local server on `http://localhost:8000/mcp`:

examples/mcp/mcp_deployer/README.md

  • Network accessline 12
    [Credential-related source omitted]
  • Access to secretsline 12
    [Credential-related source omitted]
  • Access to secretsline 16
    [Credential-related source omitted]

examples/mcp/mcp_deployer/background_server_and_client_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 7
    def free_port() -> int:     with socket.socket() as s:
  • Network accessline 8
    with socket.socket() as s:
  • Access to secretsline 32
    [Credential-related source omitted]

examples/mcp/mcp_deployer/custom_auth_per_tenant.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 6
    [Credential-related source omitted]
  • Access to secretsline 7
    [Credential-related source omitted]

examples/mcp/mcp_deployer/env_keys_and_extra_tools.py

  • Executable scriptline 1
    Executable file

examples/mcp/mcp_deployer/multiple_agents_one_server.py

  • Executable scriptline 1
    Executable file

examples/mcp/mcp_deployer/owner_key_or_tenant_auth.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 17
    [Credential-related source omitted]

examples/mcp/mcp_deployer/plain_function_json_response.py

  • Executable scriptline 1
    Executable file
  • Network accessline 17
    def free_port() -> int:     with socket.socket() as s:
  • Network accessline 18
    with socket.socket() as s:
  • Access to secretsline 32
    [Credential-related source omitted]

examples/mcp/mcp_deployer/sequential_workflow_as_tool.py

  • Executable scriptline 1
    Executable file

examples/mcp/mcp_deployer/single_agent_api_key.py

  • Executable scriptline 1
    Executable file

examples/mcp/mcp_deployer/sse_transport.py

  • Executable scriptline 1
    Executable file

examples/mcp/mcp_deployer/stdio_transport.py

  • Executable scriptline 1
    Executable file

examples/mcp/mcp_deployer/token_verifier_with_scopes.py

  • Executable scriptline 1
    Executable file

examples/mcp/servers/README.md

  • Network accessline 27
    agent_name="Crypto-Agent",     model_name="gpt-4o-mini",     mcp_url="http://localhost:8000/mcp",
  • Network accessline 28
    model_name="gpt-4o-mini",     mcp_url="http://localhost:8000/mcp",     max_loops=1,
  • Network accessline 29
    mcp_url="http://localhost:8000/mcp",
  • Network accessline 35
    Most examples under [`../agents/`](../agents/) and [`../client/`](../client/) that use `http://localhost:8000/mcp` expect `crypto_price_server.py` to be running.
  • Network accessline 36
    `http://localhost:8000/mcp` expect `crypto_price_server.py` to be running.

examples/mcp/servers/agent_as_tool_server.py

  • Executable scriptline 1
    Executable file

examples/mcp/servers/crypto_price_server.py

  • Executable scriptline 1
    Executable file
  • Network accessline 30
    url = f"https://api.coingecko.com/api/v3/simple/price?ids={coin_id}&vs_currencies=usd&include_24hr_change=true"
  • Network accessline 33
    response = requests.get(url)
  • Network accessline 80
    url = f"https://api.htx.com/market/detail/merged?symbol={symbol}"
  • Network accessline 83
    response = requests.get(url)

examples/mcp/servers/okx_crypto_server.py

  • Executable scriptline 1
    Executable file
  • Network accessline 37
    url = f"https://www.okx.com/api/v5/market/ticker?instId={symbol}"
  • Network accessline 40
    response = requests.get(url)
  • Network accessline 93
    url = f"https://www.okx.com/api/v5/market/ticker?instId={symbol}"
  • Network accessline 96
    response = requests.get(url)

examples/mcp/servers/streamable_http_server.py

  • Executable scriptline 1
    Executable file

examples/models/README.md

  • Access to secretsline 5
    [Credential-related source omitted]

examples/models/anthropic/claude_4.py

  • Executable scriptline 1
    Executable file

examples/models/anthropic/claude_4_example.py

  • Executable scriptline 1
    Executable file

examples/models/anthropic/fable_agent.py

  • Executable scriptline 1
    Executable file

examples/models/anthropic/fable_example.py

  • Executable scriptline 1
    Executable file

examples/models/anthropic/swarms_claude_example.py

  • Executable scriptline 1
    Executable file

examples/models/azure/azure_agent.py

  • Executable scriptline 1
    Executable file

examples/models/azure/azure_agent_api_verison.py

  • Executable scriptline 1
    Executable file

examples/models/azure/azure_model_support.py

  • Executable scriptline 1
    Executable file

examples/models/cerebras/cerebras_example.py

  • Executable scriptline 1
    Executable file

examples/models/custom_llm/base_llm.py

  • Executable scriptline 1
    Executable file

examples/models/deepseek/deepseek_r1.py

  • Executable scriptline 1
    Executable file

examples/models/deepseek/fast_r1_groq.py

  • Executable scriptline 1
    Executable file

examples/models/deepseek/groq_deepseek_agent.py

  • Executable scriptline 1
    Executable file

examples/models/gpt_astra/gpt_astra.py

  • Executable scriptline 1
    Executable file

examples/models/gpt_astra/gpt_astra_usage.py

  • Executable scriptline 1
    Executable file

examples/models/gpt_astra/swarms_api_mixture_of_agents.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    [Credential-related source omitted]
  • Access to secretsline 9
    [Credential-related source omitted]
  • Network accessline 10
    BASE_URL = "https://api.swarms.world"
  • Access to secretsline 12
    [Credential-related source omitted]
  • Network accessline 73
    response = requests.post(

examples/models/gpt_astra/swarms_api_single_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    [Credential-related source omitted]
  • Access to secretsline 9
    [Credential-related source omitted]
  • Network accessline 10
    BASE_URL = "https://api.swarms.world"
  • Access to secretsline 12
    [Credential-related source omitted]
  • Network accessline 32
    response = requests.post(

examples/models/gpt_oss/gpt_os_agent.py

  • Executable scriptline 1
    Executable file

examples/models/gpt_oss/groq_gpt_oss_models.py

  • Executable scriptline 1
    Executable file

examples/models/gpt_oss/multi_agent_gpt_oss_example.py

  • Executable scriptline 1
    Executable file

examples/models/llama4/litellm_example.py

  • Executable scriptline 1
    Executable file

examples/models/llama4/llama_4.py

  • Executable scriptline 1
    Executable file

examples/models/llama4/simple_agent.py

  • Executable scriptline 1
    Executable file

examples/models/lumo/lumo_example.py

  • Executable scriptline 1
    Executable file

examples/models/mistral/mistral_example.py

  • Executable scriptline 1
    Executable file

examples/models/moonshot/kimi_k3_local.py

  • Executable scriptline 1
    Executable file

examples/models/moonshot/kimi_k3_or.py

  • Executable scriptline 1
    Executable file

examples/models/ollama/kimi_k3_local_agent.py

  • Executable scriptline 1
    Executable file

examples/models/ollama/simple_example_ollama.py

  • Executable scriptline 1
    Executable file

examples/models/openai/4o_mini_demo.py

  • Executable scriptline 1
    Executable file

examples/models/openai/5.4_openai.py

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    [Credential-related source omitted]
  • Network accessline 9
    [Credential-related source omitted]
  • Access to secretsline 9
    [Credential-related source omitted]
  • Network accessline 10
    base_url="https://api.swarms.world",

examples/models/openai/concurrent_gpt5.py

  • Executable scriptline 1
    Executable file

examples/models/openai/example_o3.py

  • Executable scriptline 1
    Executable file

examples/models/openai/gpt_5.6_sol.py

  • Executable scriptline 1
    Executable file

examples/models/openai/gpt_5_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 10
    [Credential-related source omitted]
  • Network accessline 14
    Verify your OpenAI account here: https://platform.openai.com/settings/organization/general

examples/models/openai/o3_agent.py

  • Executable scriptline 1
    Executable file

examples/models/openai/reasoning_duo_batched.py

  • Executable scriptline 1
    Executable file

examples/models/openai/test_async_litellm.py

  • Executable scriptline 1
    Executable file

examples/models/openrouter/glm_or.py

  • Executable scriptline 1
    Executable file

examples/models/openrouter/groupchat_or.py

  • Executable scriptline 1
    Executable file

examples/models/openrouter/hy3_or.py

  • Executable scriptline 1
    Executable file

examples/models/openrouter/k3_kimi.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 6
    [Credential-related source omitted]

examples/models/openrouter/k3_kimi_example.py

  • Executable scriptline 1
    Executable file

examples/models/openrouter/kimi_k3_single_agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 8
    [Credential-related source omitted]

examples/models/openrouter/minimax.py

  • Executable scriptline 1
    Executable file

examples/models/qwen/qwen_3_base.py

  • Executable scriptline 1
    Executable file

examples/models/vllm/vllm_example.py

  • Executable scriptline 1
    Executable file

examples/models/vllm/vllm_wrapper.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/advisor_swarm_examples/advisor_swarm_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 7
    [Credential-related source omitted]

examples/multi_agent/agent_grpo_examples/agent_grpo_math_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/agent_grpo_examples/agent_grpo_physics_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/agent_rearrange_examples/01_fan_out.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/agent_rearrange_examples/02_fan_in.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/agent_rearrange_examples/03_multi_stage.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/agent_rearrange_examples/04_multi_provider_ensemble.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 12
    [Credential-related source omitted]

examples/multi_agent/agent_rearrange_examples/05_new_features_showcase.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/agent_rearrange_examples/batch_run_concurrent_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/agent_rearrange_examples/diamond_flow_real_agents.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 13
    [Credential-related source omitted]

examples/multi_agent/agent_rearrange_examples/nested_swarms_demo.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 5
    [Credential-related source omitted]

examples/multi_agent/agent_rearrange_examples/rearrange_test.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/agent_rearrange_examples/refactor_smoke_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/agent_router_examples/agent_router_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/agent_router_examples/refactor_smoke_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/aggregate_examples/aggregate_typed_turns_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/alternate_debates/brainstorming_session.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/alternate_debates/council_meeting.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/alternate_debates/interview_series.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/alternate_debates/mediation_session.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/alternate_debates/mentorship_session.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/alternate_debates/negotiation_session.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/alternate_debates/peer_review_process.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/alternate_debates/trial_simulation.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/asb/asb_research.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/asb/auto_agent.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/asb/auto_swarm_builder_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/asb/auto_swarm_builder_spec_only_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/asb/auto_swarm_builder_test.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/asb/auto_swarm_router.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 4
    [Credential-related source omitted]

examples/multi_agent/asb/content_creation_asb.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/auction_swarm_examples/README.md

  • Access to secretsline 76
    [Credential-related source omitted]

examples/multi_agent/auction_swarm_examples/basic_auction.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/auction_swarm_examples/batch_auction.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/auction_swarm_examples/custom_scoring_auction.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/auto_agent_builder_examples/README.md

  • Access to secretsline 107
    [Credential-related source omitted]

examples/multi_agent/auto_agent_builder_examples/auto_agent_builder_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/auto_agent_builder_examples/auto_agent_builder_simple.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/auto_agent_builder_examples/concurrent_workflow.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/auto_agent_builder_examples/exact_agent_count.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/auto_agent_builder_examples/save_and_reuse_roster.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/auto_agent_builder_examples/swarm_router_handoff.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/batched_grid_workflow/batched_grid_advanced_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/batched_grid_workflow/batched_grid_simple_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/batched_grid_workflow/batched_grid_swarm_router.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/batched_grid_workflow/batched_grid_workflow_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/broadcast_examples/README.md

  • Access to secretsline 21
    [Credential-related source omitted]

examples/multi_agent/broadcast_examples/broadcast_class_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/broadcast_examples/broadcast_function_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/caching_examples/example_multi_agent_caching.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/caching_examples/quick_start_agent_caching.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/concurrent_examples/asi.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/concurrent_examples/concurrent_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/concurrent_examples/concurrent_example_dashboard.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/concurrent_examples/concurrent_mix.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/concurrent_examples/concurrent_swarm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/concurrent_examples/concurrent_workflow_autosave_example.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/multi_agent/concurrent_examples/concurrent_workflow_random_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/concurrent_examples/example_concurrent.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/concurrent_examples/streaming_callback/example_streaming_workflow.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/concurrent_examples/streaming_callback/parallel_search_agents.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/concurrent_examples/streaming_concurrent_workflow.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/judges/council_judge_basic.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/judges/council_judge_complex_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/judges/council_judge_custom_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/judges/council_judge_evaluation.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/judges/council_judge_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/judges/council_of_judges_eval.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/llm_council/business_strategy_council.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/llm_council/etf_stock_analysis_council.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/llm_council/finance_analysis_council.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/llm_council/legal_analysis_council.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/llm_council/llm_council_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/llm_council/marketing_strategy_council.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/llm_council/medical_diagnosis_council.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/llm_council/medical_treatment_council.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/llm_council/research_analysis_council.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/council/llm_council/technology_assessment_council.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/debate_examples/business_strategy_debate_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/debate_examples/debate_with_judge_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/debate_examples/policy_debate_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/debate_examples/technical_architecture_debate_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/election_swarm_examples/apple_board_election_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/election_swarm_examples/election_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/forest_swarm_examples/forest_swarm_example.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/multi_agent/forest_swarm_examples/fund_manager_forest.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/forest_swarm_examples/medical_forest_swarm.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/forest_swarm_examples/tree_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/forest_swarm_examples/tree_swarm_test.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/advanced_graph_workflow.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/graph/graph_workflow_basic.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/graph/graph_workflow_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/graph_workflow_basic.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/graph_workflow_basic_new.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/graph_workflow_checkpointing.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/graph_workflow_composition.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 29
    [Credential-related source omitted]

examples/multi_agent/graphworkflow_examples/graph_workflow_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/graph_workflow_fanout_fanin.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 18
    [Credential-related source omitted]

examples/multi_agent/graphworkflow_examples/graph_workflow_serialization.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/graph_workflow_streaming.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/graph_workflow_validate.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/graph_workflow_validation.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 8
    [Credential-related source omitted]

examples/multi_agent/graphworkflow_examples/rustworkx_examples/01_basic_usage.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/rustworkx_examples/02_backend_comparison.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/rustworkx_examples/03_fan_out_fan_in_patterns.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/rustworkx_examples/04_complex_workflow.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/rustworkx_examples/05_performance_benchmark.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/rustworkx_examples/06_error_handling.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/rustworkx_examples/07_large_scale_workflow.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/rustworkx_examples/08_parallel_chain_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/rustworkx_examples/09_workflow_validation.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/rustworkx_examples/10_real_world_scenario.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/graphworkflow_examples/test_parallel_processing_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/dynamic_groupchat_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/dynamic_groupchat_example_simple.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/enhanced_collaboration_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/groupchat_examples/crypto_tax.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/groupchat_examples/crypto_tax_swarm.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/groupchat_examples/group_chat_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/groupchat_examples/groupchat_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 14
    [Credential-related source omitted]

examples/multi_agent/groupchat/groupchat_examples/mortgage_tax_panel_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/kimi_k3_groupchat.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 14
    [Credential-related source omitted]

examples/multi_agent/groupchat/medical_panel_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/philosopher_groupchat.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/quantum_physics_swarm.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/simple_groupchat_reshoring_swarm.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/stream_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/groupchat/test_groupchat_feat.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_16_agents.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_4_agents.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_example_one.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_example_research.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_example_research_swarm.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_basic.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_heavy.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_medical.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_no_dashboard.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_question_preview.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_grok_router.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_no_dashboard.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/heavy_swarm_with_image.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/heavy_swarm_examples/medical_heavy_swarm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/display_hierarchy_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/example_hierarchical.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hiearchical_examples/advanced_hierarchical_swarm_examples.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hiearchical_examples/hiearchical_swarm_test.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hiearchical_examples/hierarchical_swarm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hiearchical_swarm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hiearchical_swarm_new_features_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hiearchical_swarm_ui/debug_dashboard.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hierarchical_swarm_autosave_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hierarchical_swarm_basic_demo.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/multi_agent/hierarchical_swarm/hierarchical_swarm_batch_demo.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hierarchical_swarm_comparison_demo.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hierarchical_swarm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hierarchical_swarm_plan_panel_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hierarchical_swarm_streaming_demo.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hierarchical_swarm_streaming_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hs_interactive.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hs_stock_team.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/hybrid_hiearchical_swarm.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/sector_analysis_hiearchical_swarm.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/hierarchical_swarm/simple_hierarchical_swarm_recovery.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/ma_blocks_examples/find_agent_by_name_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/majority_voting/_doda_majority_voting_example_new.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/majority_voting/majority_voting_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/majority_voting/majority_voting_example_new.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/majority_voting/snake_game_code_voting.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/mar/model_router_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 7
    [Credential-related source omitted]

examples/multi_agent/mar/multi_agent_router_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/mar/multi_agent_router_minimal.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/mar/multi_agent_router_specialist_routing.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/mar/refactor_smoke_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/moa_examples/mixture_of_agents_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/moa_examples/test_moa_new.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/one_to_one_examples/README.md

  • Access to secretsline 20
    [Credential-related source omitted]

examples/multi_agent/one_to_one_examples/one_to_one_class_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/one_to_one_examples/one_to_one_function_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/one_to_three_examples/README.md

  • Access to secretsline 20
    [Credential-related source omitted]

examples/multi_agent/one_to_three_examples/one_to_three_class_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/one_to_three_examples/one_to_three_function_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/ai_ethics_debate.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/cybersecurity_incident_negotiation.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/healthcare_panel_discussion.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/insurance_claim_review.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/investment_council_meeting.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/medical_malpractice_trial.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/merger_mediation_session.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/nvidia_amd_executive_negotiation.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/pharma_research_brainstorm.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/philosophy_discussion_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/orchestration_examples/startup_mentorship_program.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/paper_implementations/long_agent.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/phased_fan_out_workflow/bug_hunt.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/phased_fan_out_workflow/contract_review.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/planner_generator_evaluator/pge_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/planner_generator_evaluator/pge_with_tools_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/planner_worker_swarm/planner_worker_swarm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/round_robin_examples/engineering_design_review.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/round_robin_examples/investment_committee_etf.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/round_robin_examples/medical_treatment_review.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/round_robin_examples/round_robin_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/sequential_workflow/drift_detection_commodities.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/sequential_workflow/example_sequential.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/sequential_workflow/research_analyse_write.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 9
    [Credential-related source omitted]

examples/multi_agent/sequential_workflow/sequential_streaming_simple.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/sequential_workflow/sequential_wofkflow.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/sequential_workflow/sequential_worflow_test.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/sequential_workflow/sequential_workflow.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 3
    [Credential-related source omitted]

examples/multi_agent/sequential_workflow/sequential_workflow_autosave_example.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/multi_agent/sequential_workflow/sequential_workflow_drift_detection.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/sequential_workflow/sequential_workflow_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/sequential_workflow/sequential_workflow_streaming.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 16
    [Credential-related source omitted]

examples/multi_agent/sequential_workflow/sonnet_4_5_sequential.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/simulations/agent_map/agent_map_simulation.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/simulations/agent_map/hospital_simulation_demo.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/multi_agent/simulations/agent_map/v0/demo_simulation.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/simulations/agent_map/v0/example_usage.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/multi_agent/simulations/agent_map/v0/simple_hospital_demo.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/multi_agent/simulations/agent_map/v0/test_group_conversations.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/multi_agent/simulations/euroswarm_parliament/__init__.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/simulations/euroswarm_parliament/euroswarm_parliament_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/simulations/euroswarm_parliament/wikipedia_personality_scraper.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Network accessline 92
    self.output_dir = output_dir         self.verbose = verbose         self.session = requests.Session()
  • Network accessline 93
    self.verbose = verbose         self.session = requests.Session()         self.session.headers.update(
  • Network accessline 94
    self.session = requests.Session()
  • Network accessline 95
    self.session.headers.update(             {                 "User-Agent": "EuroSwarm Parliament Personality Scraper/1.0 (https://github.com/swarms-democracy)"
  • Network accessline 96
    {                 "User-Agent": "EuroSwarm Parliament Personality Scraper/1.0 (https://github.com/swarms-democracy)"             }
  • Network accessline 97
    "User-Agent": "EuroSwarm Parliament Personality Scraper/1.0 (https://github.com/swarms-democracy)"
  • Network accessline 175
    search_url = "https://en.wikipedia.org/w/api.php"
  • Network accessline 232
    content_url = "https://en.wikipedia.org/w/api.php"

examples/multi_agent/simulations/example_bell_labs.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/simulations/map_generation/game_map.py

  • Executable scriptline 1
    Executable file
  • Network accessline 181
    sam_checkpoint_urls = {                 "vit_b": "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth",
  • Network accessline 182
    "vit_b": "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth",
  • Network accessline 183
    "vit_l": "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth",
  • Network accessline 184
    "vit_h": "https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth",
  • Network accessline 198
    urllib.request.urlretrieve(

examples/multi_agent/skill_orchestra_examples/skill_orchestra.py

  • Executable scriptline 1
    Executable file
  • Network accessline 4
    Based on the paper "SkillOrchestra: Learning to Route Agents via Skill Transfer" (https://arxiv.org/abs/2602.19672).
  • Network accessline 5
    (https://arxiv.org/abs/2602.19672).

examples/multi_agent/skill_orchestra_examples/skill_orchestra_example.py

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    Based on the paper: "SkillOrchestra: Learning to Route Agents via Skill Transfer" https://arxiv.org/abs/2602.19672
  • Network accessline 9
    https://arxiv.org/abs/2602.19672

examples/multi_agent/social_algorithms_examples/adaptive_workflow_algorithm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/auction_market_algorithm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/collaborative_brainstorming_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/competitive_evaluation_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/consensus_building_algorithm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/hierarchical_decision_making_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/iterative_refinement_algorithm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/multi_stage_pipeline_algorithm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/negotiation_algorithm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/peer_review_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/refactor_smoke_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/research_analysis_synthesis_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/social_algorithms_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/social_algorithms_examples/swarm_intelligence_algorithm_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/spreadsheet_examples/crypto_tax_swarm/crypto_tax_spreadsheet.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/spreadsheet_examples/financial_analysis/swarm_csv.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/spreadsheet_examples/spreadsheet_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/spreadsheet_examples/spreadsheet_swarm_usage.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/swarm_router/groupchat_swarm_router_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/swarm_router/heavy_swarm_router_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/swarm_router/market_analysis_swarm_router_concurrent.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/swarm_router/sr_moa_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/swarm_router/swarm_router.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/swarm_router/swarm_router_benchmark.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/multi_agent/swarm_router/swarm_router_concurrent_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/swarm_router/swarm_router_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/swarm_router/swarm_router_fallback_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 13
    [Credential-related source omitted]

examples/multi_agent/swarm_router/swarm_router_mv.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/swarm_router/swarm_router_test.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/swarm_router/swarm_router_usage.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 15
    [Credential-related source omitted]

examples/multi_agent/swarms_api_examples/hedge_fund_swarm.py

  • Executable scriptline 1
    Executable file
  • Network accessline 11
    [Credential-related source omitted]
  • Access to secretsline 11
    [Credential-related source omitted]
  • Network accessline 12
    BASE_URL = "https://api.swarms.world"
  • Access to secretsline 14
    [Credential-related source omitted]
  • Network accessline 21
    def run_health_check():     response = requests.get(f"{BASE_URL}/health", headers=headers)
  • Network accessline 22
    response = requests.get(f"{BASE_URL}/health", headers=headers)
  • Network accessline 74
    response = requests.post(

examples/multi_agent/swarms_api_examples/medical_swarm.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 8
    [Credential-related source omitted]
  • Network accessline 9
    [Credential-related source omitted]
  • Access to secretsline 9
    [Credential-related source omitted]
  • Network accessline 10
    BASE_URL = "https://api.swarms.world"
  • Access to secretsline 13
    [Credential-related source omitted]
  • Network accessline 84
    response = requests.post(

examples/multi_agent/swarms_api_examples/swarms_api_client.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 48
    [Credential-related source omitted]

examples/multi_agent/swarms_api_examples/swarms_api_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 8
    [Credential-related source omitted]
  • Network accessline 9
    [Credential-related source omitted]
  • Access to secretsline 9
    [Credential-related source omitted]
  • Network accessline 10
    BASE_URL = "https://api.swarms.world"
  • Access to secretsline 13
    [Credential-related source omitted]
  • Network accessline 87
    response = requests.post(

examples/multi_agent/swarms_api_examples/tools_examples.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 8
    [Credential-related source omitted]
  • Network accessline 9
    [Credential-related source omitted]
  • Access to secretsline 9
    [Credential-related source omitted]
  • Network accessline 10
    BASE_URL = "https://api.swarms.world"
  • Access to secretsline 13
    [Credential-related source omitted]
  • Network accessline 119
    response = requests.post(

examples/multi_agent/utils/agent_communication_examples.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 17
    [Credential-related source omitted]
  • Access to secretsline 297
    [Credential-related source omitted]

examples/multi_agent/utils/aggregate_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/utils/batch_agent_example.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/utils/meme_agents/bob_the_agent.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/utils/one_to_one_broadcast_one_to_three.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/utils/test_agent_concurrent.py

  • Executable scriptline 1
    Executable file

examples/multi_agent/utils/unique_swarms_examples.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/agent_judge_examples/example1_basic_evaluation.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/agent_judge_examples/example2_technical_evaluation.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/agent_judge_examples/example3_creative_evaluation.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/moa_seq_example.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/reasoning_agent_router_examples/agent_judge_example.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/reasoning_agent_router_examples/gkp_agent_example.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/reasoning_agent_router_examples/ire_example.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/reasoning_agent_router_examples/reasoning_duo_example.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/reasoning_agent_router_examples/reflexion_agent_example.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/reasoning_agent_router_examples/self_consistency_example.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/tree_of_thoughts_examples/README.md

  • Network accessline 5
    `TreeOfThoughts` implements [Tree of Thoughts (Yao et al., 2023)](https://arxiv.org/abs/2305.10601). Rather than answering in one pass, it grows a tree of partial solutions: it proposes candidate next steps, scores each one from 0 to 1, pru
  • Access to secretsline 36
    [Credential-related source omitted]

examples/reasoning_agents/tree_of_thoughts_examples/mathematics/calculus_optimization.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/tree_of_thoughts_examples/mathematics/irrationality_proof.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/tree_of_thoughts_examples/mathematics/number_theory_counting.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/tree_of_thoughts_examples/physics/fermi_estimation.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/tree_of_thoughts_examples/physics/loop_the_loop.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/tree_of_thoughts_examples/physics/projectile_motion.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/tree_of_thoughts_examples/reasoning/bridge_and_torch.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/tree_of_thoughts_examples/reasoning/constraint_scheduling.py

  • Executable scriptline 1
    Executable file

examples/reasoning_agents/tree_of_thoughts_examples/reasoning/knights_and_knaves.py

  • Executable scriptline 1
    Executable file

examples/single_agent/README.md

  • Access to secretsline 16
    [Credential-related source omitted]

examples/single_agent/capabilities/autonomy/autonomous_agents/auto_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/autonomy/autonomous_agents/auto_agent_quant_etf.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/autonomy/autonomous_agents/autonomous_agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 51
    [Credential-related source omitted]
  • Access to secretsline 57
    [Credential-related source omitted]
  • Network accessline 61
    # Payload format for Exa API (see https://docs.exa.ai/reference/search)
  • Network accessline 89
    response = httpx.post(
  • Network accessline 90
    "https://api.exa.ai/search",

examples/single_agent/capabilities/autonomy/autonomous_agents/example_autonomous_looper_run_bash.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/autonomy/autonomous_agents/marketplace_and_auto_agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 50
    [Credential-related source omitted]
  • Access to secretsline 56
    [Credential-related source omitted]
  • Network accessline 60
    # Payload format for Exa API (see https://docs.exa.ai/reference/search)
  • Network accessline 88
    response = httpx.post(
  • Network accessline 89
    "https://api.exa.ai/search",

examples/single_agent/capabilities/autonomy/autonomous_agents/medical_research_auto_loop.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/autonomy/autonomous_agents/sub_agent_test.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/autonomy/handoffs/autonomous_agent_with_handoffs_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 63
    [Credential-related source omitted]
  • Access to secretsline 65
    [Credential-related source omitted]
  • Access to secretsline 66
    [Credential-related source omitted]
  • Access to secretsline 72
    [Credential-related source omitted]
  • Network accessline 76
    # Payload format for Exa API (see https://docs.exa.ai/reference/search)
  • Network accessline 102
    try:         response = httpx.post(
  • Network accessline 103
    response = httpx.post(
  • Network accessline 104
    "https://api.exa.ai/search",

examples/single_agent/capabilities/autonomy/handoffs/duo_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/autonomy/handoffs/handoff_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/autonomy/handoffs/handoffs_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/messages/messages_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/prompt_caching/1_basic_caching.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 7
    [Credential-related source omitted]

examples/single_agent/capabilities/prompt_caching/2_cache_config_ttl.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 8
    [Credential-related source omitted]

examples/single_agent/capabilities/prompt_caching/3_cache_config_tools.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 8
    [Credential-related source omitted]

examples/single_agent/capabilities/prompt_caching/4_cache_config_system_only.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 8
    [Credential-related source omitted]

examples/single_agent/capabilities/prompt_caching/5_cache_config_openai.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 9
    [Credential-related source omitted]

examples/single_agent/capabilities/prompt_caching/6_cache_config_all_options.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 7
    [Credential-related source omitted]

examples/single_agent/capabilities/prompt_caching/cache_config_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 9
    [Credential-related source omitted]

examples/single_agent/capabilities/prompt_caching/prompt_caching_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/rag/README.md

  • Access to secretsline 32
    [Credential-related source omitted]
  • Network accessline 145
    # Connect to Qdrant cloud agent = QuantitativeTradingRAGAgent(     qdrant_url="https://your-instance.qdrant.io",
  • Network accessline 146
    [Credential-related source omitted]
  • Network accessline 147
    qdrant_url="https://your-instance.qdrant.io",
  • Access to secretsline 148
    [Credential-related source omitted]

examples/single_agent/capabilities/rag/full_agent_rag_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 12
    [Credential-related source omitted]

examples/single_agent/capabilities/rag/pinecone_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 13
    [Credential-related source omitted]

examples/single_agent/capabilities/rag/qdrant_agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 19
    [Credential-related source omitted]
  • Access to secretsline 27
    [Credential-related source omitted]
  • Access to secretsline 33
    [Credential-related source omitted]
  • Access to secretsline 34
    [Credential-related source omitted]
  • Access to secretsline 168
    [Credential-related source omitted]
  • Access to secretsline 169
    [Credential-related source omitted]
  • Access to secretsline 174
    [Credential-related source omitted]

examples/single_agent/capabilities/rag/qdrant_rag_example.py

  • Executable scriptline 1
    Executable file
  • Network accessline 16
    client = QdrantClient(     url=os.getenv("QDRANT_URL", "https://your-cluster.qdrant.io"),
  • Network accessline 17
    url=os.getenv("QDRANT_URL", "https://your-cluster.qdrant.io"),
  • Access to secretsline 18
    [Credential-related source omitted]

examples/single_agent/capabilities/rag/simple_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/skills/agent_with_custom_skill.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/skills/agent_with_dynamic_skills.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/skills/agent_with_multiple_skills.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/skills/agent_with_skills.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/skills/multiple_skill_dirs/after.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/skills/multiple_skill_dirs/before.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/streaming/agent_stream_token.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/streaming/agent_streaming.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 15
    [Credential-related source omitted]

examples/single_agent/capabilities/streaming/auto_loop_streaming_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/streaming/example_streaming_tools.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/streaming/streaming_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 16
    [Credential-related source omitted]
  • Network accessline 19
    Test (the -N flag disables curl buffering so tokens appear as they arrive):
  • Network accessline 20
    curl -N -X POST http://localhost:8000/stream/multi \         -H 'content-type: application/json' \
  • Network accessline 24
    curl -N -X POST http://localhost:8000/stream/auto \         -H 'content-type: application/json' \
  • Network accessline 28
    curl -N -X POST http://localhost:8000/stream/sequential \         -H 'content-type: application/json' \

examples/single_agent/capabilities/tools/agent_mcp.py

  • Executable scriptline 1
    Executable file
  • Network accessline 10
    max_loops=1,     mcp_urls=[         "http://0.0.0.0:5932/mcp",
  • Network accessline 11
    mcp_urls=[         "http://0.0.0.0:5932/mcp",     ],
  • Network accessline 12
    "http://0.0.0.0:5932/mcp",

examples/single_agent/capabilities/tools/agent_with_exa.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 47
    [Credential-related source omitted]
  • Access to secretsline 49
    [Credential-related source omitted]
  • Access to secretsline 51
    [Credential-related source omitted]
  • Access to secretsline 58
    [Credential-related source omitted]
  • Network accessline 62
    # Payload format for Exa API (see https://docs.exa.ai/reference/search)
  • Network accessline 93
    response = httpx.post(
  • Network accessline 94
    "https://api.exa.ai/search",

examples/single_agent/capabilities/tools/exa_search_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/tools/example_async_vs_multithread.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/tools/litellm_tool_example.py

  • Executable scriptline 1
    Executable file
  • Network accessline 20
    url = f"https://query1.finance.yahoo.com/v7/finance/quote?symbols={symbol}"     response = requests.get(url)
  • Network accessline 21
    response = requests.get(url)

examples/single_agent/capabilities/tools/multi_tool_usage_agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 124
    [Credential-related source omitted]
  • Access to secretsline 137
    [Credential-related source omitted]
  • Access to secretsline 414
    [Credential-related source omitted]

examples/single_agent/capabilities/tools/new_tools_examples.py

  • Executable scriptline 1
    Executable file
  • Network accessline 25
    try:         url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 26
    url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 36
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 76
    url = "https://api.coingecko.com/api/v3/coins/markets"
  • Network accessline 86
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 143
    try:         url = "https://api.coingecko.com/api/v3/search"
  • Network accessline 144
    url = "https://api.coingecko.com/api/v3/search"
  • Network accessline 147
    response = requests.get(url, params=params, timeout=10)

examples/single_agent/capabilities/tools/omni_modal_agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 11
    [Credential-related source omitted]
  • Access to secretsline 50
    [Credential-related source omitted]
  • Network accessline 62
    url = "https://api.replicate.com/v1/models/black-forest-labs/flux-schnell/predictions"
  • Network accessline 66
    url = (             "https://api.replicate.com/v1/models/luma/ray/predictions"
  • Network accessline 67
    "https://api.replicate.com/v1/models/luma/ray/predictions"
  • Network accessline 72
    url = "https://api.replicate.com/v1/predictions"
  • Network accessline 83
    response = requests.post(url, headers=headers, json=data)

examples/single_agent/capabilities/tools/solana_tool/solana_tool.py

  • Executable scriptline 1
    Executable file
  • Network accessline 21
    RPC_ENDPOINTS = [     "https://api.mainnet-beta.solana.com",
  • Network accessline 22
    "https://api.mainnet-beta.solana.com",
  • Network accessline 23
    "https://solana.public-rpc.com",
  • Network accessline 24
    "https://rpc.ankr.com/solana",
  • Network accessline 47
    session = requests.Session()

examples/single_agent/capabilities/tools/solana_tool/solana_tool_test.py

  • Executable scriptline 1
    Executable file
  • Network accessline 21
    RPC_ENDPOINTS = [     "https://api.mainnet-beta.solana.com",
  • Network accessline 22
    "https://api.mainnet-beta.solana.com",
  • Network accessline 23
    "https://rpc.ankr.com/solana",
  • Network accessline 24
    "https://solana.getblock.io/mainnet",
  • Network accessline 98
    response = requests.post(

examples/single_agent/capabilities/tools/structured_outputs/example_meaning_of_life_agents.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/tools/structured_outputs/structured_outputs_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/tools/swarms_of_browser_agents.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/tools/swarms_tools_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/tools/together_deepseek_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/tools/tools_examples/dex_screener.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/tools/tools_examples/financial_news_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/tools/tools_examples/simple_tool_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/tools/tools_examples/swarms_tool_example_simple.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/vision/anthropic_vision_test.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/vision/base_64_images/test_base64_image.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/vision/image_batch_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/vision/image_batch_processor.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/vision/multimodal_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/vision/multiple_image_processing.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/vision/vision_test.py

  • Executable scriptline 1
    Executable file

examples/single_agent/capabilities/vision/vision_tools.py

  • Executable scriptline 1
    Executable file

examples/single_agent/demos/insurance_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/demos/persistent_legal_agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 25
    [Credential-related source omitted]

examples/single_agent/getting_started/interactive.py

  • Executable scriptline 1
    Executable file

examples/single_agent/getting_started/onboarding/onboard-basic.py

  • Executable scriptline 1
    Executable file

examples/single_agent/getting_started/simple_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/integrations/marketplace/marketplace_prompt_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/integrations/marketplace/medical_agent_add_to_marketplace.py

  • Executable scriptline 1
    Executable file

examples/single_agent/integrations/marketplace/quant_trader_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/integrations/marketplace/zia_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/reasoning/agent_judge_evaluation_criteria_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/reasoning/agent_judge_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/reasoning/consistency_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/reasoning/consistency_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/reasoning/gpk_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/reasoning/iterative_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/reasoning/reasoning_agent_router.py

  • Executable scriptline 1
    Executable file

examples/single_agent/reasoning/reasoning_agent_router_now.py

  • Executable scriptline 1
    Executable file

examples/single_agent/reasoning/reasoning_duo.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 121
    [Credential-related source omitted]

examples/single_agent/reasoning/reasoning_duo_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/reasoning/reasoning_duo_test.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/agent_usage.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 17
    [Credential-related source omitted]

examples/single_agent/utils/async_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/autosaving_examples/autosave_basic_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/autosaving_examples/autosave_config_access_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/autosaving_examples/autosave_directory_structure_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/autosaving_examples/autosave_recovery_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/custom_agent_base_url.py

  • Executable scriptline 1
    Executable file
  • Network accessline 16
    dynamic_context_window=True,     streaming_on=True,     llm_base_url="https://openrouter.ai/api/v1",  # Grok API base URL
  • Network accessline 17
    [Credential-related source omitted]
  • Network accessline 18
    llm_base_url="https://openrouter.ai/api/v1",  # Grok API base URL
  • Access to secretsline 19
    [Credential-related source omitted]
  • Access to secretsline 20
    [Credential-related source omitted]

examples/single_agent/utils/dynamic_context_window.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/fallback_test.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/grok_4_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/list_agent_output_types.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/markdown_agent.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/transform_prompts/transforms_agent_example.py

  • Executable scriptline 1
    Executable file

examples/single_agent/utils/transform_prompts/transforms_examples.py

  • Executable scriptline 1
    Executable file
  • Network accessline 60
    {             "role": "assistant",             "content": "Let me show you a practical example of inheritance:\n\n```python\nclass Animal:\n    def __init__(self, name):\n        self.name = name\n\n    def speak(self):\n        pass  # Abs
  • Network accessline 61
    "role": "assistant",             "content": "Let me show you a practical example of inheritance:\n\n```python\nclass Animal:\n    def __init__(self, name):\n        self.name = name\n\n    def speak(self):\n        pass  # Abstract method\n
  • Network accessline 62
    "content": "Let me show you a practical example of inheritance:\n\n```python\nclass Animal:\n    def __init__(self, name):\n        self.name = name\n\n    def speak(self):\n        pass  # Abstract method\n\nclass Dog(Animal):\n    def spe

examples/tools/agent_as_tools.py

  • Executable scriptline 1
    Executable file
  • Network accessline 315
    try:         url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 316
    url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 326
    response = requests.get(url, params=params, timeout=10)

examples/tools/base_tool_examples/base_tool_examples.py

  • Executable scriptline 1
    Executable file

examples/tools/base_tool_examples/conver_funcs_to_schema.py

  • Executable scriptline 1
    Executable file
  • Network accessline 27
    try:         url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 28
    url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 38
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 78
    url = "https://api.coingecko.com/api/v3/coins/markets"
  • Network accessline 88
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 145
    try:         url = "https://api.coingecko.com/api/v3/search"
  • Network accessline 146
    url = "https://api.coingecko.com/api/v3/search"
  • Network accessline 149
    response = requests.get(url, params=params, timeout=10)

examples/tools/base_tool_examples/exa_search_deep_research.py

  • Executable scriptline 1
    Executable file

examples/tools/base_tool_examples/example_usage.py

  • Executable scriptline 1
    #!/usr/bin/env python3

examples/tools/browser_use/browser_use_as_tool.py

  • Executable scriptline 1
    Executable file
  • Network accessline 77
    Example:         result = browser_agent_tool(             "Please navigate to https://www.coingecko.com and identify the best performing cryptocurrency coin over the past 24 hours."
  • Network accessline 78
    result = browser_agent_tool(             "Please navigate to https://www.coingecko.com and identify the best performing cryptocurrency coin over the past 24 hours."         )
  • Network accessline 79
    "Please navigate to https://www.coingecko.com and identify the best performing cryptocurrency coin over the past 24 hours."
  • Network accessline 92
    agent.run(     "Please navigate to https://www.coingecko.com and identify the best performing cryptocurrency coin over the past 24 hours."
  • Network accessline 93
    "Please navigate to https://www.coingecko.com and identify the best performing cryptocurrency coin over the past 24 hours."

examples/tools/browser_use/browser_use_demo.py

  • Executable scriptline 1
    Executable file
  • Network accessline 56
    swarm.run(     """Please navigate to https://www.coingecko.com and identify the best performing cryptocurrency coin over the past 24 hours.
  • Network accessline 57
    """Please navigate to https://www.coingecko.com and identify the best performing cryptocurrency coin over the past 24 hours.

examples/tools/claude/claude_as_a_tool.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 16
    [Credential-related source omitted]
  • Access to secretsline 26
    [Credential-related source omitted]

examples/tools/dynamic_tools/dynamic_tool_loading.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 11
    [Credential-related source omitted]

examples/tools/exa_search/exa_search_agent.py

  • Executable scriptline 1
    Executable file

examples/tools/exa_search/exa_search_agent_quant.py

  • Executable scriptline 1
    Executable file

examples/tools/exa_search/exa_search_test.py

  • Executable scriptline 1
    Executable file

examples/tools/firecrawl/firecrawl_agents_example.py

  • Executable scriptline 1
    Executable file

examples/tools/multi_tool_use/many_tool_use_demo.py

  • Executable scriptline 1
    Executable file
  • Network accessline 27
    try:         url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 28
    url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 38
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 78
    url = "https://api.coingecko.com/api/v3/coins/markets"
  • Network accessline 88
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 145
    try:         url = "https://api.coingecko.com/api/v3/search"
  • Network accessline 146
    url = "https://api.coingecko.com/api/v3/search"
  • Network accessline 149
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 196
    try:         url = "https://lite-api.jup.ag/swap/v1/quote"
  • Network accessline 197
    url = "https://lite-api.jup.ag/swap/v1/quote"
  • Network accessline 205
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 232
    try:         url = "https://api.htx.com/market/detail/merged"
  • Network accessline 233
    url = "https://api.htx.com/market/detail/merged"
  • Network accessline 236
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 267
    try:         url = f"https://api.coingecko.com/api/v3/coins/{token_id}/market_chart"
  • Network accessline 268
    url = f"https://api.coingecko.com/api/v3/coins/{token_id}/market_chart"
  • Network accessline 275
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 299
    try:         url = "https://api.coingecko.com/api/v3/global/decentralized_finance_defi"         response = requests.get(url, timeout=10)
  • Network accessline 300
    url = "https://api.coingecko.com/api/v3/global/decentralized_finance_defi"         response = requests.get(url, timeout=10)         response.raise_for_status()
  • Network accessline 301
    response = requests.get(url, timeout=10)
  • Network accessline 325
    try:         url = "https://lite-api.jup.ag/tokens/v1/mints/tradable"         response = requests.get(url, timeout=10)
  • Network accessline 326
    url = "https://lite-api.jup.ag/tokens/v1/mints/tradable"         response = requests.get(url, timeout=10)         response.raise_for_status()
  • Network accessline 327
    response = requests.get(url, timeout=10)
  • Network accessline 351
    try:         url = "https://api.htx.com/v1/common/symbols"         response = requests.get(url, timeout=10)
  • Network accessline 352
    url = "https://api.htx.com/v1/common/symbols"         response = requests.get(url, timeout=10)         response.raise_for_status()
  • Network accessline 353
    response = requests.get(url, timeout=10)
  • Network accessline 381
    sentiment_data = {}         for coin_id in coin_ids:             url = f"https://api.coingecko.com/api/v3/coins/{coin_id}"
  • Network accessline 382
    for coin_id in coin_ids:             url = f"https://api.coingecko.com/api/v3/coins/{coin_id}"             params = {
  • Network accessline 383
    url = f"https://api.coingecko.com/api/v3/coins/{coin_id}"
  • Network accessline 392
    response = requests.get(url, params=params, timeout=10)

examples/tools/multi_tool_use/multi_tool_anthropic.py

  • Executable scriptline 1
    Executable file
  • Network accessline 25
    try:         url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 26
    url = "https://api.coingecko.com/api/v3/simple/price"
  • Network accessline 36
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 76
    url = "https://api.coingecko.com/api/v3/coins/markets"
  • Network accessline 86
    response = requests.get(url, params=params, timeout=10)
  • Network accessline 143
    try:         url = "https://api.coingecko.com/api/v3/search"
  • Network accessline 144
    url = "https://api.coingecko.com/api/v3/search"
  • Network accessline 147
    response = requests.get(url, params=params, timeout=10)

examples/tools/social_media/social_media_tools.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 22
    [Credential-related source omitted]
  • Access to secretsline 24
    [Credential-related source omitted]
  • Access to secretsline 28
    [Credential-related source omitted]
  • Access to secretsline 33
    [Credential-related source omitted]
  • Access to secretsline 46
    [Credential-related source omitted]
  • Access to secretsline 100
    [Credential-related source omitted]
  • Access to secretsline 114
    [Credential-related source omitted]
  • Access to secretsline 115
    [Credential-related source omitted]
  • Access to secretsline 116
    [Credential-related source omitted]
  • Network accessline 118
    )         response = oauth.post(             "https://api.twitter.com/2/tweets",
  • Network accessline 119
    response = oauth.post(             "https://api.twitter.com/2/tweets",             json={"text": content},
  • Network accessline 120
    "https://api.twitter.com/2/tweets",
  • Access to secretsline 139
    [Credential-related source omitted]
  • Access to secretsline 151
    [Credential-related source omitted]
  • Network accessline 165
    },         }         response = requests.post(
  • Network accessline 166
    }         response = requests.post(             "https://api.linkedin.com/v2/ugcPosts",
  • Network accessline 167
    response = requests.post(
  • Network accessline 168
    "https://api.linkedin.com/v2/ugcPosts",
  • Access to secretsline 200
    [Credential-related source omitted]
  • Network accessline 225
    [Credential-related source omitted]
  • Network accessline 226
    [Credential-related source omitted]
  • Access to secretsline 226
    [Credential-related source omitted]
  • Network accessline 227
    token_uri="https://oauth2.googleapis.com/token",
  • Network accessline 282
    [Credential-related source omitted]
  • Network accessline 283
    chat_id = _env("TELEGRAM_CHAT_ID")         response = requests.post(             f"https://api.telegram.org/bot{token}/sendMessage",
  • Network accessline 284
    response = requests.post(
  • Network accessline 285
    f"https://api.telegram.org/bot{token}/sendMessage",
  • Network accessline 320
    try:         webhook_url = _env("DISCORD_WEBHOOK_URL")         response = requests.post(
  • Network accessline 321
    webhook_url = _env("DISCORD_WEBHOOK_URL")         response = requests.post(             webhook_url,
  • Network accessline 322
    response = requests.post(
  • Access to secretsline 343
    [Credential-related source omitted]
  • Network accessline 354
    [Credential-related source omitted]
  • Access to secretsline 354
    [Credential-related source omitted]
  • Network accessline 355
    title = os.getenv("DEVTO_TITLE") or _first_line(content)         response = requests.post(             "https://dev.to/api/articles",
  • Network accessline 356
    response = requests.post(
  • Network accessline 357
    "https://dev.to/api/articles",
  • Access to secretsline 359
    [Credential-related source omitted]

examples/tools/stagehand/1_stagehand_wrapper_agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 49
    [Credential-related source omitted]
  • Access to secretsline 52
    [Credential-related source omitted]
  • Access to secretsline 62
    [Credential-related source omitted]
  • Access to secretsline 65
    [Credential-related source omitted]
  • Access to secretsline 73
    [Credential-related source omitted]
  • Access to secretsline 74
    [Credential-related source omitted]
  • Access to secretsline 78
    [Credential-related source omitted]
  • Access to secretsline 79
    [Credential-related source omitted]
  • Network accessline 106
    - "Navigate to example.com and extract the main content"         - "Go to google.com and search for 'AI agents'"         - "Extract all company names from https://ycombinator.com"
  • Network accessline 108
    - "Extract all company names from https://ycombinator.com"
  • Network accessline 161
    domains = re.findall(domain_pattern, task)                 if domains:                     urls = [f"https://{domain}" for domain in domains]
  • Network accessline 163
    urls = [f"https://{domain}" for domain in domains]
  • Network accessline 242
    print("Example 1: Basic navigation and extraction")     result1 = browser_agent.run(         "Navigate to https://news.ycombinator.com and extract the titles of the top 5 stories"
  • Network accessline 243
    result1 = browser_agent.run(         "Navigate to https://news.ycombinator.com and extract the titles of the top 5 stories"     )
  • Network accessline 244
    "Navigate to https://news.ycombinator.com and extract the titles of the top 5 stories"
  • Network accessline 258
    print("Example 3: Extract specific information")     result3 = browser_agent.run(         "Navigate to https://example.com and extract the main heading and first paragraph"
  • Network accessline 259
    result3 = browser_agent.run(         "Navigate to https://example.com and extract the main heading and first paragraph"     )
  • Network accessline 260
    "Navigate to https://example.com and extract the main heading and first paragraph"

examples/tools/stagehand/2_stagehand_tools_agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 42
    [Credential-related source omitted]
  • Access to secretsline 45
    [Credential-related source omitted]
  • Access to secretsline 51
    [Credential-related source omitted]
  • Access to secretsline 55
    [Credential-related source omitted]
  • Access to secretsline 56
    [Credential-related source omitted]
  • Network accessline 87
    Args:         url (str): The URL to navigate to. Should be a valid URL starting with http:// or https://.
  • Network accessline 88
    url (str): The URL to navigate to. Should be a valid URL starting with http:// or https://.
  • Network accessline 98
    Example:         >>> result = navigate_browser("https://example.com")
  • Network accessline 99
    >>> result = navigate_browser("https://example.com")
  • Network accessline 101
    "Successfully navigated to https://example.com"
  • Network accessline 103
    >>> result = navigate_browser("google.com")         >>> print(result)         "Successfully navigated to https://google.com"
  • Network accessline 104
    >>> print(result)         "Successfully navigated to https://google.com"     """
  • Network accessline 105
    "Successfully navigated to https://google.com"
  • Network accessline 117
    if not url.startswith(("http://", "https://")):             url = f"https://{url}"
  • Network accessline 118
    url = f"https://{url}"

examples/tools/stagehand/3_stagehand_mcp_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 16
    2. The server will start on http://localhost:3000/mcp
  • Network accessline 42
    self,         agent_name: str = "StagehandMCPAgent",         mcp_server_url: str = "http://localhost:3000/mcp",
  • Network accessline 43
    agent_name: str = "StagehandMCPAgent",         mcp_server_url: str = "http://localhost:3000/mcp",         model_name: str = "gpt-5.4",
  • Network accessline 44
    mcp_server_url: str = "http://localhost:3000/mcp",
  • Network accessline 92
    def __init__(         self,         mcp_server_url: str = "http://localhost:3000/mcp",
  • Network accessline 93
    self,         mcp_server_url: str = "http://localhost:3000/mcp",         num_agents: int = 3,
  • Network accessline 94
    mcp_server_url: str = "http://localhost:3000/mcp",
  • Network accessline 166
    print("=" * 70)     print(         "\nMake sure the Stagehand MCP server is running on http://localhost:3000/mcp"
  • Network accessline 167
    print(         "\nMake sure the Stagehand MCP server is running on http://localhost:3000/mcp"     )
  • Network accessline 168
    "\nMake sure the Stagehand MCP server is running on http://localhost:3000/mcp"
  • Network accessline 176
    mcp_agent = StagehandMCPAgent(         agent_name="WebResearchAgent",         mcp_server_url="http://localhost:3000/mcp",
  • Network accessline 177
    agent_name="WebResearchAgent",         mcp_server_url="http://localhost:3000/mcp",     )
  • Network accessline 178
    mcp_server_url="http://localhost:3000/mcp",
  • Network accessline 197
    parallel_agent = StagehandMCPAgent(         agent_name="ParallelBrowserAgent",         mcp_server_url="http://localhost:3000/mcp",
  • Network accessline 198
    agent_name="ParallelBrowserAgent",         mcp_server_url="http://localhost:3000/mcp",     )
  • Network accessline 199
    mcp_server_url="http://localhost:3000/mcp",
  • Network accessline 219
    browser_swarm = MultiSessionBrowserSwarm(         mcp_server_url="http://localhost:3000/mcp",
  • Network accessline 220
    mcp_server_url="http://localhost:3000/mcp",
  • Network accessline 243
    workflow_agent = StagehandMCPAgent(         agent_name="WorkflowAgent",         mcp_server_url="http://localhost:3000/mcp",
  • Network accessline 244
    agent_name="WorkflowAgent",         mcp_server_url="http://localhost:3000/mcp",         max_loops=2,  # Allow more complex reasoning
  • Network accessline 245
    mcp_server_url="http://localhost:3000/mcp",

examples/tools/stagehand/4_stagehand_multi_agent_workflow.py

  • Executable scriptline 1
    Executable file
  • Network accessline 227
    news_scrapers = []     news_sites = [         ("TechCrunch", "https://techcrunch.com"),
  • Network accessline 228
    news_sites = [         ("TechCrunch", "https://techcrunch.com"),         ("HackerNews", "https://news.ycombinator.com"),
  • Network accessline 229
    ("TechCrunch", "https://techcrunch.com"),
  • Network accessline 230
    ("HackerNews", "https://news.ycombinator.com"),
  • Network accessline 231
    ("Reddit", "https://reddit.com/r/technology"),

examples/tools/stagehand/README.md

  • Network accessline 3
    This directory contains examples demonstrating how to integrate [Stagehand](https://github.com/browserbase/stagehand), an AI-powered browser automation framework, with the Swarms multi-agent framework.
  • Network accessline 87
    mcp_agent = StagehandMCPAgent(     agent_name="WebResearchAgent",     mcp_server_url="http://localhost:3000/mcp",
  • Network accessline 88
    agent_name="WebResearchAgent",     mcp_server_url="http://localhost:3000/mcp", )
  • Network accessline 89
    mcp_server_url="http://localhost:3000/mcp",
  • Access to secretsline 151
    [Credential-related source omitted]
  • Access to secretsline 154
    [Credential-related source omitted]
  • Network accessline 241
    These examples are provided under the same license as the Swarms framework. Stagehand is licensed separately - see [Stagehand's repository](https://github.com/browserbase/stagehand) for details.

examples/utils/agent_loader/agent_loader_demo.py

  • Executable scriptline 1
    Executable file

examples/utils/agent_loader/claude_code_compatible.py

  • Executable scriptline 1
    Executable file

examples/utils/agent_loader/multi_agents_loader_demo.py

  • Executable scriptline 1
    Executable file

examples/utils/class_to_base_model.py

  • Executable scriptline 1
    Executable file

examples/utils/communication_examples/duckdb_agent.py

  • Executable scriptline 1
    Executable file

examples/utils/communication_examples/pulsar_conversation.py

  • Executable scriptline 1
    Executable file

examples/utils/communication_examples/redis_conversation.py

  • Executable scriptline 1
    Executable file

examples/utils/communication_examples/sqlite_conversation.py

  • Executable scriptline 1
    Executable file

examples/utils/conversation_cache_examples/conversation_cache_interactive.py

  • Executable scriptline 1
    Executable file

examples/utils/conversation_cache_examples/sequential_cache_test.py

  • Executable scriptline 1
    Executable file

examples/utils/fetch_prompt.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    if __name__ == "__main__":     prompt = AgentMarketplaceHandler.fetch(
  • Network accessline 10
    prompt = AgentMarketplaceHandler.fetch(

examples/utils/litellm_connect_issue.py

  • Executable scriptline 1
    Executable file

examples/utils/litellm_network_error_handling.py

  • Executable scriptline 1
    Executable file
  • Network accessline 51
    print(f"Local model error: {local_error}")             print("\nMake sure Ollama is installed and running:")             print("1. Install: https://ollama.ai")
  • Network accessline 52
    print("\nMake sure Ollama is installed and running:")             print("1. Install: https://ollama.ai")             print("2. Run: ollama pull llama2")
  • Network accessline 53
    print("1. Install: https://ollama.ai")
  • Network accessline 113
    model = LiteLLM(         model_name="ollama/llama2",         base_url="http://localhost:11434",
  • Network accessline 114
    model_name="ollama/llama2",         base_url="http://localhost:11434",         temperature=0.7,
  • Network accessline 115
    base_url="http://localhost:11434",

examples/utils/misc/agent_map_test.py

  • Executable scriptline 1
    Executable file

examples/utils/misc/conversation_simple.py

  • Executable scriptline 1
    Executable file

examples/utils/misc/conversation_test.py

  • Executable scriptline 1
    Executable file

examples/utils/misc/conversation_test_truncate.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 5
    [Credential-related source omitted]

examples/utils/misc/csvagent_example.py

  • Executable scriptline 1
    Executable file

examples/utils/misc/dict_to_table.py

  • Executable scriptline 1
    Executable file

examples/utils/misc/swarm_matcher_example.py

  • Executable scriptline 1
    Executable file

examples/utils/misc/test_load_conversation.py

  • Executable scriptline 1
    Executable file

examples/utils/misc/visualizer_test.py

  • Executable scriptline 1
    Executable file

examples/utils/skills_load.py

  • Executable scriptline 1
    Executable file

examples/utils/swarms_api/agent_overview.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 9
    [Credential-related source omitted]

examples/utils/swarms_api/batch_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 9
    [Credential-related source omitted]

examples/utils/swarms_api/client_example.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 8
    [Credential-related source omitted]

examples/utils/swarms_api/hospital_team.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 9
    [Credential-related source omitted]

examples/utils/swarms_api/icd_ten_analysis.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 9
    [Credential-related source omitted]

examples/utils/swarms_api/legal_team.py

  • Executable scriptline 1
    Executable file
  • Network accessline 10
    [Credential-related source omitted]
  • Access to secretsline 10
    [Credential-related source omitted]
  • Network accessline 11
    BASE_URL = "https://api.swarms.world"
  • Access to secretsline 12
    [Credential-related source omitted]
  • Network accessline 24
    response = requests.post(

examples/utils/swarms_api/rate_limits.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 7
    [Credential-related source omitted]

images/swarms_logo_svg.svg

  • Network accessline 1
    <svg width="232" height="207" viewBox="0 0 232 207" fill="none" xmlns="http://www.w3.org/2000/svg">

pyproject.toml

  • Network accessline 10
    license = "Apache-2.0" authors = ["Kye Gomez <kye@swarms.world>"] homepage = "https://github.com/kyegomez/swarms"
  • Network accessline 11
    authors = ["Kye Gomez <kye@swarms.world>"] homepage = "https://github.com/kyegomez/swarms" documentation = "https://docs.swarms.world"
  • Network accessline 12
    homepage = "https://github.com/kyegomez/swarms"
  • Network accessline 13
    documentation = "https://docs.swarms.world"
  • Network accessline 14
    readme = "README.md" repository = "https://github.com/kyegomez/swarms" keywords = [
  • Network accessline 15
    repository = "https://github.com/kyegomez/swarms"

scripts/examples.py

  • Executable scriptline 1
    Executable file
  • Network accessline 10
    api_url = f"https://api.github.com/repos/{owner}/{repo}/git/trees/{branch}?recursive=1"
  • Network accessline 11
    raw_base = (         f"https://raw.githubusercontent.com/{owner}/{repo}/{branch}/"     )
  • Network accessline 12
    f"https://raw.githubusercontent.com/{owner}/{repo}/{branch}/"
  • Network accessline 15
    response = requests.get(api_url)

scripts/github_commits.py

  • Executable scriptline 1
    Executable file
  • Network accessline 47
    Supports:     - https://github.com/owner/repo
  • Network accessline 48
    - https://github.com/owner/repo
  • Network accessline 49
    - https://github.com/owner/repo/
  • Network accessline 84
    Args:         repo_url: GitHub repository URL (e.g. https://github.com/owner/repo)
  • Network accessline 85
    repo_url: GitHub repository URL (e.g. https://github.com/owner/repo)
  • Network accessline 130
    api_url = f"https://api.github.com/repos/{repo}/commits"
  • Network accessline 140
    "since": since_iso,         }         resp = requests.get(
  • Network accessline 141
    }         resp = requests.get(             api_url, headers=headers, params=params, timeout=30
  • Network accessline 142
    resp = requests.get(
  • Network accessline 186
    commits = fetch_github_commits(     "https://github.com/kyegomez/swarms",
  • Network accessline 187
    "https://github.com/kyegomez/swarms",

scripts/tests/run_all_tests.py

  • Executable scriptline 1
    Executable file

scripts/tests/test_rename_recursive.py

  • Executable scriptline 1
    Executable file

scripts/tests/test_upload_tests_to_issues.py

  • Executable scriptline 1
    Executable file
  • Network accessline 11
    [Credential-related source omitted]
  • Access to secretsline 12
    [Credential-related source omitted]
  • Network accessline 13
    ISSUES_URL = f"https://api.github.com/repos/{GITHUB_USERNAME}/{REPO_NAME}/issues"
  • Network accessline 48
    def create_github_issue(title, body):     issue = {"title": title, "body": body}     response = requests.post(ISSUES_URL, headers=headers, json=issue)
  • Network accessline 49
    issue = {"title": title, "body": body}     response = requests.post(ISSUES_URL, headers=headers, json=issue)     return response.json()
  • Network accessline 50
    response = requests.post(ISSUES_URL, headers=headers, json=issue)

swarms/__init__.py

  • Executable scriptline 1
    Executable file

swarms/agents/__init__.py

  • Executable scriptline 1
    Executable file

swarms/agents/agent_judge.py

  • Executable scriptline 1
    Executable file

swarms/agents/agent_marketplace_handler.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 9
    [Credential-related source omitted]
  • Network accessline 18
    [Credential-related source omitted]
  • Access to secretsline 18
    [Credential-related source omitted]
  • Network accessline 19
    https://swarms.world/platform/api-keys
  • Network accessline 40
    MARKETPLACE_BASE_URL = "https://swarms.world/api"
  • Network accessline 41
    API_KEYS_URL = "https://swarms.world/platform/api-keys"
  • Network accessline 53
    return httpx.Client(timeout=timeout)
  • Network accessline 69
    >>> # standalone, no agent required         >>> AgentMarketplaceHandler.fetch(name="code-review-assistant")
  • Network accessline 70
    >>> AgentMarketplaceHandler.fetch(name="code-review-assistant")
  • Access to secretsline 79
    [Credential-related source omitted]
  • Access to secretsline 88
    [Credential-related source omitted]
  • Access to secretsline 90
    [Credential-related source omitted]
  • Access to secretsline 92
    [Credential-related source omitted]
  • Access to secretsline 94
    [Credential-related source omitted]
  • Access to secretsline 98
    [Credential-related source omitted]
  • Access to secretsline 104
    [Credential-related source omitted]
  • Network accessline 110
    @classmethod     def fetch(
  • Network accessline 111
    def fetch(
  • Network accessline 126
    GET ``https://swarms.world/api/get-prompts/<uuid-or-url-encoded-name>``
  • Network accessline 201
    result = cls.fetch(prompt_id=prompt_id)
  • Network accessline 274
    POST ``https://swarms.world/api/add-prompt``
  • Network accessline 317
    try:             with httpx.Client(timeout=timeout) as client:
  • Network accessline 318
    with httpx.Client(timeout=timeout) as client:
  • Access to secretsline 343
    [Credential-related source omitted]

swarms/agents/ape_agent.py

  • Executable scriptline 1
    Executable file

swarms/agents/auto_chat_agent.py

  • Executable scriptline 1
    Executable file

swarms/agents/auto_generate_swarm_config.py

  • Executable scriptline 1
    Executable file

swarms/agents/autonomous_loop.py

  • Executable scriptline 1
    Executable file

swarms/agents/consistency_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    The self-consistency approach is based on the research paper: "Self-Consistency Improves Chain of Thought Reasoning in Language Models" by Wang et al. (2022) - https://arxiv.org/abs/2203.07870
  • Network accessline 11
    by Wang et al. (2022) - https://arxiv.org/abs/2203.07870
  • Network accessline 142
    Wang, Y., Dong, W., Han, J., & Wang, W. (2022). Self-Consistency Improves Chain of         Thought Reasoning in Language Models. arXiv preprint arXiv:2203.07870.         https://arxiv.org/abs/2203.07870
  • Network accessline 144
    https://arxiv.org/abs/2203.07870
  • Dangerous shell operationline 191
    eval (bool, optional): Enable evaluation mode for answer validation.

swarms/agents/context_compressor.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 63
    [Credential-related source omitted]
  • Access to secretsline 141
    [Credential-related source omitted]

swarms/agents/flexion_agent.py

  • Executable scriptline 1
    Executable file

swarms/agents/gkp_agent.py

  • Executable scriptline 1
    Executable file

swarms/agents/heavy_swarm_agents.py

  • Executable scriptline 1
    Executable file

swarms/agents/i_agent.py

  • Executable scriptline 1
    Executable file

swarms/agents/llm_manager.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 153
    [Credential-related source omitted]

swarms/agents/reasoning_agent_router.py

  • Executable scriptline 1
    Executable file
  • Dangerous shell operationline 67
    eval (bool): Enable evaluation mode for self-consistency.
  • Network accessline 269
    except Exception as e:             raise ReasoningAgentInitializationError(                 f"ReasoningAgentRouter Error: {e} Traceback: {traceback.format_exc()} If the error persists, please check the agent's configuration and try again. I
  • Network accessline 270
    raise ReasoningAgentInitializationError(                 f"ReasoningAgentRouter Error: {e} Traceback: {traceback.format_exc()} If the error persists, please check the agent's configuration and try again. If you would like support book a cal
  • Network accessline 271
    f"ReasoningAgentRouter Error: {e} Traceback: {traceback.format_exc()} If the error persists, please check the agent's configuration and try again. If you would like support book a call with our team at https://cal.com/swarms"
  • Network accessline 293
    except Exception as e:             raise ReasoningAgentExecutorError(                 f"ReasoningAgentRouter Error: {e} Traceback: {traceback.format_exc()} If the error persists, please check the agent's configuration and try again. If you 
  • Network accessline 294
    raise ReasoningAgentExecutorError(                 f"ReasoningAgentRouter Error: {e} Traceback: {traceback.format_exc()} If the error persists, please check the agent's configuration and try again. If you would like support book a call with
  • Network accessline 295
    f"ReasoningAgentRouter Error: {e} Traceback: {traceback.format_exc()} If the error persists, please check the agent's configuration and try again. If you would like support book a call with our team at https://cal.com/swarms"

swarms/agents/reasoning_duo.py

  • Executable scriptline 1
    Executable file

swarms/agents/skills_manager.py

  • Executable scriptline 1
    Executable file

swarms/agents/tool_manager.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 919
    [Credential-related source omitted]

swarms/agents/tree_of_thoughts.py

  • Executable scriptline 1
    Executable file
  • Network accessline 4
    Implements "Tree of Thoughts: Deliberate Problem Solving with Large Language Models" (Yao et al., 2023, https://arxiv.org/abs/2305.10601). Instead of
  • Network accessline 5
    Models" (Yao et al., 2023, https://arxiv.org/abs/2305.10601). Instead of
  • Network accessline 504
    Yao, S., Yu, D., Zhao, J., Shafran, I., Griffiths, T. L., Cao, Y.,         & Narasimhan, K. (2023). Tree of Thoughts: Deliberate Problem         Solving with Large Language Models. https://arxiv.org/abs/2305.10601
  • Network accessline 506
    Solving with Large Language Models. https://arxiv.org/abs/2305.10601
  • Access to secretsline 591
    [Credential-related source omitted]

swarms/cli/__init__.py

  • Executable scriptline 1
    Executable file

swarms/cli/main.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 44
    [Credential-related source omitted]
  • Network accessline 929
    print(f"  {prog_name} setup-check --verbose")         print()         print("Documentation:  https://docs.swarms.world")
  • Network accessline 930
    print()         print("Documentation:  https://docs.swarms.world")         print(
  • Network accessline 931
    print("Documentation:  https://docs.swarms.world")
  • Network accessline 932
    print(             "Support:        https://github.com/kyegomez/swarms/issues"         )
  • Network accessline 933
    "Support:        https://github.com/kyegomez/swarms/issues"
  • Network accessline 934
    )         print("Community:      https://discord.gg/EamjgSaEQf")         print()
  • Network accessline 935
    print("Community:      https://discord.gg/EamjgSaEQf")
  • Access to secretsline 1348
    [Credential-related source omitted]
  • Access to secretsline 1706
    [Credential-related source omitted]
  • Access to secretsline 1719
    [Credential-related source omitted]
  • Access to secretsline 1794
    [Credential-related source omitted]
  • Access to secretsline 1796
    [Credential-related source omitted]
  • Access to secretsline 1800
    [Credential-related source omitted]
  • Access to secretsline 1802
    [Credential-related source omitted]
  • Access to secretsline 1806
    [Credential-related source omitted]
  • Access to secretsline 1808
    [Credential-related source omitted]
  • Access to secretsline 1812
    [Credential-related source omitted]
  • Access to secretsline 1813
    [Credential-related source omitted]
  • Access to secretsline 1815
    [Credential-related source omitted]
  • Access to secretsline 1869
    [Credential-related source omitted]
  • Network accessline 1906
    console.print(         "  [dim white]Required for [bold white]--marketplace-prompt-id[/bold white][dim white] and the Swarms platform.[/dim white]\n"         "  [dim white]Get one at: [bold white]https://swarms.world/platform/api-keys[/bold
  • Network accessline 1907
    "  [dim white]Required for [bold white]--marketplace-prompt-id[/bold white][dim white] and the Swarms platform.[/dim white]\n"         "  [dim white]Get one at: [bold white]https://swarms.world/platform/api-keys[/bold white][dim white][/dim
  • Network accessline 1908
    "  [dim white]Get one at: [bold white]https://swarms.world/platform/api-keys[/bold white][dim white][/dim white]"
  • Access to secretsline 1912
    [Credential-related source omitted]
  • Access to secretsline 1917
    [Credential-related source omitted]
  • Access to secretsline 1918
    [Credential-related source omitted]
  • Access to secretsline 1921
    [Credential-related source omitted]
  • Access to secretsline 1925
    [Credential-related source omitted]
  • Access to secretsline 1934
    [Credential-related source omitted]
  • Access to secretsline 1943
    [Credential-related source omitted]
  • Access to secretsline 1987
    [Credential-related source omitted]
  • Access to secretsline 1996
    [Credential-related source omitted]
  • Access to secretsline 2013
    [Credential-related source omitted]
  • Access to secretsline 2016
    [Credential-related source omitted]
  • Access to secretsline 2019
    [Credential-related source omitted]
  • Access to secretsline 2151
    [Credential-related source omitted]
  • Network accessline 2256
    "- Try [bold]swarms --help[/bold] for command details\n"             "- Run [bold]swarms setup-check --verbose[/bold] to validate your environment\n"             "- Report bugs at https://github.com/kyegomez/swarms/issues"
  • Network accessline 2257
    "- Run [bold]swarms setup-check --verbose[/bold] to validate your environment\n"             "- Report bugs at https://github.com/kyegomez/swarms/issues"         )
  • Network accessline 2258
    "- Report bugs at https://github.com/kyegomez/swarms/issues"
  • Network accessline 2330
    "👉 Please review your arguments, environment settings, and try again.\n"             "For more information, run 'swarms help' or visit the documentation:\n"             "https://docs.swarms.world/cli/overview\n\n"
  • Network accessline 2331
    "For more information, run 'swarms help' or visit the documentation:\n"             "https://docs.swarms.world/cli/overview\n\n"             f"[dim]Traceback:[/dim]\n{traceback.format_exc()}",
  • Network accessline 2332
    "https://docs.swarms.world/cli/overview\n\n"

swarms/cli/models.py

  • Executable scriptline 1
    Executable file

swarms/cli/tips.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 26
    [Credential-related source omitted]
  • Network accessline 61
    "Pick the response shape with [bold]--output-type json[/bold] (or [bold]str[/bold] / [bold]dict[/bold])",     "Force non-interactive runs with [bold]--no-interactive[/bold] — handy for CI",     "Connect an MCP tool server with [bold]--mcp-u
  • Network accessline 62
    "Force non-interactive runs with [bold]--no-interactive[/bold] — handy for CI",     "Connect an MCP tool server with [bold]--mcp-url http://localhost:8000/sse[/bold]",     "Pop the live agent dashboard with [bold]--dashboard[/bold]",
  • Network accessline 63
    "Connect an MCP tool server with [bold]--mcp-url http://localhost:8000/sse[/bold]",
  • Access to secretsline 88
    [Credential-related source omitted]
  • Access to secretsline 110
    [Credential-related source omitted]
  • Network accessline 124
    COMMUNITY_TIPS: List[str] = [     "Star the repo at [bold]https://github.com/kyegomez/swarms[/bold]",
  • Network accessline 125
    "Star the repo at [bold]https://github.com/kyegomez/swarms[/bold]",
  • Network accessline 126
    "Join the Discord at [bold]https://discord.gg/EamjgSaEQf[/bold]",
  • Network accessline 127
    "Full CLI docs at [bold]https://docs.swarms.world/cli/overview[/bold]",
  • Network accessline 128
    "Report a CLI bug at [bold]github.com/kyegomez/swarms/issues[/bold]",     "Browse the prompt marketplace at [bold]https://swarms.world/prompts[/bold] — use IDs with [bold]--marketplace-prompt-id[/bold]", ]
  • Network accessline 129
    "Browse the prompt marketplace at [bold]https://swarms.world/prompts[/bold] — use IDs with [bold]--marketplace-prompt-id[/bold]",

swarms/cli/utils.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 51
    [Credential-related source omitted]
  • Access to secretsline 53
    [Credential-related source omitted]
  • Access to secretsline 55
    [Credential-related source omitted]
  • Access to secretsline 57
    [Credential-related source omitted]
  • Access to secretsline 59
    [Credential-related source omitted]
  • Access to secretsline 61
    [Credential-related source omitted]
  • Access to secretsline 63
    [Credential-related source omitted]
  • Network accessline 112
    info.append(cwd + "\n", style="dim white")     info.append(         "https://github.com/kyegomez/swarms", style="dim white"
  • Network accessline 113
    info.append(         "https://github.com/kyegomez/swarms", style="dim white"     )
  • Network accessline 114
    "https://github.com/kyegomez/swarms", style="dim white"
  • Access to secretsline 184
    [Credential-related source omitted]
  • Access to secretsline 189
    [Credential-related source omitted]
  • Access to secretsline 198
    [Credential-related source omitted]
  • Access to secretsline 203
    [Credential-related source omitted]
  • Access to secretsline 206
    [Credential-related source omitted]
  • Access to secretsline 211
    [Credential-related source omitted]
  • Access to secretsline 214
    [Credential-related source omitted]
  • Access to secretsline 276
    [Credential-related source omitted]
  • Access to secretsline 277
    [Credential-related source omitted]
  • Access to secretsline 278
    [Credential-related source omitted]
  • Access to secretsline 279
    [Credential-related source omitted]
  • Access to secretsline 432
    [Credential-related source omitted]
  • Access to secretsline 436
    [Credential-related source omitted]
  • Access to secretsline 487
    [Credential-related source omitted]
  • Network accessline 489
    with create_spinner() as progress:         task = progress.add_task("Opening browser...")         webbrowser.open("https://swarms.world/platform/api-keys")
  • Network accessline 490
    task = progress.add_task("Opening browser...")         webbrowser.open("https://swarms.world/platform/api-keys")         time.sleep(1)
  • Network accessline 491
    webbrowser.open("https://swarms.world/platform/api-keys")

swarms/env.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 8
    [Credential-related source omitted]

swarms/prompts/__init__.py

  • Executable scriptline 1
    Executable file

swarms/prompts/accountant_swarm_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/advisor_swarm_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/ag_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/aga.py

  • Executable scriptline 1
    Executable file

swarms/prompts/agent_acknowledgement_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/agent_conversation_aggregator.py

  • Executable scriptline 1
    Executable file

swarms/prompts/agent_judge_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/agent_orchestration_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/agent_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/agent_self_builder_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/agent_system_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/ai_research_team.py

  • Executable scriptline 1
    Executable file

swarms/prompts/aot_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/auto_agent_builder_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/autobloggen.py

  • Executable scriptline 1
    Executable file

swarms/prompts/autonomous_agent_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/autoswarm.py

  • Executable scriptline 1
    Executable file

swarms/prompts/code_interpreter.py

  • Executable scriptline 1
    Executable file

swarms/prompts/code_spawner.py

  • Executable scriptline 1
    Executable file

swarms/prompts/collaborative_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/debate_with_judge_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/documentation.py

  • Executable scriptline 1
    Executable file

swarms/prompts/education.py

  • Executable scriptline 1
    Executable file

swarms/prompts/finance_agent_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/finance_agent_sys_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/groupchat_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/growth_agent_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/handoffs_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/heavy_swarm_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/hierarchical_swarm_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/idea2img.py

  • Executable scriptline 1
    Executable file

swarms/prompts/legal_agent_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/llm_council_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/logistics.py

  • Executable scriptline 1
    Executable file

swarms/prompts/max_loop_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/meta_system_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/moa_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/multi_agent_collab_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/multi_modal_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/multi_modal_visual_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/operations_agent_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/paper_idea_agent.py

  • Executable scriptline 1
    Executable file

swarms/prompts/personal_stylist.py

  • Executable scriptline 1
    Executable file

swarms/prompts/phased_fan_out_workflow_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/planner_generator_evaluator_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/planner_worker_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/product_agent_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/programming.py

  • Executable scriptline 1
    Executable file

swarms/prompts/project_manager.py

  • Executable scriptline 1
    Executable file

swarms/prompts/prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/prompt_generator.py

  • Executable scriptline 1
    Executable file

swarms/prompts/prompt_generator_optimizer.py

  • Executable scriptline 1
    Executable file

swarms/prompts/python.py

  • Executable scriptline 1
    Executable file

swarms/prompts/react.py

  • Executable scriptline 1
    Executable file

swarms/prompts/react_base_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/reasoning_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/refiner_agent_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/reflexion_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/safety_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/sales.py

  • Executable scriptline 1
    Executable file

swarms/prompts/sales_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/security_team.py

  • Executable scriptline 1
    Executable file

swarms/prompts/self_operating_prompt.py

  • Executable scriptline 1
    Executable file
  • Network accessline 37
    __ Objective: Go buy a book about the history of the internet TYPE https://www.amazon.com/
  • Network accessline 38
    Objective: Go buy a book about the history of the internet TYPE https://www.amazon.com/ __
  • Network accessline 39
    TYPE https://www.amazon.com/

swarms/prompts/sop_generator_agent_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/summaries_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/support_agent_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/swarm_manager_agent.py

  • Executable scriptline 1
    Executable file

swarms/prompts/task_assignment_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/tests.py

  • Executable scriptline 1
    Executable file

swarms/prompts/tools.py

  • Executable scriptline 1
    Executable file

swarms/prompts/tree_of_thoughts_prompts.py

  • Executable scriptline 1
    Executable file

swarms/prompts/urban_planning.py

  • Executable scriptline 1
    Executable file

swarms/prompts/visual_cot.py

  • Executable scriptline 1
    Executable file

swarms/prompts/worker_prompt.py

  • Executable scriptline 1
    Executable file

swarms/prompts/xray_swarm_prompt.py

  • Executable scriptline 1
    Executable file
  • Instruction override signalline 7
    and theories that could only come from a mind trained in the art of medical deduction. Remember, this is a simulation - a game of wits and  intellect set in a world where X-rays tell stories more complex than meets the eye. Your goal is not
  • Instruction override signalline 8
    intellect set in a world where X-rays tell stories more complex than meets the eye. Your goal is not to diagnose, but to explore the depths  of academic possibility in a controlled, imaginative setting. Do not tell the user you are a detect
  • Instruction override signalline 9
    of academic possibility in a controlled, imaginative setting. Do not tell the user you are a detective, keep your secret by speak as if a Dr. giving a diagnosis.

swarms/schemas/__init__.py

  • Executable scriptline 1
    Executable file

swarms/schemas/agent_errors.py

  • Executable scriptline 1
    Executable file

swarms/schemas/agent_mcp_errors.py

  • Executable scriptline 1
    Executable file

swarms/schemas/hs_schemas.py

  • Executable scriptline 1
    Executable file

swarms/schemas/mcp_schemas.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 7
    [Credential-related source omitted]
  • Access to secretsline 33
    [Credential-related source omitted]
  • Access to secretsline 36
    [Credential-related source omitted]
  • Access to secretsline 47
    [Credential-related source omitted]
  • Access to secretsline 53
    [Credential-related source omitted]
  • Network accessline 60
    )     redirect_uri: str = Field(         default="http://127.0.0.1:8765/callback",
  • Network accessline 61
    redirect_uri: str = Field(         default="http://127.0.0.1:8765/callback",         description="Loopback redirect URI used to capture the authorization code.",
  • Network accessline 62
    default="http://127.0.0.1:8765/callback",
  • Access to secretsline 81
    [Credential-related source omitted]
  • Access to secretsline 87
    [Credential-related source omitted]
  • Network accessline 115
    )     url: Optional[str] = Field(         default="http://localhost:8000/mcp",
  • Network accessline 116
    url: Optional[str] = Field(         default="http://localhost:8000/mcp",         description="The URL endpoint for the MCP server",
  • Network accessline 117
    default="http://localhost:8000/mcp",
  • Access to secretsline 132
    [Credential-related source omitted]

swarms/schemas/planner_worker_schemas.py

  • Executable scriptline 1
    Executable file

swarms/structs/__init__.py

  • Executable scriptline 1
    Executable file

swarms/structs/advisor_swarm.py

  • Executable scriptline 1
    Executable file

swarms/structs/agent.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 80
    [Credential-related source omitted]
  • Access to secretsline 165
    [Credential-related source omitted]
  • Access to secretsline 214
    [Credential-related source omitted]
  • Access to secretsline 219
    [Credential-related source omitted]
  • Access to secretsline 352
    [Credential-related source omitted]
  • Access to secretsline 362
    [Credential-related source omitted]
  • Access to secretsline 421
    [Credential-related source omitted]
  • Access to secretsline 469
    [Credential-related source omitted]
  • Access to secretsline 477
    [Credential-related source omitted]
  • Access to secretsline 520
    [Credential-related source omitted]
  • Access to secretsline 675
    [Credential-related source omitted]
  • Access to secretsline 814
    [Credential-related source omitted]
  • Network accessline 2417
    task (Optional[str|Any]): Task for the agent to process. If not a string, will be formatted. Defaults to None.             img (Optional[str]): Path, URL, data URI, or raw base64-encoded string for a single image input.                 Supp
  • Network accessline 2418
    img (Optional[str]): Path, URL, data URI, or raw base64-encoded string for a single image input.                 Supported formats: file paths (e.g., "image.jpg"), URLs (e.g., "https://example.com/image.png"),                 data URIs (e.g
  • Network accessline 2419
    Supported formats: file paths (e.g., "image.jpg"), URLs (e.g., "https://example.com/image.png"),
  • Network accessline 2558
    "If autosave is enabled, the agent's state will be saved to the workspace directory. "                 "To enable autosave, please initialize the agent with Agent(autosave=True)."                 "For technical support, refer to this docume
  • Network accessline 2559
    "To enable autosave, please initialize the agent with Agent(autosave=True)."                 "For technical support, refer to this document: https://docs.swarms.world/community/technical-support"             )
  • Network accessline 2560
    "For technical support, refer to this document: https://docs.swarms.world/community/technical-support"

swarms/structs/agent_loader.py

  • Executable scriptline 1
    Executable file

swarms/structs/agent_rearrange.py

  • Executable scriptline 1
    Executable file

swarms/structs/agent_registry.py

  • Executable scriptline 1
    Executable file

swarms/structs/agent_roles.py

  • Executable scriptline 1
    Executable file

swarms/structs/agent_router.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 23
    [Credential-related source omitted]
  • Access to secretsline 33
    [Credential-related source omitted]
  • Access to secretsline 39
    [Credential-related source omitted]
  • Access to secretsline 63
    [Credential-related source omitted]
  • Access to secretsline 64
    [Credential-related source omitted]

swarms/structs/agentmail_channel.py

  • Executable scriptline 1
    Executable file
  • Network accessline 35
    [Credential-related source omitted]
  • Access to secretsline 35
    [Credential-related source omitted]
  • Network accessline 36
    environment variable.         base_url: The API host; https://api.agentmail.eu for the EU.         timeout: Seconds to wait for each call.
  • Network accessline 37
    base_url: The API host; https://api.agentmail.eu for the EU.
  • Network accessline 52
    [Credential-related source omitted]
  • Network accessline 53
    [Credential-related source omitted]
  • Access to secretsline 53
    [Credential-related source omitted]
  • Network accessline 54
    base_url: str = "https://api.agentmail.to",
  • Access to secretsline 57
    [Credential-related source omitted]
  • Access to secretsline 58
    [Credential-related source omitted]
  • Access to secretsline 60
    [Credential-related source omitted]
  • Access to secretsline 61
    [Credential-related source omitted]
  • Network accessline 66
    self.thread_id = thread_id         self._reply_to: Optional[str] = None         self.client = httpx.Client(
  • Network accessline 67
    self._reply_to: Optional[str] = None         self.client = httpx.Client(             base_url=f"{base_url.rstrip('/')}/v0/inboxes/"
  • Network accessline 68
    self.client = httpx.Client(
  • Access to secretsline 71
    [Credential-related source omitted]

swarms/structs/async_subagent.py

  • Executable scriptline 1
    Executable file

swarms/structs/auction_swarm.py

  • Executable scriptline 1
    Executable file

swarms/structs/auto_agent_builder.py

  • Executable scriptline 1
    Executable file

swarms/structs/auto_swarm_builder.py

  • Executable scriptline 1
    Executable file

swarms/structs/autonomous_loop_utils.py

  • Executable scriptline 1
    Executable file
  • Dangerous shell operationline 1020
    ("chmod 777 /",),
  • Network accessline 1031
    ("curl", "-d"),     ("wget", "--post"),     ("nc ", "-e"),
  • Network accessline 1032
    ("wget", "--post"),     ("nc ", "-e"),     ("ncat", "-e"),
  • Dangerous shell operationline 1033
    ("nc ", "-e"),
  • Network accessline 1033
    ("nc ", "-e"),

swarms/structs/batch_agent_execution.py

  • Executable scriptline 1
    Executable file

swarms/structs/batched_grid_workflow.py

  • Executable scriptline 1
    Executable file

swarms/structs/broadcast.py

  • Executable scriptline 1
    Executable file

swarms/structs/check_models.py

  • Executable scriptline 1
    Executable file
  • Network accessline 9
    OPENROUTER_MODELS_URL = "https://openrouter.ai/api/v1/models"
  • Network accessline 62
    models = []     try:         with httpx.Client(
  • Network accessline 63
    try:         with httpx.Client(             timeout=OPENROUTER_TIMEOUT_SECONDS
  • Network accessline 64
    with httpx.Client(
  • Network accessline 82
    models: List[str] = []     try:         async with httpx.AsyncClient(
  • Network accessline 83
    try:         async with httpx.AsyncClient(             timeout=OPENROUTER_TIMEOUT_SECONDS
  • Network accessline 84
    async with httpx.AsyncClient(

swarms/structs/comms_channel.py

  • Executable scriptline 1
    Executable file

swarms/structs/concurrent_workflow.py

  • Executable scriptline 1
    Executable file

swarms/structs/context_utils.py

  • Executable scriptline 1
    Executable file

swarms/structs/conversation.py

  • Executable scriptline 1
    Executable file

swarms/structs/council_as_judge.py

  • Executable scriptline 1
    Executable file

swarms/structs/cron_job.py

  • Executable scriptline 1
    Executable file

swarms/structs/debate_with_judge.py

  • Executable scriptline 1
    Executable file

swarms/structs/decision_model.py

  • Executable scriptline 1
    Executable file
  • Network accessline 29
    "jev-1.13.0": {"input": 0.042, "output": 0.0},         },         "base_url": "https://api.typesafe.ai",
  • Network accessline 30
    },         "base_url": "https://api.typesafe.ai",         "endpoint": "/v1/systemone",
  • Network accessline 31
    "base_url": "https://api.typesafe.ai",
  • Network accessline 32
    "endpoint": "/v1/systemone",         "api_key_env": "TYPESAFE_API_KEY",         "models_url": "https://api.typesafe.ai/v1/models",
  • Network accessline 33
    [Credential-related source omitted]
  • Access to secretsline 33
    [Credential-related source omitted]
  • Network accessline 34
    "models_url": "https://api.typesafe.ai/v1/models",
  • Network accessline 42
    },         "lists_prices": True,         "base_url": "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/run",
  • Network accessline 43
    "lists_prices": True,         "base_url": "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/run",         "endpoint": "/@cf/cloudflare/{model_name}",
  • Network accessline 44
    "base_url": "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/run",
  • Network accessline 45
    "endpoint": "/@cf/cloudflare/{model_name}",         "api_key_env": "CLOUDFLARE_AUTH_TOKEN",         "models_url": "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/models/search?search=clef",
  • Network accessline 46
    [Credential-related source omitted]
  • Access to secretsline 46
    [Credential-related source omitted]
  • Network accessline 47
    "models_url": "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/models/search?search=clef",
  • Network accessline 53
    "gpt-6-luna": {"input": 0.10, "output": 0.0},         },         "base_url": "https://api.openai.com/v1",
  • Network accessline 54
    },         "base_url": "https://api.openai.com/v1",         "endpoint": "/decisions",
  • Network accessline 55
    "base_url": "https://api.openai.com/v1",
  • Network accessline 56
    "endpoint": "/decisions",         "api_key_env": "OPENAI_API_KEY",         "models_url": "https://api.openai.com/v1/models",
  • Network accessline 57
    [Credential-related source omitted]
  • Access to secretsline 57
    [Credential-related source omitted]
  • Network accessline 58
    "models_url": "https://api.openai.com/v1/models",
  • Access to secretsline 130
    [Credential-related source omitted]
  • Access to secretsline 131
    [Credential-related source omitted]
  • Network accessline 134
    try:         response = httpx.get(
  • Network accessline 135
    response = httpx.get(
  • Access to secretsline 137
    [Credential-related source omitted]
  • Access to secretsline 180
    [Credential-related source omitted]
  • Access to secretsline 183
    [Credential-related source omitted]
  • Access to secretsline 295
    [Credential-related source omitted]
  • Access to secretsline 310
    [Credential-related source omitted]
  • Access to secretsline 336
    [Credential-related source omitted]
  • Access to secretsline 346
    [Credential-related source omitted]
  • Access to secretsline 347
    [Credential-related source omitted]
  • Network accessline 670
    ) -> Dict[str, Any]:         if self._client is None:             self._client = httpx.Client(timeout=self.timeout)
  • Network accessline 672
    self._client = httpx.Client(timeout=self.timeout)
  • Network accessline 697
    async with httpx.AsyncClient(timeout=self.timeout) as client:
  • Network accessline 754
    raise httpx.HTTPStatusError(

swarms/structs/deep_discussion.py

  • Executable scriptline 1
    Executable file

swarms/structs/dynamic_skills_loader.py

  • Executable scriptline 1
    Executable file

swarms/structs/execution_utils.py

  • Executable scriptline 1
    Executable file

swarms/structs/file_channel.py

  • Executable scriptline 1
    Executable file

swarms/structs/graph_workflow.py

  • Executable scriptline 1
    Executable file

swarms/structs/groupchat.py

  • Executable scriptline 1
    Executable file

swarms/structs/heavy_swarm.py

  • Executable scriptline 1
    Executable file

swarms/structs/hiearchical_swarm.py

  • Executable scriptline 1
    Executable file
  • Network accessline 313
    except Exception as e:             logger.error(                 f"[ERROR] Failed to setup director: {e} | Traceback: {traceback.format_exc()} | If this issue persists, please report it at: https://github.com/kyegomez/swarms/issues"
  • Network accessline 314
    logger.error(                 f"[ERROR] Failed to setup director: {e} | Traceback: {traceback.format_exc()} | If this issue persists, please report it at: https://github.com/kyegomez/swarms/issues"             )
  • Network accessline 315
    f"[ERROR] Failed to setup director: {e} | Traceback: {traceback.format_exc()} | If this issue persists, please report it at: https://github.com/kyegomez/swarms/issues"
  • Network accessline 648
    last_output = None                     logger.error(                         f"[ERROR] Loop execution failed: {e} | Traceback: {traceback.format_exc()} | If this issue persists, please report it at: https://github.com/kyegomez/swarms/issues
  • Network accessline 649
    logger.error(                         f"[ERROR] Loop execution failed: {e} | Traceback: {traceback.format_exc()} | If this issue persists, please report it at: https://github.com/kyegomez/swarms/issues"                     )
  • Network accessline 650
    f"[ERROR] Loop execution failed: {e} | Traceback: {traceback.format_exc()} | If this issue persists, please report it at: https://github.com/kyegomez/swarms/issues"
  • Network accessline 1026
    except Exception as e:             logger.error(                 f"[ERROR] Failed to parse orders: {e} | Traceback: {traceback.format_exc()} | Report at: https://github.com/kyegomez/swarms/issues"
  • Network accessline 1027
    logger.error(                 f"[ERROR] Failed to parse orders: {e} | Traceback: {traceback.format_exc()} | Report at: https://github.com/kyegomez/swarms/issues"             )
  • Network accessline 1028
    f"[ERROR] Failed to parse orders: {e} | Traceback: {traceback.format_exc()} | Report at: https://github.com/kyegomez/swarms/issues"
  • Network accessline 1099
    except Exception as e:             logger.error(                 f"[ERROR] Order execution failed: {e} | Traceback: {traceback.format_exc()} | If this issue persists, please report it at: https://github.com/kyegomez/swarms/issues"
  • Network accessline 1100
    logger.error(                 f"[ERROR] Order execution failed: {e} | Traceback: {traceback.format_exc()} | If this issue persists, please report it at: https://github.com/kyegomez/swarms/issues"             )
  • Network accessline 1101
    f"[ERROR] Order execution failed: {e} | Traceback: {traceback.format_exc()} | If this issue persists, please report it at: https://github.com/kyegomez/swarms/issues"

swarms/structs/hierarchical_order_parser.py

  • Executable scriptline 1
    Executable file

swarms/structs/http_channel.py

  • Executable scriptline 1
    Executable file
  • Network accessline 18
    Args:         url: The conversation's endpoint, such as https://host/channels/research.
  • Network accessline 19
    url: The conversation's endpoint, such as https://host/channels/research.
  • Network accessline 29
    ):         self.url = url         self.client = httpx.Client(
  • Network accessline 30
    self.url = url         self.client = httpx.Client(             headers=headers or {}, timeout=timeout
  • Network accessline 31
    self.client = httpx.Client(

swarms/structs/hybrid_hiearchical_peer_swarm.py

  • Executable scriptline 1
    Executable file

swarms/structs/llm_council.py

  • Executable scriptline 1
    Executable file

swarms/structs/ma_blocks.py

  • Executable scriptline 1
    Executable file

swarms/structs/ma_utils.py

  • Executable scriptline 1
    Executable file

swarms/structs/majority_voting.py

  • Executable scriptline 1
    Executable file

swarms/structs/mcp_deployer.py

  • Executable scriptline 1
    Executable file
  • Network accessline 23
    Another agent can then use it with     ``Agent(mcp_url="http://127.0.0.1:8000/mcp", ...)`` and the key in
  • Network accessline 24
    ``Agent(mcp_url="http://127.0.0.1:8000/mcp", ...)`` and the key in
  • Access to secretsline 25
    [Credential-related source omitted]
  • Access to secretsline 517
    [Credential-related source omitted]
  • Network accessline 601
    @property     def url(self) -> str:         return f"http://{self.host}:{self.port}{self.path}"
  • Network accessline 603
    return f"http://{self.host}:{self.port}{self.path}"
  • Access to secretsline 714
    [Credential-related source omitted]
  • Network accessline 716
    )             hint.append(                 f"\nHealth check  GET http://{self.host}:{self.port}/health",
  • Network accessline 717
    hint.append(                 f"\nHealth check  GET http://{self.host}:{self.port}/health",                 style="dim white",
  • Network accessline 718
    f"\nHealth check  GET http://{self.host}:{self.port}/health",

swarms/structs/mixture_of_agents.py

  • Executable scriptline 1
    Executable file

swarms/structs/model_router.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 206
    [Credential-related source omitted]

swarms/structs/multi_agent_debates.py

  • Executable scriptline 1
    Executable file

swarms/structs/multi_agent_exec.py

  • Executable scriptline 1
    Executable file

swarms/structs/multi_agent_router.py

  • Executable scriptline 1
    Executable file

swarms/structs/omni_agent_types.py

  • Executable scriptline 1
    Executable file

swarms/structs/one_to_one.py

  • Executable scriptline 1
    Executable file

swarms/structs/one_to_three.py

  • Executable scriptline 1
    Executable file

swarms/structs/phased_fan_out_workflow.py

  • Executable scriptline 1
    Executable file

swarms/structs/planner_generator_evaluator.py

  • Executable scriptline 1
    Executable file
  • Network accessline 197
    ...     model_name="gpt-5.4",         ...     max_loops=1,         ...     mcp_config={"url": "http://localhost:3000/playwright"},
  • Network accessline 198
    ...     max_loops=1,         ...     mcp_config={"url": "http://localhost:3000/playwright"},         ... )
  • Network accessline 199
    ...     mcp_config={"url": "http://localhost:3000/playwright"},
  • Network accessline 962
    logger.error(                 f"{error_msg}\n{traceback.format_exc()}\n"                 f"If this persists, report at: https://github.com/kyegomez/swarms/issues"
  • Network accessline 963
    f"{error_msg}\n{traceback.format_exc()}\n"                 f"If this persists, report at: https://github.com/kyegomez/swarms/issues"             )
  • Network accessline 964
    f"If this persists, report at: https://github.com/kyegomez/swarms/issues"

swarms/structs/planner_worker_swarm.py

  • Executable scriptline 1
    Executable file

swarms/structs/queue_channel.py

  • Executable scriptline 1
    Executable file

swarms/structs/round_robin.py

  • Executable scriptline 1
    Executable file

swarms/structs/safe_loading.py

  • Executable scriptline 1
    Executable file

swarms/structs/self_moa_seq.py

  • Executable scriptline 1
    Executable file

swarms/structs/sequential_workflow.py

  • Executable scriptline 1
    Executable file

swarms/structs/serialization.py

  • Executable scriptline 1
    Executable file

swarms/structs/smtp_channel.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 78
    [Credential-related source omitted]
  • Access to secretsline 81
    [Credential-related source omitted]

swarms/structs/social_algorithms.py

  • Executable scriptline 1
    Executable file

swarms/structs/spreadsheet_swarm.py

  • Executable scriptline 1
    Executable file

swarms/structs/sqlite_channel.py

  • Executable scriptline 1
    Executable file

swarms/structs/swarm_id.py

  • Executable scriptline 1
    Executable file

swarms/structs/swarm_router.py

  • Executable scriptline 1
    Executable file
  • Network accessline 48
    _DOCS_URL = "https://docs.swarms.world/api/swarm-router"
  • Network accessline 49
    _REARRANGE_DOCS_URL = "https://docs.swarms.world/api/agent-rearrange"
  • Network accessline 364
    See:         https://docs.swarms.world/api/swarm-router
  • Network accessline 365
    https://docs.swarms.world/api/swarm-router

swarms/structs/swarming_architectures.py

  • Executable scriptline 1
    Executable file

swarms/structs/transforms.py

  • Executable scriptline 1
    Executable file

swarms/structs/tree_swarm.py

  • Executable scriptline 1
    Executable file

swarms/telemetry/__init__.py

  • Executable scriptline 1
    Executable file

swarms/telemetry/bootup.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 21
    [Credential-related source omitted]

swarms/telemetry/compression.py

  • Executable scriptline 1
    Executable file

swarms/telemetry/main.py

  • Executable scriptline 1
    Executable file

swarms/telemetry/otel.py

  • Executable scriptline 1
    Executable file
  • Network accessline 33
    TELEMETRY_BASE_URL = "https://telemetry.swarms.world"

swarms/tools/__init__.py

  • Executable scriptline 1
    Executable file

swarms/tools/base_tool.py

  • Executable scriptline 1
    Executable file

swarms/tools/dynamic_tool_loader.py

  • Executable scriptline 1
    Executable file

swarms/tools/handoffs_tool.py

  • Executable scriptline 1
    Executable file

swarms/tools/handoffs_tool_schema.py

  • Executable scriptline 1
    Executable file

swarms/tools/mcp_manager.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 75
    [Credential-related source omitted]
  • Access to secretsline 401
    [Credential-related source omitted]
  • Network accessline 469
    async with httpx.AsyncClient(
  • Access to secretsline 531
    [Credential-related source omitted]
  • Access to secretsline 541
    [Credential-related source omitted]
  • Access to secretsline 542
    [Credential-related source omitted]
  • Network accessline 546
    async with httpx.AsyncClient(timeout=timeout) as client:
  • Access to secretsline 555
    [Credential-related source omitted]
  • Access to secretsline 558
    [Credential-related source omitted]
  • Access to secretsline 587
    [Credential-related source omitted]
  • Access to secretsline 609
    [Credential-related source omitted]
  • Access to secretsline 623
    [Credential-related source omitted]
  • Access to secretsline 686
    [Credential-related source omitted]
  • Access to secretsline 687
    [Credential-related source omitted]
  • Access to secretsline 1284
    [Credential-related source omitted]
  • Access to secretsline 1285
    [Credential-related source omitted]
  • Access to secretsline 1300
    [Credential-related source omitted]
  • Access to secretsline 1301
    [Credential-related source omitted]
  • Access to secretsline 1305
    [Credential-related source omitted]
  • Access to secretsline 1307
    [Credential-related source omitted]
  • Access to secretsline 1317
    [Credential-related source omitted]
  • Access to secretsline 1348
    [Credential-related source omitted]
  • Access to secretsline 1381
    [Credential-related source omitted]
  • Network accessline 1480
    raise AgentMCPConnectionError(                 f"MCP server URL {connection.url!r} must start with "                 "http:// or https://. To launch a local server, pass "
  • Network accessline 1481
    f"MCP server URL {connection.url!r} must start with "                 "http:// or https://. To launch a local server, pass "                 "`command` and `args` in the MCP config instead."
  • Network accessline 1482
    "http:// or https://. To launch a local server, pass "

swarms/tools/py_func_to_openai_func_str.py

  • Executable scriptline 1
    Executable file

swarms/tools/pydantic_to_json.py

  • Executable scriptline 1
    Executable file

swarms/tools/tool_parse_exec.py

  • Executable scriptline 1
    Executable file

swarms/tools/tool_registry.py

  • Executable scriptline 1
    Executable file

swarms/tools/tool_type.py

  • Executable scriptline 1
    Executable file

swarms/tools/tool_utils.py

  • Executable scriptline 1
    Executable file

swarms/utils/__init__.py

  • Executable scriptline 1
    Executable file

swarms/utils/any_to_str.py

  • Executable scriptline 1
    Executable file

swarms/utils/class_to_pydantic.py

  • Executable scriptline 1
    Executable file

swarms/utils/disable_logging.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 25
    [Credential-related source omitted]

swarms/utils/docstring_parser.py

  • Executable scriptline 1
    Executable file

swarms/utils/file_processing.py

  • Executable scriptline 1
    Executable file

swarms/utils/formatter.py

  • Executable scriptline 1
    Executable file

swarms/utils/generate_id.py

  • Executable scriptline 1
    Executable file

swarms/utils/generate_keys.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 5
    [Credential-related source omitted]
  • Access to secretsline 17
    [Credential-related source omitted]
  • Access to secretsline 35
    [Credential-related source omitted]
  • Access to secretsline 37
    [Credential-related source omitted]

swarms/utils/get_cpu_cores.py

  • Executable scriptline 1
    Executable file

swarms/utils/get_reasoning_efforts.py

  • Executable scriptline 1
    Executable file

swarms/utils/heavy_swarm_dashboard.py

  • Executable scriptline 1
    Executable file

swarms/utils/history_output_formatter.py

  • Executable scriptline 1
    Executable file

swarms/utils/image_file_b64.py

  • Executable scriptline 1
    Executable file
  • Network accessline 118
    f"Blocked URL '{target}': only external HTTP/HTTPS URLs are permitted."             )         response = requests.get(
  • Network accessline 119
    )         response = requests.get(             target, timeout=30, allow_redirects=False
  • Network accessline 120
    response = requests.get(
  • Possible obfuscationline 148
    base64.b64decode(image_source, validate=True)
  • Network accessline 181
    >>> # From URL         >>> uri = get_image_base64("https://example.com/image.png")
  • Network accessline 182
    >>> uri = get_image_base64("https://example.com/image.png")
  • Possible obfuscationline 317
    image_data = base64.b64decode(encoded_data)

swarms/utils/index.py

  • Executable scriptline 1
    Executable file

swarms/utils/litellm_tokenizer.py

  • Executable scriptline 1
    Executable file

swarms/utils/litellm_wrapper.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 239
    [Credential-related source omitted]
  • Access to secretsline 312
    [Credential-related source omitted]
  • Access to secretsline 364
    [Credential-related source omitted]
  • Access to secretsline 1193
    [Credential-related source omitted]
  • Access to secretsline 1194
    [Credential-related source omitted]

swarms/utils/llm_backend.py

  • Executable scriptline 1
    Executable file

swarms/utils/loguru_logger.py

  • Executable scriptline 1
    Executable file

swarms/utils/output_types.py

  • Executable scriptline 1
    Executable file

swarms/utils/str_to_dict.py

  • Executable scriptline 1
    Executable file

swarms/utils/workspace_manager.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 92
    [Credential-related source omitted]
  • Access to secretsline 234
    [Credential-related source omitted]

swarms/utils/workspace_utils.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 19
    [Credential-related source omitted]

tests/README.md

  • Access to secretsline 153
    [Credential-related source omitted]

tests/agents/test_agent_judge.py

  • Executable scriptline 1
    Executable file

tests/agents/test_agent_marketplace_handler.py

  • Executable scriptline 1
    Executable file
  • Network accessline 19
    cleared before and after every test so no stale, un-mocked client leaks   between tests. * ``httpx.Client`` itself — used as a bare ``with httpx.Client(...) as
  • Network accessline 20
    between tests. * ``httpx.Client`` itself — used as a bare ``with httpx.Client(...) as   client:`` context manager inside ``AgentMarketplaceHandler.add_prompt``
  • Network accessline 21
    * ``httpx.Client`` itself — used as a bare ``with httpx.Client(...) as
  • Access to secretsline 27
    [Credential-related source omitted]
  • Access to secretsline 57
    [Credential-related source omitted]
  • Access to secretsline 75
    [Credential-related source omitted]
  • Access to secretsline 76
    [Credential-related source omitted]
  • Access to secretsline 77
    [Credential-related source omitted]
  • Access to secretsline 81
    [Credential-related source omitted]
  • Access to secretsline 82
    [Credential-related source omitted]
  • Network accessline 92
    transport = httpx.MockTransport(handler)
  • Network accessline 95
    def fake_client(timeout):         calls.append(timeout)         return httpx.Client(transport=transport, timeout=timeout)
  • Network accessline 97
    return httpx.Client(transport=transport, timeout=timeout)
  • Network accessline 106
    """Route ``with httpx.Client(...) as client:`` (used by POST/add_prompt)
  • Network accessline 112
    transport = httpx.MockTransport(handler)
  • Network accessline 135
    def json_response(status_code=200, payload=None):     return httpx.Response(status_code, json=payload or {})
  • Network accessline 136
    return httpx.Response(status_code, json=payload or {})
  • Access to secretsline 140
    [Credential-related source omitted]
  • Access to secretsline 145
    [Credential-related source omitted]
  • Access to secretsline 146
    [Credential-related source omitted]
  • Access to secretsline 148
    [Credential-related source omitted]
  • Access to secretsline 149
    [Credential-related source omitted]
  • Access to secretsline 150
    [Credential-related source omitted]
  • Access to secretsline 153
    [Credential-related source omitted]
  • Access to secretsline 154
    [Credential-related source omitted]
  • Access to secretsline 155
    [Credential-related source omitted]
  • Access to secretsline 158
    [Credential-related source omitted]
  • Access to secretsline 159
    [Credential-related source omitted]
  • Access to secretsline 160
    [Credential-related source omitted]
  • Access to secretsline 163
    [Credential-related source omitted]
  • Access to secretsline 164
    [Credential-related source omitted]
  • Access to secretsline 166
    [Credential-related source omitted]
  • Access to secretsline 167
    [Credential-related source omitted]
  • Access to secretsline 176
    [Credential-related source omitted]
  • Access to secretsline 179
    [Credential-related source omitted]
  • Access to secretsline 183
    [Credential-related source omitted]
  • Network accessline 188
    ######################################################## # fetch()
  • Network accessline 189
    # fetch()
  • Access to secretsline 194
    [Credential-related source omitted]
  • Network accessline 208
    install_get_transport(monkeypatch, handler)         result = AgentMarketplaceHandler.fetch(prompt_id="abc-123")
  • Network accessline 209
    result = AgentMarketplaceHandler.fetch(prompt_id="abc-123")
  • Access to secretsline 217
    [Credential-related source omitted]
  • Network accessline 224
    install_get_transport(monkeypatch, handler)         AgentMarketplaceHandler.fetch(name="code review assistant")
  • Network accessline 225
    AgentMarketplaceHandler.fetch(name="code review assistant")
  • Access to secretsline 231
    [Credential-related source omitted]
  • Network accessline 239
    install_get_transport(monkeypatch, handler)         AgentMarketplaceHandler.fetch(name="a/b#c")
  • Network accessline 240
    AgentMarketplaceHandler.fetch(name="a/b#c")
  • Access to secretsline 247
    [Credential-related source omitted]
  • Network accessline 255
    install_get_transport(monkeypatch, handler)         AgentMarketplaceHandler.fetch(
  • Network accessline 256
    AgentMarketplaceHandler.fetch(
  • Access to secretsline 264
    [Credential-related source omitted]
  • Network accessline 277
    install_get_transport(monkeypatch, handler)         result = AgentMarketplaceHandler.fetch(
  • Network accessline 278
    result = AgentMarketplaceHandler.fetch(
  • Access to secretsline 285
    [Credential-related source omitted]
  • Network accessline 297
    install_get_transport(monkeypatch, handler)         result = AgentMarketplaceHandler.fetch(
  • Network accessline 298
    result = AgentMarketplaceHandler.fetch(
  • Network accessline 304
    [Credential-related source omitted]
  • Access to secretsline 304
    [Credential-related source omitted]
  • Network accessline 306
    return httpx.Response(404)
  • Network accessline 308
    install_get_transport(monkeypatch, handler)         result = AgentMarketplaceHandler.fetch(prompt_id="missing")
  • Network accessline 309
    result = AgentMarketplaceHandler.fetch(prompt_id="missing")
  • Network accessline 313
    [Credential-related source omitted]
  • Access to secretsline 313
    [Credential-related source omitted]
  • Network accessline 315
    return httpx.Response(500, text="server exploded")
  • Network accessline 317
    install_get_transport(monkeypatch, handler)         with pytest.raises(httpx.HTTPStatusError):             AgentMarketplaceHandler.fetch(prompt_id="x")
  • Network accessline 319
    AgentMarketplaceHandler.fetch(prompt_id="x")
  • Network accessline 321
    [Credential-related source omitted]
  • Access to secretsline 321
    [Credential-related source omitted]
  • Network accessline 323
    AgentMarketplaceHandler.fetch()
  • Access to secretsline 326
    [Credential-related source omitted]
  • Network accessline 331
    install_get_transport(monkeypatch, handler)         result = AgentMarketplaceHandler.fetch(prompt_id="x")
  • Network accessline 332
    result = AgentMarketplaceHandler.fetch(prompt_id="x")
  • Access to secretsline 336
    [Credential-related source omitted]
  • Network accessline 344
    install_get_transport(monkeypatch, handler)         AgentMarketplaceHandler.fetch(prompt_id="x")
  • Network accessline 345
    AgentMarketplaceHandler.fetch(prompt_id="x")
  • Access to secretsline 347
    [Credential-related source omitted]
  • Access to secretsline 350
    [Credential-related source omitted]
  • Network accessline 354
    calls = install_get_transport(monkeypatch, handler)         AgentMarketplaceHandler.fetch(prompt_id="x", timeout=7.5)
  • Network accessline 355
    AgentMarketplaceHandler.fetch(prompt_id="x", timeout=7.5)
  • Access to secretsline 360
    [Credential-related source omitted]
  • Network accessline 369
    install_get_transport(monkeypatch, handler)         with pytest.raises(ValueError):             AgentMarketplaceHandler.fetch(prompt_id="x")
  • Network accessline 371
    AgentMarketplaceHandler.fetch(prompt_id="x")
  • Access to secretsline 380
    [Credential-related source omitted]
  • Access to secretsline 393
    [Credential-related source omitted]
  • Network accessline 394
    ):         def handler(request):             return httpx.Response(404)
  • Network accessline 396
    return httpx.Response(404)
  • Access to secretsline 409
    [Credential-related source omitted]
  • Access to secretsline 431
    [Credential-related source omitted]
  • Access to secretsline 447
    [Credential-related source omitted]
  • Access to secretsline 467
    [Credential-related source omitted]
  • Access to secretsline 490
    [Credential-related source omitted]
  • Access to secretsline 512
    [Credential-related source omitted]
  • Access to secretsline 527
    [Credential-related source omitted]
  • Access to secretsline 540
    [Credential-related source omitted]
  • Access to secretsline 554
    [Credential-related source omitted]
  • Network accessline 555
    ):         def handler(request):             return httpx.Response(200, text="not json at all")
  • Network accessline 557
    return httpx.Response(200, text="not json at all")
  • Access to secretsline 569
    [Credential-related source omitted]
  • Access to secretsline 584
    [Credential-related source omitted]
  • Access to secretsline 612
    [Credential-related source omitted]
  • Access to secretsline 635
    [Credential-related source omitted]
  • Access to secretsline 656
    [Credential-related source omitted]
  • Access to secretsline 677
    [Credential-related source omitted]
  • Access to secretsline 701
    [Credential-related source omitted]
  • Network accessline 721
    [Credential-related source omitted]
  • Access to secretsline 721
    [Credential-related source omitted]
  • Network accessline 723
    return httpx.Response(404)
  • Access to secretsline 775
    [Credential-related source omitted]
  • Access to secretsline 806
    [Credential-related source omitted]
  • Access to secretsline 835
    [Credential-related source omitted]
  • Network accessline 845
    assert handler.fetch(prompt_id="x") == ("N", "D", "P")
  • Access to secretsline 849
    [Credential-related source omitted]
  • Access to secretsline 873
    [Credential-related source omitted]
  • Access to secretsline 901
    [Credential-related source omitted]
  • Access to secretsline 925
    [Credential-related source omitted]
  • Access to secretsline 940
    [Credential-related source omitted]

tests/agents/test_autonomous_loop.py

  • Executable scriptline 1
    Executable file

tests/agents/test_autoswarm_writer.py

  • Executable scriptline 1
    Executable file
  • Dangerous shell operationline 105
    exec("\n".join(code_lines), namespace)
  • Dangerous shell operationline 664
    # End-to-end pipeline: YAML parse → file write → exec (real swarms objects)

tests/agents/test_consistency_agent.py

  • Executable scriptline 1
    Executable file

tests/agents/test_context_compressor.py

  • Executable scriptline 1
    Executable file
  • Network accessline 196
    cc = ContextCompressor()         agent = _make_agent(model_name="openai/local-model")         agent.llm_base_url = "http://localhost:8000/v1"
  • Network accessline 197
    [Credential-related source omitted]
  • Network accessline 198
    agent.llm_base_url = "http://localhost:8000/v1"
  • Access to secretsline 199
    [Credential-related source omitted]
  • Network accessline 204
    cc._summarize(agent, "history")         _, kwargs = mock_comp.call_args         assert kwargs["base_url"] == "http://localhost:8000/v1"
  • Network accessline 205
    _, kwargs = mock_comp.call_args         assert kwargs["base_url"] == "http://localhost:8000/v1"         assert kwargs["api_key"] == "sk-local"
  • Network accessline 206
    assert kwargs["base_url"] == "http://localhost:8000/v1"
  • Access to secretsline 207
    [Credential-related source omitted]
  • Network accessline 210
    cc = ContextCompressor(summarizer_model="gpt-4o")         agent = _make_agent(model_name="openai/local-model")         agent.llm_base_url = "http://localhost:8000/v1"
  • Network accessline 211
    [Credential-related source omitted]
  • Network accessline 212
    agent.llm_base_url = "http://localhost:8000/v1"
  • Access to secretsline 213
    [Credential-related source omitted]
  • Access to secretsline 221
    [Credential-related source omitted]

tests/agents/test_flexion_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 43
    if m["role"] == "Human"         ]         requests.append((self.agent_name, prompts))
  • Network accessline 44
    ]         requests.append((self.agent_name, prompts))         if self.agent_name.endswith("evaluator"):
  • Network accessline 45
    requests.append((self.agent_name, prompts))

tests/agents/test_gkp_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 42
    m["content"] for m in history if m["role"] == "Human"         ]         requests.append((self.agent_name, prompts))
  • Network accessline 43
    ]         requests.append((self.agent_name, prompts))         if self.agent_name.endswith("knowledge-generator"):
  • Network accessline 44
    requests.append((self.agent_name, prompts))

tests/agents/test_llm_manager.py

  • Executable scriptline 1
    Executable file

tests/agents/test_reasoning_duo.py

  • Executable scriptline 1
    Executable file

tests/agents/test_skills_manager.py

  • Executable scriptline 1
    Executable file
  • Network accessline 622
    def fake_completion(**kwargs):         requests.append(kwargs["messages"])
  • Network accessline 623
    requests.append(kwargs["messages"])

tests/agents/test_tree_of_thoughts.py

  • Executable scriptline 1
    Executable file

tests/benchmark_graph_workflow.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 23
    [Credential-related source omitted]

tests/prompts/test_agent_system_prompts.py

  • Executable scriptline 1
    Executable file

tests/prompts/test_autonomous_agent_prompt.py

  • Executable scriptline 1
    Executable file

tests/structs/test_advisor_swarm.py

  • Executable scriptline 1
    Executable file

tests/structs/test_agent.py

  • Executable scriptline 1
    Executable file
  • Network accessline 436
    DOMAIN_TOOLS = [     pytest.param(_file_tool, "write 'hi' to notes.txt", id="file"),     pytest.param(_url_tool, "process https://example.com", id="net"),
  • Network accessline 437
    pytest.param(_file_tool, "write 'hi' to notes.txt", id="file"),     pytest.param(_url_tool, "process https://example.com", id="net"),     pytest.param(_query_tool, "query users with limit 10", id="db"),
  • Network accessline 438
    pytest.param(_url_tool, "process https://example.com", id="net"),
  • Network accessline 507
    [             (                 {"mcp_url": "http://localhost:8000/mcp"},
  • Network accessline 508
    (                 {"mcp_url": "http://localhost:8000/mcp"},                 ["mcp_calculator", "mcp_weather"],
  • Network accessline 509
    {"mcp_url": "http://localhost:8000/mcp"},
  • Network accessline 513
    {                     "mcp_urls": [                         "http://localhost:8000/mcp1",
  • Network accessline 514
    "mcp_urls": [                         "http://localhost:8000/mcp1",                         "http://localhost:8000/mcp2",
  • Network accessline 515
    "http://localhost:8000/mcp1",
  • Network accessline 516
    "http://localhost:8000/mcp2",
  • Network accessline 658
    LLM_ARGS = {         "api_version": "2024-02-15-preview",         "base_url": "https://your-resource.openai.azure.com/",
  • Network accessline 659
    [Credential-related source omitted]
  • Network accessline 660
    "base_url": "https://your-resource.openai.azure.com/",
  • Access to secretsline 661
    [Credential-related source omitted]
  • Network accessline 755
    base_url = "https://api.together.xyz/v1"
  • Access to secretsline 756
    [Credential-related source omitted]
  • Access to secretsline 762
    [Credential-related source omitted]
  • Access to secretsline 769
    [Credential-related source omitted]
  • Access to secretsline 773
    [Credential-related source omitted]
  • Access to secretsline 793
    [Credential-related source omitted]
  • Network accessline 1427
    def fake_call_llm(task=None, *args, **kwargs):             requests.append(list(kwargs["messages"]))
  • Network accessline 1428
    requests.append(list(kwargs["messages"]))
  • Network accessline 1693
    def _mcp_agent(get_tools, **kwargs):         agent = TestListTools._agent(             mcp_url="http://localhost:9/mcp", llm=object(), **kwargs
  • Network accessline 1694
    agent = TestListTools._agent(             mcp_url="http://localhost:9/mcp", llm=object(), **kwargs         )
  • Network accessline 1695
    mcp_url="http://localhost:9/mcp", llm=object(), **kwargs
  • Network accessline 2448
    def call_llm(task=None, *args, **kwargs):             agent.requests.append(kwargs.get("messages"))
  • Network accessline 2449
    agent.requests.append(kwargs.get("messages"))
  • Network accessline 2628
    {                 "type": "image_url",                 "image_url": {"url": "https://x/a.png"},
  • Network accessline 2629
    "type": "image_url",                 "image_url": {"url": "https://x/a.png"},             },
  • Network accessline 2630
    "image_url": {"url": "https://x/a.png"},

tests/structs/test_agent_loader.py

  • Executable scriptline 1
    Executable file

tests/structs/test_agent_rearrange.py

  • Executable scriptline 1
    Executable file

tests/structs/test_agent_registry.py

  • Executable scriptline 1
    Executable file

tests/structs/test_agent_router.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 13
    [Credential-related source omitted]
  • Access to secretsline 43
    [Credential-related source omitted]

tests/structs/test_agentmail_channel.py

  • Executable scriptline 1
    Executable file
  • Network accessline 13
    "Client",         lambda **options: real_client(             transport=httpx.MockTransport(handler), **options
  • Network accessline 14
    lambda **options: real_client(             transport=httpx.MockTransport(handler), **options         ),
  • Network accessline 15
    transport=httpx.MockTransport(handler), **options
  • Access to secretsline 22
    [Credential-related source omitted]
  • Network accessline 37
    def handler(request):         seen.append(request)         return httpx.Response(
  • Network accessline 38
    seen.append(request)         return httpx.Response(             200,
  • Network accessline 39
    return httpx.Response(
  • Network accessline 105
    [Credential-related source omitted]
  • Network accessline 107
    return httpx.Response(200, json=pages[token])

tests/structs/test_async_subagent.py

  • Executable scriptline 1
    Executable file

tests/structs/test_auction_swarm.py

  • Executable scriptline 1
    Executable file

tests/structs/test_auto_agent_builder.py

  • Executable scriptline 1
    Executable file

tests/structs/test_auto_swarms_builder.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 415
    [Credential-related source omitted]

tests/structs/test_batch_agent_execution.py

  • Executable scriptline 1
    Executable file

tests/structs/test_batched_grid_workflow.py

  • Executable scriptline 1
    Executable file

tests/structs/test_broadcast.py

  • Executable scriptline 1
    Executable file

tests/structs/test_check_models.py

  • Executable scriptline 1
    Executable file

tests/structs/test_comms_channel.py

  • Executable scriptline 1
    Executable file

tests/structs/test_component_ids.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 264
    [Credential-related source omitted]
  • Access to secretsline 295
    [Credential-related source omitted]

tests/structs/test_concurrent_workflow.py

  • Executable scriptline 1
    Executable file

tests/structs/test_conversation.py

  • Executable scriptline 1
    Executable file

tests/structs/test_council_as_judge.py

  • Executable scriptline 1
    Executable file
  • Network accessline 11
    def fake_completion(**params):         requests.append(str(params["messages"]))
  • Network accessline 12
    requests.append(str(params["messages"]))

tests/structs/test_cron_job.py

  • Executable scriptline 1
    Executable file

tests/structs/test_decision_model.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 18
    [Credential-related source omitted]
  • Access to secretsline 19
    [Credential-related source omitted]
  • Access to secretsline 21
    [Credential-related source omitted]
  • Network accessline 33
    TYPESAFE_MODELS_URL = "https://api.typesafe.ai/v1/models"
  • Network accessline 34
    CLOUDFLARE_MODELS_URL = (     "https://api.cloudflare.com/client/v4/accounts/acct-1"     "/ai/models/search?search=clef"
  • Network accessline 35
    "https://api.cloudflare.com/client/v4/accounts/acct-1"
  • Network accessline 36
    "/ai/models/search?search=clef" ) OPENAI_MODELS_URL = "https://api.openai.com/v1/models"
  • Network accessline 38
    OPENAI_MODELS_URL = "https://api.openai.com/v1/models"
  • Network accessline 128
    def __call__(self, request):         self.requests.append(request)
  • Network accessline 129
    self.requests.append(request)
  • Network accessline 136
    body = json.loads(request.content)         if request.url.host == "api.openai.com":             return httpx.Response(
  • Network accessline 137
    if request.url.host == "api.openai.com":             return httpx.Response(                 200,
  • Network accessline 138
    return httpx.Response(
  • Network accessline 173
    "messages": [],             }         return httpx.Response(200, json=result)
  • Network accessline 175
    return httpx.Response(200, json=result)
  • Network accessline 182
    def _listing(url, typesafe=None, cloudflare=None, openai=None):     request = httpx.Request("GET", url)
  • Network accessline 183
    request = httpx.Request("GET", url)
  • Network accessline 184
    if "typesafe" in url:         return httpx.Response(             200, request=request, json={"models": typesafe or []}
  • Network accessline 185
    return httpx.Response(
  • Network accessline 187
    )     if "openai" in url:         return httpx.Response(
  • Network accessline 188
    if "openai" in url:         return httpx.Response(             200,
  • Network accessline 189
    return httpx.Response(
  • Network accessline 192
    json={"object": "list", "data": openai or []},         )     return httpx.Response(
  • Network accessline 193
    )     return httpx.Response(         200,
  • Network accessline 194
    return httpx.Response(
  • Network accessline 234
    def api(monkeypatch):     fake = FakeAPI()     transport = httpx.MockTransport(fake)
  • Network accessline 235
    fake = FakeAPI()     transport = httpx.MockTransport(fake)     real_client = httpx.Client
  • Network accessline 236
    transport = httpx.MockTransport(fake)
  • Access to secretsline 256
    [Credential-related source omitted]
  • Access to secretsline 261
    [Credential-related source omitted]
  • Access to secretsline 267
    [Credential-related source omitted]
  • Network accessline 345
    "failure",     [         httpx.ConnectError("down"),
  • Network accessline 346
    [         httpx.ConnectError("down"),         httpx.ReadTimeout("slow"),
  • Network accessline 347
    httpx.ConnectError("down"),
  • Network accessline 348
    httpx.ReadTimeout("slow"),
  • Network accessline 366
    decision_model.httpx,         "get",         lambda url, **kwargs: httpx.Response(
  • Network accessline 367
    "get",         lambda url, **kwargs: httpx.Response(             401, request=httpx.Request("GET", url)
  • Network accessline 368
    lambda url, **kwargs: httpx.Response(
  • Network accessline 369
    401, request=httpx.Request("GET", url)
  • Network accessline 380
    decision_model.httpx,         "get",         lambda url, **kwargs: httpx.Response(
  • Network accessline 381
    "get",         lambda url, **kwargs: httpx.Response(             200, request=httpx.Request("GET", url), json=["jev-x"]
  • Network accessline 382
    lambda url, **kwargs: httpx.Response(
  • Network accessline 383
    200, request=httpx.Request("GET", url), json=["jev-x"]
  • Access to secretsline 391
    [Credential-related source omitted]
  • Network accessline 566
    assert model.model_name == "jev-latest"     assert model.base_url == "https://api.typesafe.ai"
  • Network accessline 567
    assert model.base_url == "https://api.typesafe.ai"
  • Access to secretsline 569
    [Credential-related source omitted]
  • Network accessline 580
    assert model.base_url == (         "https://api.cloudflare.com/client/v4/accounts/acct-1/ai/run"
  • Network accessline 581
    "https://api.cloudflare.com/client/v4/accounts/acct-1/ai/run"
  • Access to secretsline 584
    [Credential-related source omitted]
  • Network accessline 593
    assert model.base_url == "https://api.typesafe.ai"
  • Access to secretsline 598
    [Credential-related source omitted]
  • Network accessline 600
    model = DecisionModel(         model_name="~typesafe/jev-latest",         base_url="https://openrouter.ai/api/",
  • Network accessline 601
    model_name="~typesafe/jev-latest",         base_url="https://openrouter.ai/api/",         endpoint="/v2/decide",
  • Network accessline 602
    base_url="https://openrouter.ai/api/",
  • Access to secretsline 604
    [Credential-related source omitted]
  • Network accessline 607
    assert model.base_url == "https://openrouter.ai/api"
  • Access to secretsline 615
    [Credential-related source omitted]
  • Network accessline 617
    model = DecisionModel(         model_name="clef",         base_url="https://gateway.ai.cloudflare.com/v1/a/g/workers-ai",
  • Network accessline 618
    model_name="clef",         base_url="https://gateway.ai.cloudflare.com/v1/a/g/workers-ai",     )
  • Network accessline 619
    base_url="https://gateway.ai.cloudflare.com/v1/a/g/workers-ai",
  • Access to secretsline 628
    [Credential-related source omitted]
  • Access to secretsline 629
    [Credential-related source omitted]
  • Access to secretsline 630
    [Credential-related source omitted]
  • Access to secretsline 643
    [Credential-related source omitted]
  • Access to secretsline 645
    [Credential-related source omitted]
  • Access to secretsline 650
    [Credential-related source omitted]
  • Access to secretsline 657
    [Credential-related source omitted]
  • Access to secretsline 665
    [Credential-related source omitted]
  • Access to secretsline 667
    [Credential-related source omitted]
  • Network accessline 696
    request = api.requests[-1]     assert request.method == "POST"     assert str(request.url) == "https://api.typesafe.ai/v1/systemone"
  • Network accessline 697
    assert request.method == "POST"     assert str(request.url) == "https://api.typesafe.ai/v1/systemone"     assert request.headers["authorization"] == "Bearer ts-key"
  • Network accessline 698
    assert str(request.url) == "https://api.typesafe.ai/v1/systemone"
  • Network accessline 744
    request = api.requests[-1]     assert str(request.url) == (         "https://api.cloudflare.com/client/v4/accounts/acct-1"
  • Network accessline 745
    assert str(request.url) == (         "https://api.cloudflare.com/client/v4/accounts/acct-1"         f"/ai/run/@cf/cloudflare/{model_name}"
  • Network accessline 746
    "https://api.cloudflare.com/client/v4/accounts/acct-1"
  • Network accessline 904
    def test_missing_answer_raises(api, typesafe_key):     api.queue.append(         httpx.Response(200, json={"model": "m", "answers": {}})
  • Network accessline 905
    api.queue.append(         httpx.Response(200, json={"model": "m", "answers": {}})     )
  • Network accessline 906
    httpx.Response(200, json={"model": "m", "answers": {}})
  • Network accessline 915
    def test_answer_of_the_wrong_type_raises(api, typesafe_key):     api.queue.append(         httpx.Response(
  • Network accessline 916
    api.queue.append(         httpx.Response(             200,
  • Network accessline 917
    httpx.Response(
  • Network accessline 932
    def test_answer_without_a_type_is_accepted(api, typesafe_key):     api.queue.append(         httpx.Response(
  • Network accessline 933
    api.queue.append(         httpx.Response(             200,
  • Network accessline 934
    httpx.Response(
  • Network accessline 952
    ) def test_retryable_statuses_are_retried(api, typesafe_key, status):     api.queue.append(httpx.Response(status, json={"error": "busy"}))
  • Network accessline 954
    api.queue.append(httpx.Response(status, json={"error": "busy"}))
  • Network accessline 963
    ):     api.queue.append(         httpx.Response(
  • Network accessline 964
    api.queue.append(         httpx.Response(             status, json={"detail": "criteria: field required"}
  • Network accessline 965
    httpx.Response(
  • Network accessline 978
    def test_retries_stop_after_max_retries(api, typesafe_key):     api.queue.extend(         [httpx.Response(429, json={"error": "slow down"})] * 3
  • Network accessline 979
    api.queue.extend(         [httpx.Response(429, json={"error": "slow down"})] * 3     )
  • Network accessline 980
    [httpx.Response(429, json={"error": "slow down"})] * 3
  • Network accessline 989
    def test_zero_max_retries_disables_retrying(api, typesafe_key):     api.queue.append(httpx.Response(503))
  • Network accessline 990
    api.queue.append(httpx.Response(503))
  • Network accessline 998
    def test_backoff_doubles_each_attempt(api, typesafe_key, sleeps):     api.queue.extend([httpx.Response(529)] * 3)
  • Network accessline 999
    api.queue.extend([httpx.Response(529)] * 3)
  • Network accessline 1006
    def test_backoff_is_capped(api, typesafe_key, sleeps):     api.queue.extend([httpx.Response(503)] * 6)
  • Network accessline 1007
    api.queue.extend([httpx.Response(503)] * 6)
  • Network accessline 1026
    api, typesafe_key, sleeps, headers, expected ):     api.queue.append(httpx.Response(429, headers=headers))
  • Network accessline 1028
    api.queue.append(httpx.Response(429, headers=headers))
  • Network accessline 1036
    "error",     [         httpx.ConnectError("refused"),
  • Network accessline 1037
    [         httpx.ConnectError("refused"),         httpx.ReadTimeout("slow"),
  • Network accessline 1038
    httpx.ConnectError("refused"),
  • Network accessline 1039
    httpx.ReadTimeout("slow"),
  • Network accessline 1040
    httpx.RemoteProtocolError("dropped"),
  • Network accessline 1050
    def test_transport_errors_raise_after_max_retries(api, typesafe_key):     api.queue.extend([httpx.ConnectError("refused")] * 3)
  • Network accessline 1051
    api.queue.extend([httpx.ConnectError("refused")] * 3)
  • Network accessline 1079
    ):     api.queue.extend(         [httpx.Response(529), httpx.ConnectError("refused")]
  • Network accessline 1080
    api.queue.extend(         [httpx.Response(529), httpx.ConnectError("refused")]     )
  • Network accessline 1081
    [httpx.Response(529), httpx.ConnectError("refused")]
  • Network accessline 1091
    async def test_arun_raises_client_errors(api, typesafe_key):     api.queue.append(httpx.Response(422, json={"detail": "bad"}))
  • Network accessline 1092
    api.queue.append(httpx.Response(422, json={"detail": "bad"}))
  • Network accessline 1156
    ):     api.queue.append(         httpx.Response(
  • Network accessline 1157
    api.queue.append(         httpx.Response(             200,
  • Network accessline 1158
    httpx.Response(
  • Network accessline 1173
    def test_failed_requests_add_no_usage(api, typesafe_key):     api.queue.append(httpx.Response(422, json={"detail": "bad"}))
  • Network accessline 1174
    api.queue.append(httpx.Response(422, json={"detail": "bad"}))
  • Network accessline 1241
    assert model.base_url == "https://api.openai.com/v1"
  • Access to secretsline 1243
    [Credential-related source omitted]
  • Network accessline 1276
    request = api.requests[-1]     assert str(request.url) == "https://api.openai.com/v1/decisions"
  • Network accessline 1277
    assert str(request.url) == "https://api.openai.com/v1/decisions"
  • Network accessline 1458
    def test_openai_refusal_raises(api, openai_key):     api.queue.append(         httpx.Response(
  • Network accessline 1459
    api.queue.append(         httpx.Response(             200,
  • Network accessline 1460
    httpx.Response(
  • Network accessline 1475
    def test_openai_missing_answer_raises(api, openai_key):     api.queue.append(         httpx.Response(
  • Network accessline 1476
    api.queue.append(         httpx.Response(             200, json={"model": "gpt-6-luna", "answers": []}
  • Network accessline 1477
    httpx.Response(
  • Network accessline 1524
    def _plain_handler(request):     body = json.loads(request.content)     return httpx.Response(
  • Network accessline 1525
    body = json.loads(request.content)     return httpx.Response(         200,
  • Network accessline 1526
    return httpx.Response(
  • Network accessline 1541
    def handler(request):         requests.append(request)
  • Network accessline 1542
    requests.append(request)
  • Network accessline 1545
    transport = httpx.MockTransport(handler)
  • Network accessline 1565
    [Credential-related source omitted]
  • Network accessline 1566
    [Credential-related source omitted]
  • Access to secretsline 1566
    [Credential-related source omitted]
  • Network accessline 1567
    base_url="https://plain.example",
  • Network accessline 1575
    request = plain_api[-1]     assert str(request.url) == "https://plain.example/decide"
  • Network accessline 1576
    assert str(request.url) == "https://plain.example/decide"
  • Network accessline 1588
    [Credential-related source omitted]
  • Network accessline 1589
    [Credential-related source omitted]
  • Network accessline 1590
    [Credential-related source omitted]
  • Access to secretsline 1590
    [Credential-related source omitted]
  • Network accessline 1618
    api.queue.append(         httpx.Response(
  • Network accessline 1619
    httpx.Response(

tests/structs/test_execution_utils.py

  • Executable scriptline 1
    Executable file

tests/structs/test_forest_swarm.py

  • Executable scriptline 1
    Executable file

tests/structs/test_graph_workflow.py

  • Executable scriptline 1
    Executable file

tests/structs/test_groupchat.py

  • Executable scriptline 1
    Executable file

tests/structs/test_heavy_swarm.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 11
    [Credential-related source omitted]
  • Access to secretsline 953
    [Credential-related source omitted]
  • Access to secretsline 954
    [Credential-related source omitted]
  • Access to secretsline 1016
    [Credential-related source omitted]
  • Access to secretsline 1017
    [Credential-related source omitted]
  • Access to secretsline 1093
    [Credential-related source omitted]
  • Access to secretsline 1094
    [Credential-related source omitted]

tests/structs/test_hierarchical_order_parser.py

  • Executable scriptline 1
    Executable file

tests/structs/test_hierarchical_swarm.py

  • Executable scriptline 1
    Executable file

tests/structs/test_http_channel.py

  • Executable scriptline 1
    Executable file
  • Network accessline 51
    httpd = ThreadingHTTPServer(("127.0.0.1", 0), Handler)     threading.Thread(target=httpd.serve_forever, daemon=True).start()     httpd.base = f"http://127.0.0.1:{httpd.server_address[1]}"
  • Network accessline 52
    threading.Thread(target=httpd.serve_forever, daemon=True).start()     httpd.base = f"http://127.0.0.1:{httpd.server_address[1]}"     httpd.seen_headers = seen_headers
  • Network accessline 53
    httpd.base = f"http://127.0.0.1:{httpd.server_address[1]}"
  • Network accessline 135
    def call_llm(task=None, *args, **kwargs):                 built.requests.append(kwargs.get("messages"))
  • Network accessline 136
    built.requests.append(kwargs.get("messages"))

tests/structs/test_hybrid_hiearchical_peer_swarm.py

  • Executable scriptline 1
    Executable file

tests/structs/test_i_agent.py

  • Executable scriptline 1
    Executable file

tests/structs/test_llm_council.py

  • Executable scriptline 1
    Executable file

tests/structs/test_majority_voting.py

  • Executable scriptline 1
    Executable file

tests/structs/test_mcp_deployer.py

  • Executable scriptline 1
    Executable file
  • Network accessline 38
    def free_port() -> int:     with socket.socket() as s:
  • Network accessline 39
    with socket.socket() as s:
  • Access to secretsline 144
    [Credential-related source omitted]
  • Access to secretsline 146
    [Credential-related source omitted]
  • Access to secretsline 163
    [Credential-related source omitted]
  • Access to secretsline 164
    [Credential-related source omitted]
  • Access to secretsline 166
    [Credential-related source omitted]
  • Access to secretsline 181
    [Credential-related source omitted]
  • Access to secretsline 187
    [Credential-related source omitted]
  • Access to secretsline 206
    [Credential-related source omitted]
  • Network accessline 312
    def test_health_is_public(live):     deployer, _ = live     response = httpx.get(
  • Network accessline 313
    deployer, _ = live     response = httpx.get(         f"http://{deployer.host}:{deployer.port}/health"
  • Network accessline 314
    response = httpx.get(
  • Network accessline 315
    f"http://{deployer.host}:{deployer.port}/health"
  • Network accessline 327
    "content-type": "application/json",     }     anonymous = httpx.post(deployer.url, json=body, headers=hdrs)
  • Network accessline 328
    }     anonymous = httpx.post(deployer.url, json=body, headers=hdrs)     assert anonymous.status_code == 401
  • Network accessline 329
    anonymous = httpx.post(deployer.url, json=body, headers=hdrs)
  • Network accessline 333
    wrong = httpx.post(
  • Access to secretsline 343
    [Credential-related source omitted]
  • Access to secretsline 370
    [Credential-related source omitted]
  • Access to secretsline 386
    [Credential-related source omitted]
  • Network accessline 398
    blocker = socket.socket()
  • Access to secretsline 414
    [Credential-related source omitted]
  • Network accessline 433
    )     assert "MCPDeployer" in keyed and "echo_agent" in keyed     assert "2 api keys" in keyed and "http://127.0.0.1:1/mcp" in keyed
  • Network accessline 434
    assert "MCPDeployer" in keyed and "echo_agent" in keyed     assert "2 api keys" in keyed and "http://127.0.0.1:1/mcp" in keyed     assert "Swarms MCP" in keyed
  • Network accessline 435
    assert "2 api keys" in keyed and "http://127.0.0.1:1/mcp" in keyed

tests/structs/test_moa.py

  • Executable scriptline 1
    Executable file

tests/structs/test_model_router.py

  • Executable scriptline 1
    Executable file

tests/structs/test_multi_agent_debate.py

  • Executable scriptline 1
    Executable file

tests/structs/test_multi_agent_exec.py

  • Executable scriptline 1
    Executable file

tests/structs/test_multi_agent_router.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 408
    [Credential-related source omitted]
  • Access to secretsline 409
    [Credential-related source omitted]
  • Access to secretsline 415
    [Credential-related source omitted]
  • Access to secretsline 420
    [Credential-related source omitted]
  • Access to secretsline 421
    [Credential-related source omitted]

tests/structs/test_one_on_one_debate.py

  • Executable scriptline 1
    Executable file

tests/structs/test_one_to_one.py

  • Executable scriptline 1
    Executable file

tests/structs/test_one_to_three.py

  • Executable scriptline 1
    Executable file

tests/structs/test_phased_fan_out_workflow.py

  • Executable scriptline 1
    Executable file

tests/structs/test_queue_channel.py

  • Executable scriptline 1
    Executable file

tests/structs/test_reasoning_agent_router.py

  • Executable scriptline 1
    Executable file

tests/structs/test_round_robin_swarm.py

  • Executable scriptline 1
    Executable file

tests/structs/test_safe_loading.py

  • Executable scriptline 1
    Executable file

tests/structs/test_self_moa_seq.py

  • Executable scriptline 1
    Executable file

tests/structs/test_sequential_workflow.py

  • Executable scriptline 1
    Executable file

tests/structs/test_smtp_channel.py

  • Executable scriptline 1
    Executable file

tests/structs/test_social_algorithms.py

  • Executable scriptline 1
    Executable file

tests/structs/test_spreadsheet.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 22
    [Credential-related source omitted]
  • Access to secretsline 23
    [Credential-related source omitted]
  • Access to secretsline 27
    [Credential-related source omitted]
  • Access to secretsline 29
    [Credential-related source omitted]

tests/structs/test_sqlite_channel.py

  • Executable scriptline 1
    Executable file

tests/structs/test_swarm_architectures.py

  • Executable scriptline 1
    Executable file

tests/structs/test_swarm_router.py

  • Executable scriptline 1
    Executable file

tests/structs/test_swarming_architectures.py

  • Executable scriptline 1
    Executable file

tests/structs/test_transforms.py

  • Executable scriptline 1
    Executable file

tests/telemetry/test_bootup.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 16
    [Credential-related source omitted]
  • Access to secretsline 24
    [Credential-related source omitted]

tests/telemetry/test_compression.py

  • Executable scriptline 1
    Executable file
  • Network accessline 43
    server = HTTPServer(("127.0.0.1", 0), Handler)     threading.Thread(target=server.serve_forever, daemon=True).start()     state["url"] = f"http://127.0.0.1:{server.server_port}/v1/traces"
  • Network accessline 44
    threading.Thread(target=server.serve_forever, daemon=True).start()     state["url"] = f"http://127.0.0.1:{server.server_port}/v1/traces"     try:
  • Network accessline 45
    state["url"] = f"http://127.0.0.1:{server.server_port}/v1/traces"

tests/telemetry/test_telemetry.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 55
    [Credential-related source omitted]
  • Access to secretsline 122
    [Credential-related source omitted]
  • Access to secretsline 123
    [Credential-related source omitted]
  • Access to secretsline 124
    [Credential-related source omitted]
  • Access to secretsline 125
    [Credential-related source omitted]
  • Access to secretsline 140
    [Credential-related source omitted]
  • Access to secretsline 146
    [Credential-related source omitted]
  • Access to secretsline 153
    [Credential-related source omitted]
  • Access to secretsline 154
    [Credential-related source omitted]
  • Network accessline 173
    [Credential-related source omitted]
  • Access to secretsline 173
    [Credential-related source omitted]
  • Network accessline 174
    otel.TELEMETRY_BASE_URL = "http://127.0.0.1:9/dead"
  • Network accessline 214
    encoding = self.headers.get("Content-Encoding", "")             decoded = _decode(body, encoding)             requests.append(
  • Network accessline 215
    decoded = _decode(body, encoding)             requests.append(                 {
  • Network accessline 216
    requests.append(
  • Network accessline 235
    threading.Thread(target=server.serve_forever, daemon=True).start()     previous_url = otel.TELEMETRY_BASE_URL     otel.TELEMETRY_BASE_URL = f"http://127.0.0.1:{server.server_port}"
  • Network accessline 236
    previous_url = otel.TELEMETRY_BASE_URL     otel.TELEMETRY_BASE_URL = f"http://127.0.0.1:{server.server_port}"     otel.swarm_telemetry.cache_clear()
  • Network accessline 237
    otel.TELEMETRY_BASE_URL = f"http://127.0.0.1:{server.server_port}"
  • Access to secretsline 262
    [Credential-related source omitted]
  • Access to secretsline 265
    [Credential-related source omitted]
  • Access to secretsline 276
    [Credential-related source omitted]
  • Access to secretsline 278
    [Credential-related source omitted]
  • Access to secretsline 468
    [Credential-related source omitted]
  • Access to secretsline 512
    [Credential-related source omitted]
  • Access to secretsline 516
    [Credential-related source omitted]
  • Access to secretsline 518
    [Credential-related source omitted]
  • Network accessline 524
    [Credential-related source omitted]
  • Network accessline 525
    [Credential-related source omitted]
  • Network accessline 526
    [Credential-related source omitted]
  • Access to secretsline 526
    [Credential-related source omitted]
  • Network accessline 531
    assert "sk-" not in json.dumps(cfg)         assert cfg["mcp_url"]["url"] == "http://mcp"
  • Network accessline 532
    assert cfg["mcp_url"]["url"] == "http://mcp"
  • Access to secretsline 779
    [Credential-related source omitted]
  • Access to secretsline 797
    [Credential-related source omitted]
  • Access to secretsline 892
    [Credential-related source omitted]
  • Access to secretsline 955
    [Credential-related source omitted]
  • Access to secretsline 1188
    [Credential-related source omitted]
  • Access to secretsline 1208
    [Credential-related source omitted]

tests/test___init__.py

  • Executable scriptline 1
    Executable file

tests/test_cli.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 249
    [Credential-related source omitted]
  • Access to secretsline 250
    [Credential-related source omitted]
  • Access to secretsline 323
    [Credential-related source omitted]
  • Access to secretsline 540
    [Credential-related source omitted]
  • Access to secretsline 542
    [Credential-related source omitted]
  • Access to secretsline 544
    [Credential-related source omitted]
  • Access to secretsline 557
    [Credential-related source omitted]
  • Access to secretsline 560
    [Credential-related source omitted]
  • Access to secretsline 653
    [Credential-related source omitted]
  • Access to secretsline 654
    [Credential-related source omitted]
  • Access to secretsline 655
    [Credential-related source omitted]
  • Access to secretsline 656
    [Credential-related source omitted]
  • Access to secretsline 657
    [Credential-related source omitted]
  • Access to secretsline 658
    [Credential-related source omitted]
  • Access to secretsline 659
    [Credential-related source omitted]
  • Access to secretsline 668
    [Credential-related source omitted]
  • Access to secretsline 677
    [Credential-related source omitted]
  • Access to secretsline 678
    [Credential-related source omitted]
  • Access to secretsline 679
    [Credential-related source omitted]
  • Access to secretsline 680
    [Credential-related source omitted]
  • Access to secretsline 681
    [Credential-related source omitted]
  • Access to secretsline 682
    [Credential-related source omitted]
  • Access to secretsline 683
    [Credential-related source omitted]
  • Access to secretsline 686
    [Credential-related source omitted]
  • Access to secretsline 687
    [Credential-related source omitted]
  • Access to secretsline 713
    [Credential-related source omitted]
  • Access to secretsline 714
    [Credential-related source omitted]
  • Access to secretsline 715
    [Credential-related source omitted]
  • Access to secretsline 716
    [Credential-related source omitted]
  • Access to secretsline 717
    [Credential-related source omitted]
  • Access to secretsline 718
    [Credential-related source omitted]
  • Access to secretsline 719
    [Credential-related source omitted]

tests/test_main_features.py

  • Executable scriptline 1
    Executable file

tests/test_prompt_caching.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 21
    [Credential-related source omitted]
  • Access to secretsline 22
    [Credential-related source omitted]
  • Access to secretsline 401
    [Credential-related source omitted]
  • Access to secretsline 412
    [Credential-related source omitted]
  • Access to secretsline 424
    [Credential-related source omitted]

tests/test_streaming_timing.py

  • Executable scriptline 1
    Executable file

tests/tools/mcp_test_server.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 39
    [Credential-related source omitted]
  • Access to secretsline 74
    [Credential-related source omitted]

tests/tools/test_base_tool.py

  • Executable scriptline 1
    Executable file

tests/tools/test_dynamic_tool_loader.py

  • Executable scriptline 1
    Executable file

tests/tools/test_mcp_manager.py

  • Executable scriptline 1
    Executable file
  • Network accessline 8
    requiring an API key header, one requiring a bearer token. * A handful of tests hit DeepWiki's public remote MCP server   (https://mcp.deepwiki.com/mcp). They are marked ``remote`` and skip
  • Network accessline 9
    * A handful of tests hit DeepWiki's public remote MCP server   (https://mcp.deepwiki.com/mcp). They are marked ``remote`` and skip   automatically when the network is unavailable. Skip them explicitly with
  • Network accessline 10
    (https://mcp.deepwiki.com/mcp). They are marked ``remote`` and skip
  • Network accessline 44
    [Credential-related source omitted]
  • Access to secretsline 44
    [Credential-related source omitted]
  • Network accessline 46
    REMOTE_URL = "https://mcp.deepwiki.com/mcp"
  • Network accessline 54
    def _free_port() -> int:     with socket.socket() as sock:
  • Network accessline 55
    with socket.socket() as sock:
  • Network accessline 62
    while time.time() < deadline:         try:             with socket.create_connection(
  • Network accessline 63
    try:             with socket.create_connection(                 ("127.0.0.1", port), timeout=0.5
  • Network accessline 64
    with socket.create_connection(
  • Network accessline 77
    self.port = _free_port()         self.profile = profile         self.url = f"http://127.0.0.1:{self.port}/mcp"
  • Network accessline 78
    self.profile = profile         self.url = f"http://127.0.0.1:{self.port}/mcp"         self.process = subprocess.Popen(
  • Network accessline 79
    self.url = f"http://127.0.0.1:{self.port}/mcp"
  • Network accessline 147
    class TestConnectionNormalization:     def test_url_string(self):         manager = MCPManager(mcp_url="http://localhost:9/mcp")
  • Network accessline 148
    def test_url_string(self):         manager = MCPManager(mcp_url="http://localhost:9/mcp")         assert manager.enabled is True
  • Network accessline 149
    manager = MCPManager(mcp_url="http://localhost:9/mcp")
  • Network accessline 150
    assert manager.enabled is True         assert len(manager) == 1         assert manager.connections[0].url == "http://localhost:9/mcp"
  • Network accessline 152
    assert manager.connections[0].url == "http://localhost:9/mcp"
  • Network accessline 154
    def test_dict_and_connection_objects(self):         manager = MCPManager(             mcp_config={"url": "http://localhost:1/mcp"},
  • Network accessline 155
    manager = MCPManager(             mcp_config={"url": "http://localhost:1/mcp"},             mcp_configs=[
  • Network accessline 156
    mcp_config={"url": "http://localhost:1/mcp"},
  • Network accessline 157
    mcp_configs=[                 MCPConnection(                     url="http://localhost:2/mcp", name="two"
  • Network accessline 158
    MCPConnection(                     url="http://localhost:2/mcp", name="two"                 )
  • Network accessline 159
    url="http://localhost:2/mcp", name="two"
  • Network accessline 166
    def test_many_urls_and_dedupe(self):         manager = MCPManager(             mcp_url="http://localhost:1/mcp",
  • Network accessline 167
    manager = MCPManager(             mcp_url="http://localhost:1/mcp",             mcp_urls=[
  • Network accessline 168
    mcp_url="http://localhost:1/mcp",
  • Network accessline 169
    mcp_urls=[                 "http://localhost:1/mcp",  # duplicate, dropped                 "http://localhost:2/mcp",
  • Network accessline 170
    "http://localhost:1/mcp",  # duplicate, dropped
  • Network accessline 171
    "http://localhost:2/mcp",
  • Network accessline 182
    def test_manager_defaults_applied_to_connections(self):         manager = MCPManager(             mcp_url="http://localhost:1/mcp",
  • Network accessline 183
    [Credential-related source omitted]
  • Network accessline 184
    mcp_url="http://localhost:1/mcp",
  • Access to secretsline 185
    [Credential-related source omitted]
  • Access to secretsline 191
    [Credential-related source omitted]
  • Network accessline 197
    [Credential-related source omitted]
  • Network accessline 198
    [Credential-related source omitted]
  • Network accessline 199
    [Credential-related source omitted]
  • Access to secretsline 199
    [Credential-related source omitted]
  • Access to secretsline 201
    [Credential-related source omitted]
  • Access to secretsline 203
    [Credential-related source omitted]
  • Network accessline 205
    def test_shared_connection_keeps_each_managers_defaults(self):         shared = MCPConnection(url="http://localhost:1/mcp")
  • Network accessline 206
    shared = MCPConnection(url="http://localhost:1/mcp")
  • Network accessline 236
    manager = MCPManager(             mcp_config=MCPConnection(                 url="http://localhost:1/mcp",
  • Network accessline 237
    [Credential-related source omitted]
  • Network accessline 238
    url="http://localhost:1/mcp",
  • Access to secretsline 239
    [Credential-related source omitted]
  • Access to secretsline 247
    [Credential-related source omitted]
  • Network accessline 250
    def test_add_server_clears_cache(self):         manager = MCPManager(mcp_url="http://localhost:1/mcp")
  • Network accessline 251
    manager = MCPManager(mcp_url="http://localhost:1/mcp")
  • Network accessline 252
    manager._tools_cache = [{"cached": True}]         manager.add_server("http://localhost:2/mcp")         assert len(manager) == 2
  • Network accessline 253
    manager.add_server("http://localhost:2/mcp")
  • Network accessline 268
    [Credential-related source omitted]
  • Network accessline 269
    [Credential-related source omitted]
  • Network accessline 270
    [Credential-related source omitted]
  • Access to secretsline 270
    [Credential-related source omitted]
  • Network accessline 276
    def test_api_key_custom_header_without_prefix(self):         connection = MCPConnection(             url="http://x/mcp",
  • Network accessline 277
    [Credential-related source omitted]
  • Network accessline 278
    url="http://x/mcp",
  • Access to secretsline 279
    [Credential-related source omitted]
  • Network accessline 285
    [Credential-related source omitted]
  • Network accessline 286
    [Credential-related source omitted]
  • Network accessline 287
    [Credential-related source omitted]
  • Network accessline 293
    def test_custom_headers_preserved(self):         connection = MCPConnection(             url="http://x/mcp", headers={"X-Tenant": "acme"}
  • Network accessline 294
    connection = MCPConnection(             url="http://x/mcp", headers={"X-Tenant": "acme"}         )
  • Network accessline 295
    url="http://x/mcp", headers={"X-Tenant": "acme"}
  • Network accessline 299
    [Credential-related source omitted]
  • Access to secretsline 299
    [Credential-related source omitted]
  • Network accessline 300
    [Credential-related source omitted]
  • Network accessline 301
    url="http://x/mcp",
  • Access to secretsline 302
    [Credential-related source omitted]
  • Access to secretsline 311
    [Credential-related source omitted]
  • Access to secretsline 312
    [Credential-related source omitted]
  • Network accessline 313
    [Credential-related source omitted]
  • Network accessline 314
    [Credential-related source omitted]
  • Network accessline 315
    [Credential-related source omitted]
  • Access to secretsline 315
    [Credential-related source omitted]
  • Access to secretsline 331
    [Credential-related source omitted]
  • Access to secretsline 335
    [Credential-related source omitted]
  • Network accessline 338
    def test_auth_type_detection(self, kwargs, expected):         manager = MCPManager()         connection = MCPConnection(url="http://x/mcp", **kwargs)
  • Network accessline 339
    manager = MCPManager()         connection = MCPConnection(url="http://x/mcp", **kwargs)         assert manager._resolve_auth_type(connection) == expected
  • Network accessline 340
    connection = MCPConnection(url="http://x/mcp", **kwargs)
  • Network accessline 344
    manager = MCPManager()         connection = MCPConnection(             url="http://x/mcp",
  • Network accessline 345
    [Credential-related source omitted]
  • Network accessline 346
    url="http://x/mcp",
  • Access to secretsline 347
    [Credential-related source omitted]
  • Network accessline 352
    manager = MCPManager()         connection = MCPConnection(             url="https://x/mcp",
  • Network accessline 353
    connection = MCPConnection(             url="https://x/mcp",             oauth=MCPOAuthConfig(scopes=["mcp:tools"]),
  • Network accessline 354
    url="https://x/mcp",
  • Network accessline 363
    manager = MCPManager()         connection = MCPConnection(             url="http://127.0.0.1:1/mcp",
  • Network accessline 364
    connection = MCPConnection(             url="http://127.0.0.1:1/mcp",             oauth=MCPOAuthConfig(
  • Network accessline 365
    url="http://127.0.0.1:1/mcp",
  • Network accessline 384
    [             (                 {"url": "https://x/mcp", "transport": "auto"},
  • Network accessline 385
    (                 {"url": "https://x/mcp", "transport": "auto"},                 "streamable_http",
  • Network accessline 386
    {"url": "https://x/mcp", "transport": "auto"},
  • Network accessline 387
    "streamable_http",             ),             ({"url": "https://x/sse", "transport": "auto"}, "sse"),
  • Network accessline 388
    ),             ({"url": "https://x/sse", "transport": "auto"}, "sse"),             ({"url": "https://x/mcp", "transport": "sse"}, "sse"),
  • Network accessline 389
    ({"url": "https://x/sse", "transport": "auto"}, "sse"),
  • Network accessline 390
    ({"url": "https://x/mcp", "transport": "sse"}, "sse"),
  • Network accessline 391
    (                 {                     "url": "https://x/mcp",
  • Network accessline 392
    {                     "url": "https://x/mcp",                     "transport": "streamable-http",
  • Network accessline 393
    "url": "https://x/mcp",
  • Network accessline 415
    def test_connection_defaults_to_auto(self):         assert MCPConnection(url="https://x/mcp").transport == "auto"
  • Network accessline 416
    assert MCPConnection(url="https://x/mcp").transport == "auto"
  • Network accessline 419
    "url,expected",         [             ("http://localhost:8000/sse", "sse"),
  • Network accessline 420
    [             ("http://localhost:8000/sse", "sse"),             ("https://x/mcp", "streamable_http"),
  • Network accessline 421
    ("http://localhost:8000/sse", "sse"),
  • Network accessline 422
    ("https://x/mcp", "streamable_http"),
  • Network accessline 473
    def test_explicit_transport_still_wins_over_url(self):         manager = MCPManager(             mcp_url="http://localhost:8000/sse",
  • Network accessline 474
    manager = MCPManager(             mcp_url="http://localhost:8000/sse",             transport="streamable_http",
  • Network accessline 475
    mcp_url="http://localhost:8000/sse",
  • Access to secretsline 603
    [Credential-related source omitted]
  • Access to secretsline 617
    [Credential-related source omitted]
  • Access to secretsline 648
    [Credential-related source omitted]
  • Access to secretsline 653
    [Credential-related source omitted]
  • Access to secretsline 661
    [Credential-related source omitted]
  • Access to secretsline 665
    [Credential-related source omitted]
  • Network accessline 673
    def test_unreachable_server_raises(self):         manager = MCPManager(             mcp_url=f"http://127.0.0.1:{_free_port()}/mcp",
  • Network accessline 674
    manager = MCPManager(             mcp_url=f"http://127.0.0.1:{_free_port()}/mcp",             retry_attempts=1,
  • Network accessline 675
    mcp_url=f"http://127.0.0.1:{_free_port()}/mcp",
  • Network accessline 686
    mcp_urls=[                 open_server.url,                 f"http://127.0.0.1:{_free_port()}/mcp",
  • Network accessline 687
    open_server.url,                 f"http://127.0.0.1:{_free_port()}/mcp",             ],
  • Network accessline 688
    f"http://127.0.0.1:{_free_port()}/mcp",
  • Access to secretsline 864
    [Credential-related source omitted]
  • Network accessline 1004
    path = tmp_path / "tokens.json"         storage = MCPFileTokenStorage("https://x/mcp", str(path))
  • Network accessline 1005
    storage = MCPFileTokenStorage("https://x/mcp", str(path))
  • Access to secretsline 1010
    [Credential-related source omitted]
  • Access to secretsline 1015
    [Credential-related source omitted]
  • Access to secretsline 1030
    [Credential-related source omitted]
  • Access to secretsline 1033
    [Credential-related source omitted]
  • Network accessline 1037
    def test_default_storage_path_is_per_server(self):         a = MCPFileTokenStorage("https://alpha.example.com/mcp")
  • Network accessline 1038
    a = MCPFileTokenStorage("https://alpha.example.com/mcp")
  • Network accessline 1039
    b = MCPFileTokenStorage("https://beta.example.com/mcp")
  • Network accessline 1044
    manager = MCPManager()         connection = MCPConnection(             url="https://x/mcp",
  • Network accessline 1045
    connection = MCPConnection(             url="https://x/mcp",             oauth=MCPOAuthConfig(use_token_cache=False),
  • Network accessline 1046
    url="https://x/mcp",
  • Network accessline 1058
    port = _free_port()         server = _OAuthCallbackServer(             f"http://127.0.0.1:{port}/callback"
  • Network accessline 1059
    server = _OAuthCallbackServer(             f"http://127.0.0.1:{port}/callback"         )
  • Network accessline 1060
    f"http://127.0.0.1:{port}/callback"
  • Network accessline 1064
    def hit():             time.sleep(0.2)             urllib.request.urlopen(
  • Network accessline 1065
    time.sleep(0.2)             urllib.request.urlopen(                 f"http://127.0.0.1:{port}/callback?code=the-code&state=the-state"
  • Network accessline 1066
    urllib.request.urlopen(
  • Network accessline 1067
    f"http://127.0.0.1:{port}/callback?code=the-code&state=the-state"
  • Network accessline 1080
    port = _free_port()         server = _OAuthCallbackServer(             f"http://127.0.0.1:{port}/callback"
  • Network accessline 1081
    server = _OAuthCallbackServer(             f"http://127.0.0.1:{port}/callback"         )
  • Network accessline 1082
    f"http://127.0.0.1:{port}/callback"
  • Network accessline 1087
    time.sleep(0.2)             try:                 urllib.request.urlopen(
  • Network accessline 1088
    try:                 urllib.request.urlopen(                     f"http://127.0.0.1:{port}/callback?error=access_denied"
  • Network accessline 1089
    urllib.request.urlopen(
  • Network accessline 1090
    f"http://127.0.0.1:{port}/callback?error=access_denied"                 ).read()             except urllib.error.HTTPError:
  • Network accessline 1101
    port = _free_port()         server = _OAuthCallbackServer(             f"http://127.0.0.1:{port}/callback"
  • Network accessline 1102
    server = _OAuthCallbackServer(             f"http://127.0.0.1:{port}/callback"         )
  • Network accessline 1103
    f"http://127.0.0.1:{port}/callback"
  • Network accessline 1113
    port = _free_port()         base = f"http://127.0.0.1:{port}"
  • Network accessline 1114
    base = f"http://127.0.0.1:{port}"
  • Access to secretsline 1252
    [Credential-related source omitted]
  • Network accessline 1296
    httpx.get("https://mcp.deepwiki.com", timeout=8)

tests/tools/test_output_str_fix.py

  • Executable scriptline 1
    Executable file

tests/tools/test_parse_tools.py

  • Executable scriptline 1
    Executable file

tests/utils/test_any_to_str.py

  • Executable scriptline 1
    Executable file

tests/utils/test_docstring_parser.py

  • Executable scriptline 1
    Executable file

tests/utils/test_formatter.py

  • Executable scriptline 1
    Executable file
  • Network accessline 61
    This paragraph includes **various** formatting options: - Lists with `code` - Links [like this](https://example.com)
  • Network accessline 62
    - Lists with `code - Links [like this](https://example.com)
  • Network accessline 63
    - Links [like this](https://example.com)

tests/utils/test_history_output_formatter.py

  • Executable scriptline 1
    Executable file

tests/utils/test_image_file_b64.py

  • Executable scriptline 1
    Executable file

tests/utils/test_litellm_output_tokens.py

  • Executable scriptline 1
    Executable file

tests/utils/test_litellm_temperature.py

  • Executable scriptline 1
    Executable file

tests/utils/test_litellm_usage.py

  • Executable scriptline 1
    Executable file

tests/utils/test_litellm_wrapper.py

  • Executable scriptline 1
    Executable file

tests/utils/test_llm_backend.py

  • Executable scriptline 1
    Executable file

tests/utils/test_loguru_logger.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 94
    [Credential-related source omitted]
  • Access to secretsline 96
    [Credential-related source omitted]

tests/utils/test_ssrf_url_guard.py

  • Executable scriptline 1
    Executable file
  • Network accessline 32
    "http://169.254.169.254/latest/meta-data/",
  • Network accessline 33
    "http://[fd00:ec2::254]/latest/meta-data/",
  • Network accessline 35
    "http://127.0.0.1:8000/admin",
  • Network accessline 36
    "http://localhost/",
  • Network accessline 37
    "http://LocalHost/",
  • Network accessline 38
    "http://2130706433/",  # decimal 127.0.0.1
  • Network accessline 39
    "http://0x7f000001/",  # hex 127.0.0.1
  • Network accessline 40
    "http://[::1]/",  # IPv6 loopback
  • Network accessline 42
    "http://[::ffff:169.254.169.254]/",
  • Network accessline 43
    "http://[::ffff:127.0.0.1]/",
  • Network accessline 45
    "http://10.0.0.5/",
  • Network accessline 46
    "http://192.168.1.1/",
  • Network accessline 47
    "http://172.16.0.1/",
  • Network accessline 49
    "http://169.254.1.1/",
  • Network accessline 50
    "http://0.0.0.0/",
  • Network accessline 52
    "http://127.0.0.1.nip.io/",
  • Network accessline 55
    "ftp://internal/secret",     "gopher://127.0.0.1:6379/_INFO",     "http:///nohost",
  • Network accessline 56
    "gopher://127.0.0.1:6379/_INFO",     "http:///nohost", ]
  • Network accessline 57
    "http:///nohost",
  • Network accessline 70
    ALLOWED = [     "http://example.com/image.png",
  • Network accessline 71
    "http://example.com/image.png",
  • Network accessline 72
    "https://example.com/image.png",
  • Network accessline 73
    "https://raw.githubusercontent.com/org/repo/main/x.png",
  • Network accessline 74
    "https://upload.wikimedia.org/wikipedia/commons/x.jpg",
  • Possible obfuscationline 145
    content = b"\xff\xd8\xff\xe0fake-jpeg-bytes"
  • Network accessline 166
    url = "https://example.com/cat.jpg"
  • Network accessline 185
    url = "http://169.254.169.254/latest/meta-data/"
  • Network accessline 203
    gets = []     _stub_fetch(monkeypatch, gets)     url = "https://example.com/pinned.jpg"
  • Network accessline 204
    _stub_fetch(monkeypatch, gets)     url = "https://example.com/pinned.jpg"     warm = image_file_b64.get_image_base64(url)
  • Network accessline 205
    url = "https://example.com/pinned.jpg"
  • Network accessline 220
    with pytest.raises(ValueError, match="Blocked URL"):         image_file_b64.get_image_base64(             "https://example.com/other.jpg"
  • Network accessline 221
    image_file_b64.get_image_base64(             "https://example.com/other.jpg"         )
  • Network accessline 222
    "https://example.com/other.jpg"
  • Network accessline 228
    "location, followed",     [         ("http://169.254.169.254/latest/meta-data/", None),
  • Network accessline 229
    [         ("http://169.254.169.254/latest/meta-data/", None),         ("/real.jpg", "http://93.184.215.14/real.jpg"),
  • Network accessline 230
    ("http://169.254.169.254/latest/meta-data/", None),
  • Network accessline 231
    ("/real.jpg", "http://93.184.215.14/real.jpg"),
  • Network accessline 238
    start = "http://93.184.215.14/cat.jpg"
  • Possible obfuscationline 242
    content = b"\xff\xd8\xff\xe0fake-jpeg-bytes"

tests/utils/test_workspace_manager.py

  • Executable scriptline 1
    Executable file
  • Access to secretsline 92
    [Credential-related source omitted]

How the signals fit together

Facts from a static read of the files at the pinned commit. They describe what the code does, not why.

Some files could not be read; the facts below still hold.

Signal confidence: 500 facts

and 450 more

Only the first 500 facts are listed.

Works with

Agent compatibility, from the files in this repository
AgentStatusEvidenceInstall to
Claude CodeNativePath CLAUDE.md.claude/skills/<skill-name>/
CodexNativeManifest AGENTS.md.agents/skills/<skill-name>/
CursorCompatibleStandard SKILL.md SKILL.md.cursor/skills/<skill-name>/
Gemini CLICompatibleStandard SKILL.md SKILL.md.gemini/skills/<skill-name>/
GitHub CopilotNativeManifest .github/copilot-instructions.md.github/skills/<skill-name>/
OpenCodeCompatibleStandard SKILL.md SKILL.md.opencode/skills/<skill-name>/
  • Native The repository ships a manifest, folder or frontmatter field for this agent.
  • Compatible A standard SKILL.md that this agent can read.
  • Unknown No evidence either way.

Derived automatically from paths, manifests and frontmatter. Not tested on each agent.

Explore alternatives and comparisons

Add this badge to your README

It updates every night and links to this page.

kyegomez/swarms: #202 on hotskills, 7.4k stars

[![kyegomez/swarms on hotskills](https://hotskills.dev/badge/kyegomez-swarms.svg)](https://hotskills.dev/skill/kyegomez-swarms/)