Skip to content

[BUGF] removed execute-swarms-router because it was not handled - #1210

Merged
kyegomez merged 2 commits into
kyegomez:masterfrom
Steve-Dusty:master
Nov 18, 2025
Merged

[BUGF] removed execute-swarms-router because it was not handled#1210
kyegomez merged 2 commits into
kyegomez:masterfrom
Steve-Dusty:master

Conversation

@Steve-Dusty

@Steve-Dusty Steve-Dusty commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Removed from docs and removed from

execution_types = [
    "return-agents",
    "return-swarm-router-config",
    "return-agents-objects",
]

because

 def run(self, task: str, *args, **kwargs):
        """Run the swarm on a given task.

        Args:
            task (str): The task to execute
            *args: Additional positional arguments
            **kwargs: Additional keyword arguments

        Returns:
            Any: The result of the swarm execution

        Raises:
            Exception: If there's an error during execution
        """
        try:

            if self.execution_type == "return-agents":
                return self.create_agents(task)
            elif self.execution_type == "return-swarm-router-config":
                return self.create_router_config(task)
            elif self.execution_type == "return-agents-objects":
                agents = self.create_agents(task)
                return self.create_agents_from_specs(agents)
            else:
                raise ValueError(
                    f"Invalid execution type: {self.execution_type}"
                )

        except Exception as e:
            logger.error(
                f"AutoSwarmBuilder: Error in swarm execution: {str(e)} Traceback: {traceback.format_exc()}",
                exc_info=True,
            )
            raise e

didn't handle it


📚 Documentation preview 📚: https://swarms--1210.org.readthedocs.build/en/1210/

@github-actions github-actions Bot added documentation Improvements or additions to documentation structs labels Nov 18, 2025
@kyegomez
kyegomez merged commit d018b00 into kyegomez:master Nov 18, 2025
8 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation structs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants