changed docs for agent rearrange #1219
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update AgentRearrange Documentation
Summary
Updated the
agent_rearrange2.mddocumentation file to include all missing features and methods from theAgentRearrangePython implementation. The documentation now accurately reflects all public methods, internal methods, and features available in theswarms/structs/agent_rearrange.pyfile.Changes Made
Added Missing Methods
reliability_check(self)- Public method documentationValueErrorif validation failstrack_history(self, agent_name: str, result: str)- Public method documentationEnhanced Existing Documentation
__init__method - Added note about automaticreliability_check()call during initializationset_custom_flow()method - Added note about flow validation on next executionInternal Methods section - Expanded with:
_run()method'scustom_tasksparameter (Dict[str, str] for per-agent task customization)_serialize_callable()- Helper for serializing callable attributes_serialize_attr()- Helper for serializing individual attributes with non-serializable object handlingUpdated examples -
📚 Documentation preview 📚: https://swarms--1219.org.readthedocs.build/en/1219/