pull/1022/head
harshalmore31 2 weeks ago
parent 14dcc612dc
commit 9f41450909

@ -5,6 +5,7 @@ The `AgentLoader` is a powerful utility for creating Swarms agents from markdown
## Overview ## Overview
The AgentLoader enables you to: The AgentLoader enables you to:
- Load single agents from markdown files with YAML frontmatter - Load single agents from markdown files with YAML frontmatter
- Load multiple agents from directories or file lists with concurrent processing - Load multiple agents from directories or file lists with concurrent processing
- Parse Claude Code sub-agent YAML frontmatter configurations - Parse Claude Code sub-agent YAML frontmatter configurations
@ -43,6 +44,7 @@ the subagent should follow.
``` ```
**Schema Fields:** **Schema Fields:**
- `name` (required): Your sub-agent name - `name` (required): Your sub-agent name
- `description` (required): Description of when this subagent should be invoked - `description` (required): Description of when this subagent should be invoked
- `model_name` (optional): Name of model (defaults to random selection if not provided) - `model_name` (optional): Name of model (defaults to random selection if not provided)
@ -229,7 +231,7 @@ except Exception as e:
### Multi-Core Performance ### Multi-Core Performance
The AgentLoader utilizes **100% of CPU cores** for concurrent agent loading, providing significant performance improvements when processing multiple markdown files: The AgentLoader utilizes 100% of CPU cores for concurrent agent loading, providing significant performance improvements when processing multiple markdown files:
```python ```python
from swarms.utils import load_agents_from_markdown from swarms.utils import load_agents_from_markdown
@ -445,6 +447,7 @@ When analyzing financial situations:
## Support ## Support
For questions and support: For questions and support:
- GitHub Issues: [https://github.com/kyegomez/swarms/issues](https://github.com/kyegomez/swarms/issues) - GitHub Issues: [https://github.com/kyegomez/swarms/issues](https://github.com/kyegomez/swarms/issues)
- Documentation: [https://docs.swarms.world](https://docs.swarms.world) - Documentation: [https://docs.swarms.world](https://docs.swarms.world)
- Community: Join our Discord for real-time support - Community: Join our Discord for real-time support
Loading…
Cancel
Save