Use the Arena Project Editor
The Project Editor provides an in-browser development environment for creating and testing Arena projects. It includes a Monaco-based YAML editor, file management, real-time validation, and interactive agent testing.
Prerequisites
Section titled “Prerequisites”- Enterprise features enabled (
enterprise.enabled=true) - PromptKit LSP enabled for validation (
enterprise.promptkitLsp.enabled=true) - A workspace with Editor or Admin role
Accessing the Project Editor
Section titled “Accessing the Project Editor”- Open the Omnia Dashboard
- Navigate to your workspace
- Go to Arena > Projects
- Click New Project or select an existing project
Creating a New Project
Section titled “Creating a New Project”From a Template
Section titled “From a Template”The easiest way to start is from a template:
- Click New Project
- Select From Template
- Browse available templates by category
- Select a template and click Use Template
- Fill in the template variables:
- Project Name: A unique name for your project
- Custom Variables: Template-specific settings
- Click Create Project
The template will be rendered with your variables and saved to the workspace.
From Scratch
Section titled “From Scratch”To create an empty project:
- Click New Project
- Select Blank Project
- Enter a project name
- Click Create
You’ll start with a minimal project structure that you can build upon.
Project Editor Interface
Section titled “Project Editor Interface”File Tree
Section titled “File Tree”The left sidebar shows your project files:
- Single-click a file to open it in the editor
- Right-click for context menu options:
- Create new file or folder
- Rename or delete
- Import provider or tool configuration
Monaco Editor
Section titled “Monaco Editor”The central editor provides:
- Syntax highlighting for YAML, JSON, and Markdown
- Auto-completion for PromptKit configuration
- Inline validation with error markers
- Multiple tabs for editing several files
Problems Panel
Section titled “Problems Panel”The bottom panel shows validation issues:
- Errors (red): Must be fixed before running
- Warnings (yellow): Best practice suggestions
- Info (blue): Helpful hints
Click a problem to jump to its location in the editor.
File Types
Section titled “File Types”Arena projects use the PromptKit format:
arena.config.yaml
Section titled “arena.config.yaml”Main configuration file defining the agent:
name: my-chatbotversion: 1.0.0
provider: type: openai model: gpt-4
prompts: - id: default file: prompts/main.yaml
tools: - name: get_weather type: http endpoint: http://weather-api/weatherPrompt Files (prompts/*.yaml)
Section titled “Prompt Files (prompts/*.yaml)”Define system prompts and conversation templates:
id: defaultname: Main Promptversion: 1.0.0
system_template: | You are a helpful assistant named {{ .agentName }}. Be concise and friendly.
user_template: | {{ .input }}Scenario Files (scenarios/*.yaml)
Section titled “Scenario Files (scenarios/*.yaml)”Define test cases for evaluation:
name: greeting-testdescription: Test basic greeting behavior
steps: - input: "Hello!" assertions: - type: contains value: "Hello" - type: not_contains value: "error"See the PromptKit documentation for the complete configuration reference.
Importing Resources
Section titled “Importing Resources”Import a Provider
Section titled “Import a Provider”To use a workspace Provider in your project:
- Right-click in the file tree
- Select Import Provider
- Choose from available providers in the workspace
- The provider configuration will be added to your
arena.config.yaml
Import a Tool Registry
Section titled “Import a Tool Registry”To add tools from a ToolRegistry:
- Right-click in the file tree
- Select Import Tool
- Choose from available tool registries
- Select specific tools to import
Validation
Section titled “Validation”Real-Time Validation
Section titled “Real-Time Validation”When PromptKit LSP is enabled, validation runs as you type:
- Schema validation for all configuration files
- Reference checking (prompts, tools, providers)
- Template variable validation
Validate All
Section titled “Validate All”Click the Validate button in the toolbar to run full validation:
- All files are checked against PromptKit schemas
- Cross-file references are verified
- Results appear in the Problems panel
Common Validation Errors
Section titled “Common Validation Errors”| Error | Cause | Fix |
|---|---|---|
Unknown property | Typo or invalid field | Check PromptKit schema |
Missing required field | Required field not set | Add the required field |
Invalid reference | Referenced resource not found | Check file path or ID |
Type mismatch | Wrong value type | Use correct type (string, number, etc.) |
Testing Your Agent
Section titled “Testing Your Agent”Interactive Testing (Dev Console)
Section titled “Interactive Testing (Dev Console)”Test your agent in real-time with the Dev Console:
- Click Test Agent in the toolbar
- Select a provider from your workspace
- Wait for the dev console to initialize
- Type messages to chat with your agent
- View tool calls and responses in real-time
The Dev Console supports:
- Hot reload: Changes are applied without disconnecting
- Tool visibility: See tool calls and results
- File attachments: Test multi-modal capabilities
- Provider switching: Try different providers
Running Evaluations
Section titled “Running Evaluations”To run automated tests:
- Click Deploy to create an ArenaSource from your project
- Click Run and select a job type:
- Evaluation: Run scenario tests
- Load Test: Performance testing
- Data Generation: Generate synthetic data
- View results in the Results panel
Saving and Deploying
Section titled “Saving and Deploying”Save Changes
Section titled “Save Changes”Changes are auto-saved, but you can also:
- Press
Ctrl+S/Cmd+Sto save immediately - Click Save in the toolbar
Deploy to ArenaSource
Section titled “Deploy to ArenaSource”To deploy your project for ArenaJob execution:
- Ensure all validation errors are fixed
- Click Deploy in the toolbar
- The project is packaged and deployed as an ArenaSource
Check Deployment Status
Section titled “Check Deployment Status”After deploying:
- The Deploy button shows deployment status
- Green indicator = successfully deployed
- Click to view ArenaSource details
Keyboard Shortcuts
Section titled “Keyboard Shortcuts”| Shortcut | Action |
|---|---|
Ctrl/Cmd + S | Save file |
Ctrl/Cmd + P | Quick open file |
Ctrl/Cmd + Shift + P | Command palette |
Ctrl/Cmd + / | Toggle comment |
F2 | Rename symbol |
Ctrl/Cmd + . | Quick fix |
Ctrl/Cmd + Space | Trigger suggestions |
Best Practices
Section titled “Best Practices”Project Organization
Section titled “Project Organization”my-project/├── arena.config.yaml # Main configuration├── prompts/│ ├── main.yaml # Primary prompt│ └── error.yaml # Error handling prompt├── scenarios/│ ├── happy-path.yaml # Success scenarios│ └── edge-cases.yaml # Edge case tests└── README.md # Project documentationVersion Control
Section titled “Version Control”Projects are stored in the workspace filesystem. Consider:
- Using descriptive project names
- Documenting changes in README.md
- Exporting projects for external version control
Testing Strategy
Section titled “Testing Strategy”- Start with the Dev Console: Quick iteration on prompts
- Add scenario tests: Capture expected behaviors
- Run evaluations: Automated testing across scenarios
- Monitor results: Track quality over time
Troubleshooting
Section titled “Troubleshooting”Editor Not Loading
Section titled “Editor Not Loading”If the editor doesn’t load:
- Check browser console for errors
- Verify enterprise features are enabled
- Ensure you have workspace access
Validation Not Working
Section titled “Validation Not Working”If validation is missing:
- Check that
promptkitLsp.enabled=truein Helm values - Verify the LSP service is running:
Terminal window kubectl get pods -l app=promptkit-lsp - Check LSP logs for errors
Dev Console Not Connecting
Section titled “Dev Console Not Connecting”If the Test Agent feature fails:
- Verify the workspace has at least one Provider
- Check ArenaDevSession was created:
Terminal window kubectl get arenadevsession -n <workspace-ns> - Check dev console pod logs
Deploy Failing
Section titled “Deploy Failing”If deployment fails:
- Fix all validation errors first
- Check workspace filesystem permissions
- Verify ArenaSource controller is running
Related Resources
Section titled “Related Resources”- ArenaTemplateSource CRD: Template source configuration
- ArenaDevSession CRD: Interactive testing sessions
- Monitor Arena Jobs: Track evaluation progress
- PromptKit Documentation: Configuration reference