swarms 7.5.8__tar.gz → 7.6.0__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.
- {swarms-7.5.8 → swarms-7.6.0}/PKG-INFO +1 -1
- {swarms-7.5.8 → swarms-7.6.0}/pyproject.toml +1 -1
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/agent_builder.py +34 -19
- {swarms-7.5.8 → swarms-7.6.0}/LICENSE +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/README.md +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/__init__.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/__init__.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/agent_print.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/ape_agent.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/auto_generate_swarm_config.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/consistency_agent.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/create_agents_from_yaml.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/i_agent.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/openai_assistant.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/reasoning_agents.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/reasoning_duo.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/agents/tool_agent.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/artifacts/__init__.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/artifacts/main_artifact.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/cli/__init__.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/cli/create_agent.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/cli/main.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/cli/onboarding_process.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/__init__.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/accountant_swarm_prompts.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/ag_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/aga.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/agent_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/agent_prompts.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/agent_system_prompts.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/ai_research_team.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/aot_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/autobloggen.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/autoswarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/chat_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/code_interpreter.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/code_spawner.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/debate.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/documentation.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/education.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/finance_agent_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/finance_agent_sys_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/growth_agent_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/idea2img.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/legal_agent_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/logistics.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/meta_system_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/multi_modal_autonomous_instruction_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/multi_modal_prompts.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/multi_modal_visual_prompts.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/operations_agent_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/personal_stylist.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/product_agent_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/programming.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/project_manager.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/prompt_generator.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/prompt_generator_optimizer.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/python.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/react.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/reasoning_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/refiner_agent_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/sales.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/sales_prompts.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/security_team.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/self_operating_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/sop_generator_agent_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/summaries_prompts.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/support_agent_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/swarm_manager_agent.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/task_assignment_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/tests.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/tools.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/urban_planning.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/visual_cot.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/worker_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/prompts/xray_swarm_prompt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/schemas/__init__.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/schemas/agent_input_schema.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/schemas/agent_step_schemas.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/schemas/base_schemas.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/__init__.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/agent.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/agent_registry.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/agent_roles.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/agent_router.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/agent_security.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/agents_available.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/airflow_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/async_workflow.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/auto_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/auto_swarm_builder.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/base_structure.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/base_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/base_workflow.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/concat.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/concurrent_workflow.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/conversation.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/csv_to_agent.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/de_hallucination_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/graph_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/graph_workflow.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/groupchat.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/hiearchical_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/majority_voting.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/malt.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/matrix_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/meme_agent_persona_generator.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/mixture_of_agents.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/model_router.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/multi_agent_collab.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/multi_agent_exec.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/multi_agent_orchestrator.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/octotools.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/omni_agent_types.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/output_type.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/output_types.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/pulsar_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/queue_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/rearrange.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/round_robin.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/safe_loading.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/sequential_workflow.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/spreadsheet_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/stopping_conditions.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarm_arange.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarm_builder.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarm_eval.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarm_id_generator.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarm_load_balancer.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarm_matcher.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarm_output_type.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarm_registry.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarm_router.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarming_architectures.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/swarms_api.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/talk_hier.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/tree_swarm.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/utils.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/various_alt_swarms.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/structs/workspace_manager.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/telemetry/__init__.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/telemetry/bootup.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/telemetry/main.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/__init__.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/base_tool.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/cohere_func_call_schema.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/func_calling_utils.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/func_to_str.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/function_util.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/json_former.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/json_utils.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/logits_processor.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/openai_func_calling_schema_pydantic.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/openai_tool_creator_decorator.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/py_func_to_openai_func_str.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/pydantic_to_json.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/tool_parse_exec.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/tool_registry.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/tools/tool_utils.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/__init__.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/agent_ops_check.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/any_to_str.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/auto_download_check_packages.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/calculate_func_metrics.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/data_to_text.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/disable_logging.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/file_processing.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/formatter.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/function_caller_model.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/history_output_formatter.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/litellm_tokenizer.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/litellm_wrapper.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/loguru_logger.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/markdown_message.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/pandas_utils.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/parse_code.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/pdf_to_text.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/str_to_dict.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/swarm_reliability_checks.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/try_except_wrapper.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/visualizer.py +0 -0
- {swarms-7.5.8 → swarms-7.6.0}/swarms/utils/wrapper_clusterop.py +0 -0
@@ -1,13 +1,11 @@
|
|
1
1
|
import os
|
2
|
-
from typing import List, Optional, Tuple
|
2
|
+
from typing import Any, List, Optional, Tuple
|
3
3
|
|
4
4
|
from loguru import logger
|
5
5
|
from pydantic import BaseModel, Field
|
6
6
|
|
7
7
|
from swarms.structs.agent import Agent
|
8
|
-
from swarms.utils.any_to_str import any_to_str
|
9
8
|
from swarms.utils.function_caller_model import OpenAIFunctionCaller
|
10
|
-
from swarms.utils.litellm_tokenizer import count_tokens
|
11
9
|
|
12
10
|
BOSS_SYSTEM_PROMPT = """
|
13
11
|
# Swarm Intelligence Orchestrator
|
@@ -148,13 +146,18 @@ class AgentsBuilder:
|
|
148
146
|
description: str = "This is a swarm that creates swarms",
|
149
147
|
verbose: bool = True,
|
150
148
|
max_loops: int = 1,
|
149
|
+
model_name: str = "gpt-4o",
|
150
|
+
return_dictionary: bool = True,
|
151
|
+
system_prompt: str = BOSS_SYSTEM_PROMPT,
|
151
152
|
):
|
152
153
|
self.name = name
|
153
154
|
self.description = description
|
154
155
|
self.verbose = verbose
|
155
156
|
self.max_loops = max_loops
|
156
157
|
self.agents_pool = []
|
157
|
-
|
158
|
+
self.model_name = model_name
|
159
|
+
self.return_dictionary = return_dictionary
|
160
|
+
self.system_prompt = system_prompt
|
158
161
|
logger.info(
|
159
162
|
f"Initialized AutoSwarmBuilder: {name} {description}"
|
160
163
|
)
|
@@ -174,11 +177,11 @@ class AgentsBuilder:
|
|
174
177
|
The output from the swarm's execution
|
175
178
|
"""
|
176
179
|
logger.info(f"Running swarm on task: {task}")
|
177
|
-
agents
|
180
|
+
agents = self._create_agents(
|
178
181
|
task, image_url, *args, **kwargs
|
179
182
|
)
|
180
183
|
|
181
|
-
return agents
|
184
|
+
return agents
|
182
185
|
|
183
186
|
def _create_agents(self, task: str, *args, **kwargs):
|
184
187
|
"""Create the necessary agents for a task.
|
@@ -193,27 +196,32 @@ class AgentsBuilder:
|
|
193
196
|
"""
|
194
197
|
logger.info("Creating agents for task")
|
195
198
|
model = OpenAIFunctionCaller(
|
196
|
-
system_prompt=
|
199
|
+
system_prompt=self.system_prompt,
|
197
200
|
api_key=os.getenv("OPENAI_API_KEY"),
|
198
201
|
temperature=0.1,
|
199
202
|
base_model=Agents,
|
200
|
-
model_name=
|
203
|
+
model_name=self.model_name,
|
204
|
+
max_tokens = 8192,
|
201
205
|
)
|
202
206
|
|
203
207
|
agents_dictionary = model.run(task)
|
204
|
-
|
208
|
+
print(agents_dictionary)
|
209
|
+
|
210
|
+
print(type(agents_dictionary))
|
205
211
|
logger.info("Agents successfully created")
|
206
212
|
logger.info(f"Agents: {len(agents_dictionary.agents)}")
|
207
213
|
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
214
|
+
if self.return_dictionary:
|
215
|
+
logger.info("Returning dictionary")
|
216
|
+
|
217
|
+
# Convert swarm config to dictionary
|
218
|
+
agents_dictionary = agents_dictionary.model_dump()
|
219
|
+
return agents_dictionary
|
220
|
+
else:
|
221
|
+
logger.info("Returning agents")
|
222
|
+
return self.create_agents(agents_dictionary)
|
223
|
+
|
224
|
+
def create_agents(self, agents_dictionary: Any):
|
217
225
|
# Create agents from config
|
218
226
|
agents = []
|
219
227
|
for agent_config in agents_dictionary.agents:
|
@@ -235,7 +243,7 @@ class AgentsBuilder:
|
|
235
243
|
)
|
236
244
|
agents.append(agent)
|
237
245
|
|
238
|
-
return agents
|
246
|
+
return agents
|
239
247
|
|
240
248
|
def build_agent(
|
241
249
|
self,
|
@@ -278,3 +286,10 @@ class AgentsBuilder:
|
|
278
286
|
)
|
279
287
|
|
280
288
|
return agent
|
289
|
+
|
290
|
+
|
291
|
+
# if __name__ == "__main__":
|
292
|
+
# builder = AgentsBuilder(model_name="gpt-4o")
|
293
|
+
# agents = builder.run("Create a swarm that can write a book about the history of the world")
|
294
|
+
# print(agents)
|
295
|
+
# print(type(agents))
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|