Creating Routines in Ax
Learn how to create and manage routines in Ax to automate your code generation tasks.
Getting Started
- 1. Navigate to the Dashboard
- 2. Click on Routines in the left sidebar
- 3. Select "Create Routine"
Creating a New Routine
Code Creation Options
You have two flexible ways to create your routine:
AI-Assisted Generation
- • Enter your requirements in the prompt field
- • Click "Generate" to let AI create the code for you
- • Modify the generated code as needed
Manual Code Entry
- • Write your Python code directly in the editor
- • Perfect for when you have pre-written routines
- • Supports full Python syntax and formatting
Code Management
The interface offers two main tabs:
- • Code: Where you write or generate your Python code
- • Requirements: Where you can specify any dependencies or requirements
Testing Your Code
✨
Instant Testing Feature:
- • Click "Run Code" to execute and test your routine directly in the browser
- • See immediate results without leaving the page
- • Debug and iterate quickly with real-time feedback
- • Perfect for validating your routine's functionality
Additional Features
Tags
- • Add tags to organize your routines
- • Click the "Add a tag..." field
- • Press enter to add each tag
- • Tags help you categorize and find routines easily
Connected Agents
The Connected Agents panel helps you track routine dependencies:
- • View which agents are currently using this routine
- • Track impact analysis before making code changes
- • See "No Agents Connected" if the routine isn't used in any swarms yet
- • Helps prevent unintended side effects when modifying routines
💡
Impact Analysis Tip:
Always check the Connected Agents panel before modifying a routine to understand which agents might be affected by your changes.