AlquimiaRunner
TheAlquimiaRunner executes test datasets against Alquimia AI agents.
Setup
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
base_url | str | Yes | Alquimia API base URL |
api_key | str | Yes | API authentication key |
agent_id | str | Yes | Target agent ID |
channel_id | str | Yes | Communication channel ID |
api_version | str | No | API version string |
Methods
run_batch
Execute a single test case:updated_batch: Batch withassistantfield filledsuccess: Boolean indicating successexec_time: Execution time in milliseconds
run_dataset
Execute all tests in a dataset:updated_dataset: Dataset with all responsessummary: Execution statistics
Execution Summary
Complete Example
Environment Variables
Create a.env file:
Error Handling
With Storage
Combine with storage backends:Next Steps
Custom Runners
Create your own runner
Storage
Learn about storage backends