Sync Module
The Sync module enables you to synchronize agents from Python code directly to the Erdo platform, eliminating the need for CLI commands in your Python workflows.Installation & Setup
Basic Usage
Sync Single Agent
Sync from File
Sync from Directory
API Reference
Sync Class
SyncResult
Advanced Usage
Custom Configuration
Error Handling
Batch Operations
File Discovery
The sync module automatically discovers and extracts agents from Python files:Supported Patterns
Exclusion Patterns
Integration Examples
Jupyter Notebook
CI/CD Pipeline
Development Workflow
Best Practices
- Descriptive Names: Use clear, descriptive agent names that reflect their purpose
- Error Handling: Always check sync results and handle errors gracefully
- File Organization: Keep agents in dedicated directories (e.g.,
agents/) - Version Control: Commit agent files to version control for team collaboration
- Testing: Test agents immediately after syncing to catch issues early
- Batch Operations: Use directory sync for multiple agents to improve efficiency