CrewAI Testing
Overview
CrewAI is an open-source framework designed to create multi-agent systems. Your agents work together in a Crew to complete their objectives. Once you have finished designing your Crew, you can easily deploy it on CrewAI. This will return the API Credentials and other information that is used to access your Crew in other programs.
What API Credentials does CrewAI Use?
To access and test a CrewAI System, two main credentials are required.
- API_URL
- Acts as the Base URL to access the Crew
- Used for GET and POST methods to access the Crew’s inputs and launch the Crew.
- Bearer Token
- Used for Authorization in accessing the Crew
Where do I find these Credentials?
These credentials are only generated once the Crew is successfully deployed to the CrewAI Platform. The Crew must also be online to access it.
To get the credentials, navigate to the CrewAI Plus dashboard and select the Automations Tab. You may now view the corresponding API URL and Bearer Token.
How do I start testing Crews with Asenion Web UI?
- Navigate to Asenion Web UI and log in with your credentials
- Select Configuration on the left tab
- Select Target Model in the top tab
- Scroll down to Add New Configuration and in the Target System Field dropdown, select CrewAI
- Input the API_URL, Bearer Token, and a Configuration Name
- Press the Add Configuration button
- Navigate to Testing on the left tab
- Choose your new CrewAI configuration from the Select Target System dropdown menu
- Input configurations such as storage configuration, probe categories, number of attempts per Probe, etc
- Press the Run Tests button
- You may now scroll down to view the results of the test or select Results in the left tab to view more details
For more details about testing with Asenion, you may navigate to Quick Start Guide
Summary
- To use your Crew in other applications, it must first be deployed on CrewAI Plus
- The Bearer Token and API URL are needed to access your Crew
- The API Credentials can be found in Automations on the CrewAI Plus dashboard
- Ensure the Crew is online as it may become inactive and need redeployment if unused for a while