Note : Framework was developed swiftly as an experiment, leading to initial imperfections. We're committed to enhancing its stability and structure in upcoming releases, ensuring a high-quality. We encourage contributions from everyone, aiming to advance the project further together.
Lyzr Automata is a sophisticated multi-agent automation framework designed to keep things simple, with a focus on workflow efficiency and effectiveness. It enables the creation of multiple agents that are coupled with specific tasks. The agents and tasks can run independently and complete the provided instructions, thus entering a stable state.
You can install our package simply by running
To make things very simple, we have split our framework into fundamental building blocks.
- Models
- Agents
- Tools
- Tasks
- Pipelines
Models are the core unit of the framework, which helps you connect different LLM or other AI Models to workflows.
Note: You can use our prebuilt model classes for OpenAI and Perplexity or extend our base AIModel class to provide support for your own models.
1.1 Let's look at an example to create a OpenAI Model with parameters
1.2 Let's look at an example to create a Perplexity Model with parameters
Agents are directed specialists which have a set role, persona and memory, they are used to set direction and expertise for LLM models to increase its effectiveness.
2.1 Let's look at an example to create a simple linkedin content creator agent.
Tools are used by Agents to complete tasks. In general sense tools help agents to connect with external software components like API's or other functions.
Note: You can use our pre-built tools or tools from other providers like Llama Hub. Optionally you can also use our base Tool class to create your own custom tool by providing the function, input and output Pydantic models.
3.1 Let's look at an example to use prebuilt linkedin post tool
3.2 Let's look at an example to use our tool class to create your own custom tool
Tasks are our smallest functioning unit/node that helps you define what do you want to get done by the agent. It combines agent & tools.
4.1 Let's look at an example, on how you can define a task
4.1 Let's look at an example, on how you can create a tool task
Pipelines help us run the tasks in a directed orderly fashion. Currently we support linear async pipeline, with plans to release async DAG pipelines in next versions.
Let us look at a simple sync flow to create a pipeline for automated Linkedin post.
5.1 Flow
5.2 Code
Example Colabs
- Linkedin Post Automation: https://colab.research.google.com/drive/1lVJrdjHVZjbwZSqwJEU_etHC4GM3ihD0?usp=sharing
- Blog Automation: https://colab.research.google.com/drive/1e1Qa2pRjbngvX683pXTFLyuqLK11g967?usp=sharing#scrollTo=TmBixqI_BULu
For queries, reach us at [email protected]