swarms 7.9.7__tar.gz → 7.9.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. {swarms-7.9.7 → swarms-7.9.8}/PKG-INFO +139 -28
  2. {swarms-7.9.7 → swarms-7.9.8}/README.md +138 -27
  3. {swarms-7.9.7 → swarms-7.9.8}/pyproject.toml +2 -2
  4. swarms-7.9.8/swarms/agents/consistency_agent.py +389 -0
  5. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/reasoning_agents.py +136 -35
  6. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/collaborative_prompts.py +92 -53
  7. swarms-7.9.8/swarms/prompts/hiearchical_system_prompt.py +159 -0
  8. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/__init__.py +3 -0
  9. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/agent.py +59 -235
  10. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/conversation.py +48 -38
  11. swarms-7.9.8/swarms/structs/hiearchical_swarm.py +737 -0
  12. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/ma_utils.py +34 -14
  13. swarms-7.9.8/swarms/utils/lite_utils.py +5 -0
  14. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/litellm_wrapper.py +154 -82
  15. swarms-7.9.7/swarms/agents/consistency_agent.py +0 -207
  16. swarms-7.9.7/swarms/structs/hiearchical_swarm.py +0 -707
  17. {swarms-7.9.7 → swarms-7.9.8}/LICENSE +0 -0
  18. {swarms-7.9.7 → swarms-7.9.8}/swarms/__init__.py +0 -0
  19. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/__init__.py +0 -0
  20. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/agent_judge.py +0 -0
  21. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/agent_print.py +0 -0
  22. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/ape_agent.py +0 -0
  23. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/auto_generate_swarm_config.py +0 -0
  24. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/cort_agent.py +0 -0
  25. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/create_agents_from_yaml.py +0 -0
  26. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/flexion_agent.py +0 -0
  27. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/gkp_agent.py +0 -0
  28. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/i_agent.py +0 -0
  29. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/openai_assistant.py +0 -0
  30. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/react_agent.py +0 -0
  31. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/reasoning_duo.py +0 -0
  32. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/self_agent_builder.py +0 -0
  33. {swarms-7.9.7 → swarms-7.9.8}/swarms/agents/tool_agent.py +0 -0
  34. {swarms-7.9.7 → swarms-7.9.8}/swarms/artifacts/__init__.py +0 -0
  35. {swarms-7.9.7 → swarms-7.9.8}/swarms/artifacts/main_artifact.py +0 -0
  36. {swarms-7.9.7 → swarms-7.9.8}/swarms/cli/__init__.py +0 -0
  37. {swarms-7.9.7 → swarms-7.9.8}/swarms/cli/create_agent.py +0 -0
  38. {swarms-7.9.7 → swarms-7.9.8}/swarms/cli/main.py +0 -0
  39. {swarms-7.9.7 → swarms-7.9.8}/swarms/cli/onboarding_process.py +0 -0
  40. {swarms-7.9.7 → swarms-7.9.8}/swarms/communication/__init__.py +0 -0
  41. {swarms-7.9.7 → swarms-7.9.8}/swarms/communication/base_communication.py +0 -0
  42. {swarms-7.9.7 → swarms-7.9.8}/swarms/communication/duckdb_wrap.py +0 -0
  43. {swarms-7.9.7 → swarms-7.9.8}/swarms/communication/pulsar_struct.py +0 -0
  44. {swarms-7.9.7 → swarms-7.9.8}/swarms/communication/redis_wrap.py +0 -0
  45. {swarms-7.9.7 → swarms-7.9.8}/swarms/communication/sqlite_wrap.py +0 -0
  46. {swarms-7.9.7 → swarms-7.9.8}/swarms/communication/supabase_wrap.py +0 -0
  47. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/__init__.py +0 -0
  48. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/accountant_swarm_prompts.py +0 -0
  49. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/ag_prompt.py +0 -0
  50. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/aga.py +0 -0
  51. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/agent_conversation_aggregator.py +0 -0
  52. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/agent_judge_prompt.py +0 -0
  53. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/agent_prompt.py +0 -0
  54. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/agent_prompts.py +0 -0
  55. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/agent_self_builder_prompt.py +0 -0
  56. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/agent_system_prompts.py +0 -0
  57. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/ai_research_team.py +0 -0
  58. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/aot_prompt.py +0 -0
  59. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/autobloggen.py +0 -0
  60. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/autoswarm.py +0 -0
  61. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/chat_prompt.py +0 -0
  62. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/code_interpreter.py +0 -0
  63. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/code_spawner.py +0 -0
  64. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/debate.py +0 -0
  65. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/documentation.py +0 -0
  66. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/education.py +0 -0
  67. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/finance_agent_prompt.py +0 -0
  68. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/finance_agent_sys_prompt.py +0 -0
  69. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/growth_agent_prompt.py +0 -0
  70. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/idea2img.py +0 -0
  71. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/legal_agent_prompt.py +0 -0
  72. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/logistics.py +0 -0
  73. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/max_loop_prompt.py +0 -0
  74. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/meta_system_prompt.py +0 -0
  75. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/multi_agent_collab_prompt.py +0 -0
  76. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/multi_modal_autonomous_instruction_prompt.py +0 -0
  77. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/multi_modal_prompts.py +0 -0
  78. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/multi_modal_visual_prompts.py +0 -0
  79. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/operations_agent_prompt.py +0 -0
  80. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/paper_idea_agent.py +0 -0
  81. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/personal_stylist.py +0 -0
  82. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/product_agent_prompt.py +0 -0
  83. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/programming.py +0 -0
  84. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/project_manager.py +0 -0
  85. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/prompt.py +0 -0
  86. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/prompt_generator.py +0 -0
  87. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/prompt_generator_optimizer.py +0 -0
  88. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/python.py +0 -0
  89. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/react.py +0 -0
  90. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/react_base_prompt.py +0 -0
  91. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/reasoning_prompt.py +0 -0
  92. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/refiner_agent_prompt.py +0 -0
  93. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/safety_prompt.py +0 -0
  94. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/sales.py +0 -0
  95. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/sales_prompts.py +0 -0
  96. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/security_team.py +0 -0
  97. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/self_operating_prompt.py +0 -0
  98. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/sop_generator_agent_prompt.py +0 -0
  99. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/summaries_prompts.py +0 -0
  100. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/support_agent_prompt.py +0 -0
  101. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/swarm_manager_agent.py +0 -0
  102. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/task_assignment_prompt.py +0 -0
  103. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/tests.py +0 -0
  104. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/tools.py +0 -0
  105. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/urban_planning.py +0 -0
  106. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/visual_cot.py +0 -0
  107. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/worker_prompt.py +0 -0
  108. {swarms-7.9.7 → swarms-7.9.8}/swarms/prompts/xray_swarm_prompt.py +0 -0
  109. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/__init__.py +0 -0
  110. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/agent_class_schema.py +0 -0
  111. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/agent_completion_response.py +0 -0
  112. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/agent_mcp_errors.py +0 -0
  113. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/agent_rag_schema.py +0 -0
  114. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/agent_step_schemas.py +0 -0
  115. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/agent_tool_schema.py +0 -0
  116. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/base_schemas.py +0 -0
  117. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/conversation_schema.py +0 -0
  118. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/llm_agent_schema.py +0 -0
  119. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/mcp_schemas.py +0 -0
  120. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/swarms_api_schemas.py +0 -0
  121. {swarms-7.9.7 → swarms-7.9.8}/swarms/schemas/tool_schema_base_model.py +0 -0
  122. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/agent_builder.py +0 -0
  123. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/agent_rag_handler.py +0 -0
  124. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/agent_registry.py +0 -0
  125. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/agent_roles.py +0 -0
  126. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/agent_router.py +0 -0
  127. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/aop.py +0 -0
  128. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/auto_swarm_builder.py +0 -0
  129. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/base_structure.py +0 -0
  130. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/base_swarm.py +0 -0
  131. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/base_workflow.py +0 -0
  132. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/batch_agent_execution.py +0 -0
  133. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/concat.py +0 -0
  134. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/concurrent_workflow.py +0 -0
  135. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/council_judge.py +0 -0
  136. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/csv_to_agent.py +0 -0
  137. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/de_hallucination_swarm.py +0 -0
  138. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/deep_research_swarm.py +0 -0
  139. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/dynamic_conversational_swarm.py +0 -0
  140. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/graph_workflow.py +0 -0
  141. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/groupchat.py +0 -0
  142. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/hybrid_hiearchical_peer_swarm.py +0 -0
  143. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/image_batch_processor.py +0 -0
  144. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/interactive_groupchat.py +0 -0
  145. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/long_agent.py +0 -0
  146. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/ma_blocks.py +0 -0
  147. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/majority_voting.py +0 -0
  148. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/malt.py +0 -0
  149. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/matrix_swarm.py +0 -0
  150. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/meme_agent_persona_generator.py +0 -0
  151. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/mixture_of_agents.py +0 -0
  152. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/model_router.py +0 -0
  153. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/multi_agent_exec.py +0 -0
  154. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/multi_agent_router.py +0 -0
  155. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/multi_model_gpu_manager.py +0 -0
  156. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/omni_agent_types.py +0 -0
  157. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/rearrange.py +0 -0
  158. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/round_robin.py +0 -0
  159. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/safe_loading.py +0 -0
  160. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/sequential_workflow.py +0 -0
  161. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/spreadsheet_swarm.py +0 -0
  162. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/stopping_conditions.py +0 -0
  163. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/swarm_arange.py +0 -0
  164. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/swarm_eval.py +0 -0
  165. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/swarm_id_generator.py +0 -0
  166. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/swarm_matcher.py +0 -0
  167. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/swarm_registry.py +0 -0
  168. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/swarm_router.py +0 -0
  169. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/swarming_architectures.py +0 -0
  170. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/tree_swarm.py +0 -0
  171. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/utils.py +0 -0
  172. {swarms-7.9.7 → swarms-7.9.8}/swarms/structs/various_alt_swarms.py +0 -0
  173. {swarms-7.9.7 → swarms-7.9.8}/swarms/telemetry/__init__.py +0 -0
  174. {swarms-7.9.7 → swarms-7.9.8}/swarms/telemetry/bootup.py +0 -0
  175. {swarms-7.9.7 → swarms-7.9.8}/swarms/telemetry/log_executions.py +0 -0
  176. {swarms-7.9.7 → swarms-7.9.8}/swarms/telemetry/main.py +0 -0
  177. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/__init__.py +0 -0
  178. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/base_tool.py +0 -0
  179. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/cohere_func_call_schema.py +0 -0
  180. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/create_agent_tool.py +0 -0
  181. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/func_calling_utils.py +0 -0
  182. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/func_to_str.py +0 -0
  183. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/function_util.py +0 -0
  184. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/json_former.py +0 -0
  185. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/json_utils.py +0 -0
  186. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/logits_processor.py +0 -0
  187. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/mcp_client_call.py +0 -0
  188. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/openai_func_calling_schema_pydantic.py +0 -0
  189. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/openai_tool_creator_decorator.py +0 -0
  190. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/py_func_to_openai_func_str.py +0 -0
  191. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/pydantic_to_json.py +0 -0
  192. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/tool_parse_exec.py +0 -0
  193. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/tool_registry.py +0 -0
  194. {swarms-7.9.7 → swarms-7.9.8}/swarms/tools/tool_utils.py +0 -0
  195. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/__init__.py +0 -0
  196. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/any_to_str.py +0 -0
  197. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/audio_processing.py +0 -0
  198. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/auto_download_check_packages.py +0 -0
  199. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/calculate_func_metrics.py +0 -0
  200. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/check_all_model_max_tokens.py +0 -0
  201. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/data_to_text.py +0 -0
  202. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/disable_logging.py +0 -0
  203. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/file_processing.py +0 -0
  204. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/formatter.py +0 -0
  205. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/function_caller_model.py +0 -0
  206. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/generate_keys.py +0 -0
  207. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/history_output_formatter.py +0 -0
  208. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/index.py +0 -0
  209. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/litellm_tokenizer.py +0 -0
  210. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/loguru_logger.py +0 -0
  211. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/output_types.py +0 -0
  212. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/parse_code.py +0 -0
  213. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/pdf_to_text.py +0 -0
  214. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/retry_func.py +0 -0
  215. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/str_to_dict.py +0 -0
  216. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/try_except_wrapper.py +0 -0
  217. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/vllm_wrapper.py +0 -0
  218. {swarms-7.9.7 → swarms-7.9.8}/swarms/utils/xml_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: swarms
3
- Version: 7.9.7
3
+ Version: 7.9.8
4
4
  Summary: Swarms - TGSC
5
5
  License: MIT
6
6
  Keywords: artificial intelligence,deep learning,optimizers,Prompt Engineering,swarms,agents,llms,transformers,multi-agent,swarms of agents,Enterprise-Grade Agents,Production-Grade Agents,Agents,Multi-Grade-Agents,Swarms,Transformers,LLMs,Prompt Engineering,Agents,Generative Agents,Generative AI,Agent Marketplace,Agent Store,quant,finance,algorithmic trading,portfolio optimization,risk management,financial modeling,machine learning for finance,natural language processing for finance
@@ -268,6 +268,7 @@ print(final_post)
268
268
  | **[GroupChat](https://docs.swarms.world/en/latest/swarms/structs/group_chat/)** | Agents collaborate and make decisions through a conversational interface. | Real-time collaborative decision-making, negotiations, brainstorming. |
269
269
  | **[ForestSwarm](https://docs.swarms.world/en/latest/swarms/structs/forest_swarm/)** | Dynamically selects the most suitable agent or tree of agents for a given task. | Task routing, optimizing for expertise, complex decision-making trees. |
270
270
  | **[SpreadSheetSwarm](https://docs.swarms.world/en/latest/swarms/structs/spreadsheet_swarm/)** | Manages thousands of agents concurrently, tracking tasks and outputs in a structured format. | Massive-scale parallel operations, large-scale data generation and analysis. |
271
+ | **[HierarchicalSwarm](https://docs.swarms.world/en/latest/swarms/structs/hiearchical_swarm/)** | Orchestrates agents with a director that creates plans and distributes tasks to specialized worker agents. | Complex project management, team coordination, hierarchical decision-making with feedback loops. |
271
272
  | **[SwarmRouter](https://docs.swarms.world/en/latest/swarms/structs/swarm_router/)** | Universal orchestrator that provides a single interface to run any type of swarm with dynamic selection. | Simplifying complex workflows, switching between swarm strategies, unified multi-agent management. |
272
273
 
273
274
  -----
@@ -513,6 +514,66 @@ for message in conversation_history:
513
514
  print(f"[{message['agent_name']}]: {message['content']}")
514
515
  ```
515
516
 
517
+ ----
518
+
519
+ ### HierarchicalSwarm
520
+
521
+ `HierarchicalSwarm` implements a director-worker pattern where a central director agent creates comprehensive plans and distributes specific tasks to specialized worker agents. The director evaluates results and can issue new orders in feedback loops, making it ideal for complex project management and team coordination scenarios.
522
+
523
+ ```python
524
+ from swarms import Agent, HierarchicalSwarm
525
+
526
+ # Define specialized worker agents
527
+ content_strategist = Agent(
528
+ agent_name="Content-Strategist",
529
+ system_prompt="You are a senior content strategist. Develop comprehensive content strategies, editorial calendars, and content roadmaps.",
530
+ model_name="gpt-4o-mini"
531
+ )
532
+
533
+ creative_director = Agent(
534
+ agent_name="Creative-Director",
535
+ system_prompt="You are a creative director. Develop compelling advertising concepts, visual directions, and campaign creativity.",
536
+ model_name="gpt-4o-mini"
537
+ )
538
+
539
+ seo_specialist = Agent(
540
+ agent_name="SEO-Specialist",
541
+ system_prompt="You are an SEO expert. Conduct keyword research, optimize content, and develop organic growth strategies.",
542
+ model_name="gpt-4o-mini"
543
+ )
544
+
545
+ brand_strategist = Agent(
546
+ agent_name="Brand-Strategist",
547
+ system_prompt="You are a brand strategist. Develop brand positioning, identity systems, and market differentiation strategies.",
548
+ model_name="gpt-4o-mini"
549
+ )
550
+
551
+ # Create the hierarchical swarm with a director
552
+ marketing_swarm = HierarchicalSwarm(
553
+ name="Marketing-Team-Swarm",
554
+ description="A comprehensive marketing team with specialized agents coordinated by a director",
555
+ agents=[content_strategist, creative_director, seo_specialist, brand_strategist],
556
+ max_loops=2, # Allow for feedback and refinement
557
+ verbose=True
558
+ )
559
+
560
+ # Run the swarm on a complex marketing challenge
561
+ result = marketing_swarm.run(
562
+ "Develop a comprehensive marketing strategy for a new SaaS product launch. "
563
+ "The product is a project management tool targeting small to medium businesses. "
564
+ "Coordinate the team to create content strategy, creative campaigns, SEO optimization, "
565
+ "and brand positioning that work together cohesively."
566
+ )
567
+
568
+ print(result)
569
+ ```
570
+
571
+ The `HierarchicalSwarm` excels at:
572
+ - **Complex Project Management**: Breaking down large tasks into specialized subtasks
573
+ - **Team Coordination**: Ensuring all agents work toward unified goals
574
+ - **Quality Control**: Director provides feedback and refinement loops
575
+ - **Scalable Workflows**: Easy to add new specialized agents as needed
576
+
516
577
  ---
517
578
 
518
579
  ## Documentation
@@ -522,44 +583,96 @@ Documentation is located here at: [docs.swarms.world](https://docs.swarms.world)
522
583
 
523
584
  ---
524
585
 
586
+ ## Examples
525
587
 
526
- ## Guides and Walkthroughs
588
+ Explore comprehensive examples and tutorials to learn how to use Swarms effectively.
527
589
 
528
- Here are quick reference guides on how to get started with swarms.
590
+ ### Basic Examples
529
591
 
530
- | Section | Description | Links |
531
- |----------------------|--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|
532
- | Installation | Complete setup guide for Swarms in your environment | [Installation](https://docs.swarms.world/en/latest/swarms/install/install/) |
533
- | Quickstart | Get up and running with your first swarm in minutes | [Get Started](https://docs.swarms.world/en/latest/swarms/install/quickstart/) |
534
- | Agent Internal Mechanisms | Deep dive into how agents work internally | [Agent Architecture](https://docs.swarms.world/en/latest/swarms/framework/agents_explained/) |
535
- | Agent API | Complete reference for the Agent class and its methods | [Agent API](https://docs.swarms.world/en/latest/swarms/structs/agent/) |
536
- | Integrating External Agents | Connect Swarms with other AI frameworks like Griptape and Autogen | [Integrating External APIs](https://docs.swarms.world/en/latest/swarms/agents/external_party_agents/) |
537
- | Creating Agents from YAML | Define and configure agents using YAML configuration files | [Creating Agents from YAML](https://docs.swarms.world/en/latest/swarms/agents/create_agents_yaml/) |
538
- | Why You Need Swarms | Understanding the benefits of multi-agent collaboration | [Why Multi-Agent Collaboration is Necessary](https://docs.swarms.world/en/latest/swarms/concept/why/) |
539
- | Multi-Agent Architectures Analysis | Comprehensive analysis of different swarm patterns and architectures | [Multi-Agent Architectures](https://docs.swarms.world/en/latest/swarms/concept/swarm_architectures/) |
540
- | Choosing the Right Swarm | Guide to selecting the optimal swarm architecture for your specific business needs | [Business Problem Guide](https://docs.swarms.world/en/latest/swarms/concept/swarm_architectures/) |
541
- | AgentRearrange Docs | Documentation for dynamic agent rearrangement and workflow optimization | [AgentRearrange API](https://docs.swarms.world/en/latest/swarms/structs/agent_rearrange/) |
592
+ | Example | Description | Link |
593
+ |---------|-------------|------|
594
+ | Basic Agent | Simple agent setup and usage | [Basic Agent](https://docs.swarms.world/en/latest/swarms/examples/basic_agent/) |
595
+ | Agent with Tools | Using agents with various tools | [Agent with Tools](https://docs.swarms.world/en/latest/swarms/examples/agent_with_tools/) |
596
+ | Agent with Structured Outputs | Working with structured data outputs | [Structured Outputs](https://docs.swarms.world/en/latest/swarms/examples/agent_structured_outputs/) |
597
+ | Agent with MCP Integration | Model Context Protocol integration | [MCP Integration](https://docs.swarms.world/en/latest/swarms/examples/agent_with_mcp/) |
598
+ | Vision Processing | Agents with image processing capabilities | [Vision Processing](https://docs.swarms.world/en/latest/swarms/examples/vision_processing/) |
599
+ | Multiple Images | Working with multiple images | [Multiple Images](https://docs.swarms.world/en/latest/swarms/examples/multiple_images/) |
600
+ | Vision and Tools | Combining vision with tool usage | [Vision and Tools](https://docs.swarms.world/en/latest/swarms/examples/vision_tools/) |
601
+ | Agent Streaming | Real-time agent output streaming | [Agent Streaming](https://docs.swarms.world/en/latest/examples/agent_stream/) |
602
+ | Agent Output Types | Different output formats and types | [Output Types](https://docs.swarms.world/en/latest/swarms/examples/agent_output_types/) |
603
+ | Gradio Chat Interface | Building interactive chat interfaces | [Gradio UI](https://docs.swarms.world/en/latest/swarms/ui/main/) |
542
604
 
605
+ ### Model Provider Examples
543
606
 
607
+ | Provider | Description | Link |
608
+ |----------|-------------|------|
609
+ | Model Providers Overview | Complete guide to supported models | [Model Providers](https://docs.swarms.world/en/latest/swarms/examples/model_providers/) |
610
+ | OpenAI | OpenAI model integration | [OpenAI Examples](https://docs.swarms.world/en/latest/swarms/examples/openai_example/) |
611
+ | Anthropic | Claude model integration | [Anthropic Examples](https://docs.swarms.world/en/latest/swarms/examples/claude/) |
612
+ | Groq | Groq model integration | [Groq Examples](https://docs.swarms.world/en/latest/swarms/examples/groq/) |
613
+ | Cohere | Cohere model integration | [Cohere Examples](https://docs.swarms.world/en/latest/swarms/examples/cohere/) |
614
+ | DeepSeek | DeepSeek model integration | [DeepSeek Examples](https://docs.swarms.world/en/latest/swarms/examples/deepseek/) |
615
+ | Ollama | Local Ollama model integration | [Ollama Examples](https://docs.swarms.world/en/latest/swarms/examples/ollama/) |
616
+ | OpenRouter | OpenRouter model integration | [OpenRouter Examples](https://docs.swarms.world/en/latest/swarms/examples/openrouter/) |
617
+ | XAI | XAI model integration | [XAI Examples](https://docs.swarms.world/en/latest/swarms/examples/xai/) |
618
+ | VLLM | VLLM integration | [VLLM Examples](https://docs.swarms.world/en/latest/swarms/examples/vllm_integration/) |
619
+ | Llama4 | Llama4 model integration | [Llama4 Examples](https://docs.swarms.world/en/latest/swarms/examples/llama4/) |
620
+
621
+ ### Multi-Agent Architecture Examples
622
+
623
+ | Architecture | Description | Link |
624
+ |--------------|-------------|------|
625
+ | HierarchicalSwarm | Hierarchical agent orchestration | [HierarchicalSwarm Examples](https://docs.swarms.world/en/latest/swarms/examples/hierarchical_swarm_example/) |
626
+ | Hybrid Hierarchical-Cluster Swarm | Advanced hierarchical patterns | [HHCS Examples](https://docs.swarms.world/en/latest/swarms/examples/hhcs_examples/) |
627
+ | GroupChat | Multi-agent conversations | [GroupChat Examples](https://docs.swarms.world/en/latest/swarms/examples/groupchat_example/) |
628
+ | Sequential Workflow | Step-by-step agent workflows | [Sequential Examples](https://docs.swarms.world/en/latest/swarms/examples/sequential_example/) |
629
+ | SwarmRouter | Universal swarm orchestration | [SwarmRouter Examples](https://docs.swarms.world/en/latest/swarms/examples/swarm_router/) |
630
+ | MultiAgentRouter | Minimal router example | [MultiAgentRouter Examples](https://docs.swarms.world/en/latest/swarms/examples/multi_agent_router_minimal/) |
631
+ | ConcurrentWorkflow | Parallel agent execution | [Concurrent Examples](https://docs.swarms.world/en/latest/swarms/examples/concurrent_workflow/) |
632
+ | Mixture of Agents | Expert agent collaboration | [MoA Examples](https://docs.swarms.world/en/latest/swarms/examples/moa_example/) |
633
+ | Unique Swarms | Specialized swarm patterns | [Unique Swarms](https://docs.swarms.world/en/latest/swarms/examples/unique_swarms/) |
634
+ | Agents as Tools | Using agents as tools in workflows | [Agents as Tools](https://docs.swarms.world/en/latest/swarms/examples/agents_as_tools/) |
635
+ | Aggregate Responses | Combining multiple agent outputs | [Aggregate Examples](https://docs.swarms.world/en/latest/swarms/examples/aggregate/) |
636
+ | Interactive GroupChat | Real-time agent interactions | [Interactive GroupChat](https://docs.swarms.world/en/latest/swarms/examples/igc_example/) |
637
+
638
+ ### Application Examples
639
+
640
+ | Application | Description | Link |
641
+ |-------------|-------------|------|
642
+ | Swarms DAO | Decentralized autonomous organization | [Swarms DAO](https://docs.swarms.world/en/latest/swarms/examples/swarms_dao/) |
643
+ | Browser Agents | Web automation with agents | [Browser Agents](https://docs.swarms.world/en/latest/swarms/examples/swarms_of_browser_agents/) |
644
+ | VLLM Agents | High-performance model serving | [VLLM Agents](https://docs.swarms.world/en/latest/swarms/examples/vllm/) |
645
+ | Medical Analysis | Healthcare applications | [Medical Examples](https://docs.swarms.world/en/latest/swarms/examples/swarms_api_medical/) |
646
+ | Finance Analysis | Financial applications | [Finance Examples](https://docs.swarms.world/en/latest/swarms/examples/swarms_api_finance/) |
647
+
648
+ ### Cookbook and Templates
649
+
650
+ | Resource | Description | Link |
651
+ |----------|-------------|------|
652
+ | Examples Overview | Complete examples directory | [Examples Index](https://docs.swarms.world/en/latest/examples/) |
653
+ | Cookbook Index | Curated example collection | [Cookbook](https://docs.swarms.world/en/latest/examples/cookbook_index/) |
654
+ | Paper Implementations | Research paper implementations | [Paper Implementations](https://docs.swarms.world/en/latest/examples/paper_implementations/) |
655
+ | Templates & Applications | Reusable templates | [Templates](https://docs.swarms.world/en/latest/examples/templates/) |
544
656
 
545
657
  ---
546
658
 
659
+ ## Contribute to Swarms
547
660
 
548
- ## 🫶 Contribute to Swarms
661
+ Our mission is to accelerate the transition to a fully autonomous world economy by providing enterprise-grade, production-ready infrastructure that enables seamless deployment and orchestration of millions of autonomous agents. We are creating the operating system for the agent economy, and we need your help to achieve this goal.
549
662
 
550
- Swarms is built by the community, for the community. We believe that collaborative development is the key to pushing the boundaries of what's possible with multi-agent AI. Your contributions are not only welcome—they are essential to our mission. [Learn more about why you should contribute to swarms](https://docs.swarms.world/en/latest/contributors/main/)
663
+ Swarms is built by the community, for the community. We believe that collaborative development is the key to pushing the boundaries of what's possible with multi-agent AI. Your contributions are not only welcome—they are essential to our mission. [Learn more about why you should contribute to Swarms](https://docs.swarms.world/en/latest/contributors/main/)
551
664
 
552
665
  ### Why Contribute?
553
666
 
554
667
  By joining us, you have the opportunity to:
555
668
 
556
- * 🚀 **Work on the Frontier of agents:** Shape the future of autonomous agent technology and help build a production-grade, open-source framework.
669
+ * **Work on the Frontier of Agents:** Shape the future of autonomous agent technology and help build a production-grade, open-source framework.
557
670
 
558
- * 🤝 **Join a Vibrant Community:** Collaborate with a passionate and growing group of agent developers, researchers, and AI enthusiasts.
671
+ * **Join a Vibrant Community:** Collaborate with a passionate and growing group of agent developers, researchers, and AI enthusiasts.
559
672
 
560
- * 🛠️ **Make a Tangible Impact:** Whether you're fixing a bug, adding a new feature, or improving documentation, your work will be used in real-world applications.
673
+ * **Make a Tangible Impact:** Whether you're fixing a bug, adding a new feature, or improving documentation, your work will be used in real-world applications.
561
674
 
562
- * 📚 **Learn and Grow:** Gain hands-on experience with advanced AI concepts and strengthen your software engineering skills.
675
+ * **Learn and Grow:** Gain hands-on experience with advanced AI concepts and strengthen your software engineering skills.
563
676
 
564
677
  Discover more about our mission and the benefits of becoming a contributor in our official [**Contributor's Guide**](https://docs.swarms.world/en/latest/contributors/main/).
565
678
 
@@ -567,13 +680,13 @@ Discover more about our mission and the benefits of becoming a contributor in ou
567
680
 
568
681
  We've made it easy to start contributing. Here's how you can help:
569
682
 
570
- 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 contributors.
683
+ 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 contributors.
571
684
 
572
- 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 Issues page.
685
+ 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 Issues page.
573
686
 
574
- 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 encourage you to read our guide on [**Code Cleanliness**](https://docs.swarms.world/en/latest/swarms/framework/code_cleanliness/).
687
+ 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 encourage you to read our guide on [**Code Cleanliness**](https://docs.swarms.world/en/latest/swarms/framework/code_cleanliness/).
575
688
 
576
- 4. **Join the Discussion:** To participate in roadmap discussions and connect with other developers, join our community on [**Discord**](https://discord.gg/jM3Z6M9uMq).
689
+ 4. **Join the Discussion:** To participate in roadmap discussions and connect with other developers, join our community on [**Discord**](https://discord.gg/jM3Z6M9uMq).
577
690
 
578
691
 
579
692
  ### ✨ Our Valued Contributors
@@ -620,7 +733,5 @@ If you use **swarms** in your research, please cite the project by referencing t
620
733
 
621
734
  # License
622
735
 
623
- APACHE
624
-
625
-
736
+ Swarms is licensed under the Apache License 2.0. [Learn more here](./LICENSE)
626
737
 
@@ -225,6 +225,7 @@ print(final_post)
225
225
  | **[GroupChat](https://docs.swarms.world/en/latest/swarms/structs/group_chat/)** | Agents collaborate and make decisions through a conversational interface. | Real-time collaborative decision-making, negotiations, brainstorming. |
226
226
  | **[ForestSwarm](https://docs.swarms.world/en/latest/swarms/structs/forest_swarm/)** | Dynamically selects the most suitable agent or tree of agents for a given task. | Task routing, optimizing for expertise, complex decision-making trees. |
227
227
  | **[SpreadSheetSwarm](https://docs.swarms.world/en/latest/swarms/structs/spreadsheet_swarm/)** | Manages thousands of agents concurrently, tracking tasks and outputs in a structured format. | Massive-scale parallel operations, large-scale data generation and analysis. |
228
+ | **[HierarchicalSwarm](https://docs.swarms.world/en/latest/swarms/structs/hiearchical_swarm/)** | Orchestrates agents with a director that creates plans and distributes tasks to specialized worker agents. | Complex project management, team coordination, hierarchical decision-making with feedback loops. |
228
229
  | **[SwarmRouter](https://docs.swarms.world/en/latest/swarms/structs/swarm_router/)** | Universal orchestrator that provides a single interface to run any type of swarm with dynamic selection. | Simplifying complex workflows, switching between swarm strategies, unified multi-agent management. |
229
230
 
230
231
  -----
@@ -470,6 +471,66 @@ for message in conversation_history:
470
471
  print(f"[{message['agent_name']}]: {message['content']}")
471
472
  ```
472
473
 
474
+ ----
475
+
476
+ ### HierarchicalSwarm
477
+
478
+ `HierarchicalSwarm` implements a director-worker pattern where a central director agent creates comprehensive plans and distributes specific tasks to specialized worker agents. The director evaluates results and can issue new orders in feedback loops, making it ideal for complex project management and team coordination scenarios.
479
+
480
+ ```python
481
+ from swarms import Agent, HierarchicalSwarm
482
+
483
+ # Define specialized worker agents
484
+ content_strategist = Agent(
485
+ agent_name="Content-Strategist",
486
+ system_prompt="You are a senior content strategist. Develop comprehensive content strategies, editorial calendars, and content roadmaps.",
487
+ model_name="gpt-4o-mini"
488
+ )
489
+
490
+ creative_director = Agent(
491
+ agent_name="Creative-Director",
492
+ system_prompt="You are a creative director. Develop compelling advertising concepts, visual directions, and campaign creativity.",
493
+ model_name="gpt-4o-mini"
494
+ )
495
+
496
+ seo_specialist = Agent(
497
+ agent_name="SEO-Specialist",
498
+ system_prompt="You are an SEO expert. Conduct keyword research, optimize content, and develop organic growth strategies.",
499
+ model_name="gpt-4o-mini"
500
+ )
501
+
502
+ brand_strategist = Agent(
503
+ agent_name="Brand-Strategist",
504
+ system_prompt="You are a brand strategist. Develop brand positioning, identity systems, and market differentiation strategies.",
505
+ model_name="gpt-4o-mini"
506
+ )
507
+
508
+ # Create the hierarchical swarm with a director
509
+ marketing_swarm = HierarchicalSwarm(
510
+ name="Marketing-Team-Swarm",
511
+ description="A comprehensive marketing team with specialized agents coordinated by a director",
512
+ agents=[content_strategist, creative_director, seo_specialist, brand_strategist],
513
+ max_loops=2, # Allow for feedback and refinement
514
+ verbose=True
515
+ )
516
+
517
+ # Run the swarm on a complex marketing challenge
518
+ result = marketing_swarm.run(
519
+ "Develop a comprehensive marketing strategy for a new SaaS product launch. "
520
+ "The product is a project management tool targeting small to medium businesses. "
521
+ "Coordinate the team to create content strategy, creative campaigns, SEO optimization, "
522
+ "and brand positioning that work together cohesively."
523
+ )
524
+
525
+ print(result)
526
+ ```
527
+
528
+ The `HierarchicalSwarm` excels at:
529
+ - **Complex Project Management**: Breaking down large tasks into specialized subtasks
530
+ - **Team Coordination**: Ensuring all agents work toward unified goals
531
+ - **Quality Control**: Director provides feedback and refinement loops
532
+ - **Scalable Workflows**: Easy to add new specialized agents as needed
533
+
473
534
  ---
474
535
 
475
536
  ## Documentation
@@ -479,44 +540,96 @@ Documentation is located here at: [docs.swarms.world](https://docs.swarms.world)
479
540
 
480
541
  ---
481
542
 
543
+ ## Examples
482
544
 
483
- ## Guides and Walkthroughs
545
+ Explore comprehensive examples and tutorials to learn how to use Swarms effectively.
484
546
 
485
- Here are quick reference guides on how to get started with swarms.
547
+ ### Basic Examples
486
548
 
487
- | Section | Description | Links |
488
- |----------------------|--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|
489
- | Installation | Complete setup guide for Swarms in your environment | [Installation](https://docs.swarms.world/en/latest/swarms/install/install/) |
490
- | Quickstart | Get up and running with your first swarm in minutes | [Get Started](https://docs.swarms.world/en/latest/swarms/install/quickstart/) |
491
- | Agent Internal Mechanisms | Deep dive into how agents work internally | [Agent Architecture](https://docs.swarms.world/en/latest/swarms/framework/agents_explained/) |
492
- | Agent API | Complete reference for the Agent class and its methods | [Agent API](https://docs.swarms.world/en/latest/swarms/structs/agent/) |
493
- | Integrating External Agents | Connect Swarms with other AI frameworks like Griptape and Autogen | [Integrating External APIs](https://docs.swarms.world/en/latest/swarms/agents/external_party_agents/) |
494
- | Creating Agents from YAML | Define and configure agents using YAML configuration files | [Creating Agents from YAML](https://docs.swarms.world/en/latest/swarms/agents/create_agents_yaml/) |
495
- | Why You Need Swarms | Understanding the benefits of multi-agent collaboration | [Why Multi-Agent Collaboration is Necessary](https://docs.swarms.world/en/latest/swarms/concept/why/) |
496
- | Multi-Agent Architectures Analysis | Comprehensive analysis of different swarm patterns and architectures | [Multi-Agent Architectures](https://docs.swarms.world/en/latest/swarms/concept/swarm_architectures/) |
497
- | Choosing the Right Swarm | Guide to selecting the optimal swarm architecture for your specific business needs | [Business Problem Guide](https://docs.swarms.world/en/latest/swarms/concept/swarm_architectures/) |
498
- | AgentRearrange Docs | Documentation for dynamic agent rearrangement and workflow optimization | [AgentRearrange API](https://docs.swarms.world/en/latest/swarms/structs/agent_rearrange/) |
549
+ | Example | Description | Link |
550
+ |---------|-------------|------|
551
+ | Basic Agent | Simple agent setup and usage | [Basic Agent](https://docs.swarms.world/en/latest/swarms/examples/basic_agent/) |
552
+ | Agent with Tools | Using agents with various tools | [Agent with Tools](https://docs.swarms.world/en/latest/swarms/examples/agent_with_tools/) |
553
+ | Agent with Structured Outputs | Working with structured data outputs | [Structured Outputs](https://docs.swarms.world/en/latest/swarms/examples/agent_structured_outputs/) |
554
+ | Agent with MCP Integration | Model Context Protocol integration | [MCP Integration](https://docs.swarms.world/en/latest/swarms/examples/agent_with_mcp/) |
555
+ | Vision Processing | Agents with image processing capabilities | [Vision Processing](https://docs.swarms.world/en/latest/swarms/examples/vision_processing/) |
556
+ | Multiple Images | Working with multiple images | [Multiple Images](https://docs.swarms.world/en/latest/swarms/examples/multiple_images/) |
557
+ | Vision and Tools | Combining vision with tool usage | [Vision and Tools](https://docs.swarms.world/en/latest/swarms/examples/vision_tools/) |
558
+ | Agent Streaming | Real-time agent output streaming | [Agent Streaming](https://docs.swarms.world/en/latest/examples/agent_stream/) |
559
+ | Agent Output Types | Different output formats and types | [Output Types](https://docs.swarms.world/en/latest/swarms/examples/agent_output_types/) |
560
+ | Gradio Chat Interface | Building interactive chat interfaces | [Gradio UI](https://docs.swarms.world/en/latest/swarms/ui/main/) |
499
561
 
562
+ ### Model Provider Examples
500
563
 
564
+ | Provider | Description | Link |
565
+ |----------|-------------|------|
566
+ | Model Providers Overview | Complete guide to supported models | [Model Providers](https://docs.swarms.world/en/latest/swarms/examples/model_providers/) |
567
+ | OpenAI | OpenAI model integration | [OpenAI Examples](https://docs.swarms.world/en/latest/swarms/examples/openai_example/) |
568
+ | Anthropic | Claude model integration | [Anthropic Examples](https://docs.swarms.world/en/latest/swarms/examples/claude/) |
569
+ | Groq | Groq model integration | [Groq Examples](https://docs.swarms.world/en/latest/swarms/examples/groq/) |
570
+ | Cohere | Cohere model integration | [Cohere Examples](https://docs.swarms.world/en/latest/swarms/examples/cohere/) |
571
+ | DeepSeek | DeepSeek model integration | [DeepSeek Examples](https://docs.swarms.world/en/latest/swarms/examples/deepseek/) |
572
+ | Ollama | Local Ollama model integration | [Ollama Examples](https://docs.swarms.world/en/latest/swarms/examples/ollama/) |
573
+ | OpenRouter | OpenRouter model integration | [OpenRouter Examples](https://docs.swarms.world/en/latest/swarms/examples/openrouter/) |
574
+ | XAI | XAI model integration | [XAI Examples](https://docs.swarms.world/en/latest/swarms/examples/xai/) |
575
+ | VLLM | VLLM integration | [VLLM Examples](https://docs.swarms.world/en/latest/swarms/examples/vllm_integration/) |
576
+ | Llama4 | Llama4 model integration | [Llama4 Examples](https://docs.swarms.world/en/latest/swarms/examples/llama4/) |
577
+
578
+ ### Multi-Agent Architecture Examples
579
+
580
+ | Architecture | Description | Link |
581
+ |--------------|-------------|------|
582
+ | HierarchicalSwarm | Hierarchical agent orchestration | [HierarchicalSwarm Examples](https://docs.swarms.world/en/latest/swarms/examples/hierarchical_swarm_example/) |
583
+ | Hybrid Hierarchical-Cluster Swarm | Advanced hierarchical patterns | [HHCS Examples](https://docs.swarms.world/en/latest/swarms/examples/hhcs_examples/) |
584
+ | GroupChat | Multi-agent conversations | [GroupChat Examples](https://docs.swarms.world/en/latest/swarms/examples/groupchat_example/) |
585
+ | Sequential Workflow | Step-by-step agent workflows | [Sequential Examples](https://docs.swarms.world/en/latest/swarms/examples/sequential_example/) |
586
+ | SwarmRouter | Universal swarm orchestration | [SwarmRouter Examples](https://docs.swarms.world/en/latest/swarms/examples/swarm_router/) |
587
+ | MultiAgentRouter | Minimal router example | [MultiAgentRouter Examples](https://docs.swarms.world/en/latest/swarms/examples/multi_agent_router_minimal/) |
588
+ | ConcurrentWorkflow | Parallel agent execution | [Concurrent Examples](https://docs.swarms.world/en/latest/swarms/examples/concurrent_workflow/) |
589
+ | Mixture of Agents | Expert agent collaboration | [MoA Examples](https://docs.swarms.world/en/latest/swarms/examples/moa_example/) |
590
+ | Unique Swarms | Specialized swarm patterns | [Unique Swarms](https://docs.swarms.world/en/latest/swarms/examples/unique_swarms/) |
591
+ | Agents as Tools | Using agents as tools in workflows | [Agents as Tools](https://docs.swarms.world/en/latest/swarms/examples/agents_as_tools/) |
592
+ | Aggregate Responses | Combining multiple agent outputs | [Aggregate Examples](https://docs.swarms.world/en/latest/swarms/examples/aggregate/) |
593
+ | Interactive GroupChat | Real-time agent interactions | [Interactive GroupChat](https://docs.swarms.world/en/latest/swarms/examples/igc_example/) |
594
+
595
+ ### Application Examples
596
+
597
+ | Application | Description | Link |
598
+ |-------------|-------------|------|
599
+ | Swarms DAO | Decentralized autonomous organization | [Swarms DAO](https://docs.swarms.world/en/latest/swarms/examples/swarms_dao/) |
600
+ | Browser Agents | Web automation with agents | [Browser Agents](https://docs.swarms.world/en/latest/swarms/examples/swarms_of_browser_agents/) |
601
+ | VLLM Agents | High-performance model serving | [VLLM Agents](https://docs.swarms.world/en/latest/swarms/examples/vllm/) |
602
+ | Medical Analysis | Healthcare applications | [Medical Examples](https://docs.swarms.world/en/latest/swarms/examples/swarms_api_medical/) |
603
+ | Finance Analysis | Financial applications | [Finance Examples](https://docs.swarms.world/en/latest/swarms/examples/swarms_api_finance/) |
604
+
605
+ ### Cookbook and Templates
606
+
607
+ | Resource | Description | Link |
608
+ |----------|-------------|------|
609
+ | Examples Overview | Complete examples directory | [Examples Index](https://docs.swarms.world/en/latest/examples/) |
610
+ | Cookbook Index | Curated example collection | [Cookbook](https://docs.swarms.world/en/latest/examples/cookbook_index/) |
611
+ | Paper Implementations | Research paper implementations | [Paper Implementations](https://docs.swarms.world/en/latest/examples/paper_implementations/) |
612
+ | Templates & Applications | Reusable templates | [Templates](https://docs.swarms.world/en/latest/examples/templates/) |
501
613
 
502
614
  ---
503
615
 
616
+ ## Contribute to Swarms
504
617
 
505
- ## 🫶 Contribute to Swarms
618
+ Our mission is to accelerate the transition to a fully autonomous world economy by providing enterprise-grade, production-ready infrastructure that enables seamless deployment and orchestration of millions of autonomous agents. We are creating the operating system for the agent economy, and we need your help to achieve this goal.
506
619
 
507
- Swarms is built by the community, for the community. We believe that collaborative development is the key to pushing the boundaries of what's possible with multi-agent AI. Your contributions are not only welcome—they are essential to our mission. [Learn more about why you should contribute to swarms](https://docs.swarms.world/en/latest/contributors/main/)
620
+ Swarms is built by the community, for the community. We believe that collaborative development is the key to pushing the boundaries of what's possible with multi-agent AI. Your contributions are not only welcome—they are essential to our mission. [Learn more about why you should contribute to Swarms](https://docs.swarms.world/en/latest/contributors/main/)
508
621
 
509
622
  ### Why Contribute?
510
623
 
511
624
  By joining us, you have the opportunity to:
512
625
 
513
- * 🚀 **Work on the Frontier of agents:** Shape the future of autonomous agent technology and help build a production-grade, open-source framework.
626
+ * **Work on the Frontier of Agents:** Shape the future of autonomous agent technology and help build a production-grade, open-source framework.
514
627
 
515
- * 🤝 **Join a Vibrant Community:** Collaborate with a passionate and growing group of agent developers, researchers, and AI enthusiasts.
628
+ * **Join a Vibrant Community:** Collaborate with a passionate and growing group of agent developers, researchers, and AI enthusiasts.
516
629
 
517
- * 🛠️ **Make a Tangible Impact:** Whether you're fixing a bug, adding a new feature, or improving documentation, your work will be used in real-world applications.
630
+ * **Make a Tangible Impact:** Whether you're fixing a bug, adding a new feature, or improving documentation, your work will be used in real-world applications.
518
631
 
519
- * 📚 **Learn and Grow:** Gain hands-on experience with advanced AI concepts and strengthen your software engineering skills.
632
+ * **Learn and Grow:** Gain hands-on experience with advanced AI concepts and strengthen your software engineering skills.
520
633
 
521
634
  Discover more about our mission and the benefits of becoming a contributor in our official [**Contributor's Guide**](https://docs.swarms.world/en/latest/contributors/main/).
522
635
 
@@ -524,13 +637,13 @@ Discover more about our mission and the benefits of becoming a contributor in ou
524
637
 
525
638
  We've made it easy to start contributing. Here's how you can help:
526
639
 
527
- 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 contributors.
640
+ 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 contributors.
528
641
 
529
- 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 Issues page.
642
+ 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 Issues page.
530
643
 
531
- 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 encourage you to read our guide on [**Code Cleanliness**](https://docs.swarms.world/en/latest/swarms/framework/code_cleanliness/).
644
+ 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 encourage you to read our guide on [**Code Cleanliness**](https://docs.swarms.world/en/latest/swarms/framework/code_cleanliness/).
532
645
 
533
- 4. **Join the Discussion:** To participate in roadmap discussions and connect with other developers, join our community on [**Discord**](https://discord.gg/jM3Z6M9uMq).
646
+ 4. **Join the Discussion:** To participate in roadmap discussions and connect with other developers, join our community on [**Discord**](https://discord.gg/jM3Z6M9uMq).
534
647
 
535
648
 
536
649
  ### ✨ Our Valued Contributors
@@ -577,6 +690,4 @@ If you use **swarms** in your research, please cite the project by referencing t
577
690
 
578
691
  # License
579
692
 
580
- APACHE
581
-
582
-
693
+ Swarms is licensed under the Apache License 2.0. [Learn more here](./LICENSE)
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
5
5
 
6
6
  [tool.poetry]
7
7
  name = "swarms"
8
- version = "7.9.7"
8
+ version = "7.9.8"
9
9
  description = "Swarms - TGSC"
10
10
  license = "MIT"
11
11
  authors = ["Kye Gomez <kye@apac.ai>"]
@@ -86,7 +86,7 @@ swarms = "swarms.cli.main:main"
86
86
 
87
87
  [tool.poetry.group.lint.dependencies]
88
88
  black = ">=23.1,<26.0"
89
- ruff = ">=0.5.1,<0.11.14"
89
+ ruff = ">=0.5.1,<0.12.3"
90
90
  types-toml = "^0.10.8.1"
91
91
  types-pytz = ">=2023.3,<2026.0"
92
92
  types-chardet = "^5.0.4.6"