Multi-agents
Collective Intelligence, Amplified Performance
Multi-agent workflows are systems or processes managed by multiple autonomous agents. These agents can collaborate, communicate, and divide tasks to achieve a shared goal. Each agent is usually designed to specialize in specific tasks, and their collective effort ensures the completion of complex workflows that might be difficult for a single agent to handle.
Some examples of multi-agent workflows include:
Business Process Automation: Automating repetitive tasks such as invoice processing, where different agents handle scanning, validation, and data entry.
Customer Service: Agents managing inquiries, where one handles general FAQs while another handles account-specific issues.
Supply Chain Management: Coordinating multiple agents for inventory tracking, shipment scheduling, and supplier communication.
AI Research: Collaboration between agents for data preprocessing, model training, and performance evaluation.
CrewAI is a platform designed to streamline such workflows, while Cortecs can bring the GPU power needed to power them.
Agents with CrewAI
As cortecs is OpenAI-compatible, it works out-of-the-box with CrewAI. Follow the basic example from their docs and put you cortecs credentials into the .env
file. As outlined in the complementary liteLLM docs prepend 'openai/' to your model's URL. This indicates that you are using an OpenAI-compatible endpoint.
Dynamic crews
In some cases you might want to start extensive processes with many agent. With dedicated inference you avoid running into request limits.
Adjust the basic example
You can use cortecs-py to start a model and build your agents on top of it. To ensure you are dynamically provisioning your resources and shutting them down as soon as they are not needed, add the following code to the ExampleCrew
class.
Executing crewai run
in your project root will:
Start the model as specified in the .env
Kickoff your crew
Shut down the model as soon as crew is finished
The full code example is provided on GitHub.
Last updated