Ceylon is an advanced multi-agent platform specifically developed for Ceylon Aritficial Intelligence.
Project description
Ceylon: Multi Agent Framework
Empowering Collaboration, Simplifying Complexity
Introduction
Welcome to Ceylon: A Multi-Agent System (MAS) designed to orchestrate complex task flows among multiple AI agents. Ceylon manages and automates interactions between agents, each with specific roles and responsibilities, enabling powerful collaborative AI solutions. By empowering collaboration and simplifying complexity, Ceylon opens up new possibilities in AI-driven task automation and problem-solving.
🚀 Key Features
- Agent Management: Easily define and manage agents with specific roles and tools.
- Task Automation: Automate task flow based on agent input and predefined sequences.
- Scalability: Handle multiple agents and complex workflows with ease.
- Customization: Highly adaptable to fit diverse use cases.
- Distributed Architecture: Developed as a robust distributed system.
- Efficient Message Propagation: Utilizes a powerful framework for reliable inter-agent communication.
- Interoperability and Performance: Ensures seamless operation across different programming languages while providing memory safety and high performance.
- Chief Agent Leadership: Centralized task management and execution flow.
- Parallel or Sequential Execution: Adapt to your task's needs.
- Customizable I/O: Define inputs and outputs tailored to your requirements.
- Versatile Deployment: Run as a server or standalone application.
🌟 Why Ceylon?
Ceylon pushes the boundaries of what's possible in task automation and AI collaboration. It's not just another framework; it's a new paradigm for solving complex problems.
- Achieve the Impossible: Tackle tasks that traditional single-agent or monolithic systems can't handle.
- Flexible Architecture: Easily adapt to various use cases, from customer support to market analysis.
- Scalable Performance: Distribute workload across multiple agents for improved efficiency.
- Rich Interaction: Agents share information, creating a truly collaborative AI ecosystem.
🛠️ Use Cases
- Automated customer support systems
- Intelligent meeting schedulers
- Real-time stock market analysis
- AI-driven content creation pipelines
- Complex data processing and decision-making systems
🚦 Getting Started
Here's a simple example of how to use Ceylon to create a multi-agent system for a trading decision process:
from ceylon import Agent, AgentJobStepRequest, AgentJobResponse, JobRequest, JobSteps, Step, RunnerAgent
class TechnicalAnalysisAgent(Agent):
async def execute_request(self, request: AgentJobStepRequest) -> AgentJobResponse:
return AgentJobResponse(
worker=self.details().name,
job_data={"MA": 100.0, "EMA": 200.0}
)
class NewsSentimentAgent(Agent):
async def execute_request(self, request: AgentJobStepRequest) -> AgentJobResponse:
return AgentJobResponse(
worker=self.details().name,
job_data={"sentiment": "Positive"}
)
class DecisionMakerAgent(Agent):
async def execute_request(self, request: AgentJobStepRequest) -> AgentJobResponse:
return AgentJobResponse(
worker=self.details().name,
job_data={"trade": True}
)
# Create agent instances
ta_agent = TechnicalAnalysisAgent(name="ta", role="Technical Analyst")
news_agent = NewsSentimentAgent(name="news", role="News Analyst")
decision_agent = DecisionMakerAgent(name="decision", role="Decision Maker")
# Create the runner agent
chief = RunnerAgent(workers=[ta_agent, news_agent, decision_agent])
# Define the job
job = JobRequest(
title="Trading Decision",
explanation="Analyze market data and make a trading decision",
steps=JobSteps(steps=[
Step(worker="ta", explanation="Perform technical analysis", dependencies=[]),
Step(worker="news", explanation="Analyze news sentiment", dependencies=[]),
Step(worker="decision", explanation="Make trading decision", dependencies=["ta", "news"])
])
)
# Execute the job
result = chief.execute(job)
print(result)
This example demonstrates how to:
- Define custom agents for different tasks
- Create a runner agent to orchestrate the process
- Define a job with multiple steps and dependencies
- Execute the job and get the result
Examples
- Example Example
- Colab Scripts
Tutorials
- Collaborative AI Workflow: Using Ceylon Framework for Streamlined Article Creation
- A Meeting Scheduler with Ceylon - Multi Agent System
🚧 Todo
- LLM Agent Stack
- Job Handling (parallel & sequential)
- Web Agent
- Agent Registry
🤝 Contributing
We welcome contributions! Please read our contributing guidelines before submitting a pull request.
📄 License
Ceylon is released under the Apache-2.0 license. See the LICENSE file for details.
📞 Contact
For questions or support, please contact us at support@ceylon.ai.
Built with ☕ by the Ceylon Team. Star us on GitHub if you find this interesting!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for ceylon-0.15.13-py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6a8216eccdec20d7aae8bad5d5aff1c5b16b530867b61834e3c8616c258ccea |
|
MD5 | 4ee81926e1e1df3d9e93ee5ae4470cf7 |
|
BLAKE2b-256 | 73bf492e54dd8d83151617fe82e5d2c3af402808fff51884431c6effb46bf94f |
Hashes for ceylon-0.15.13-py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70ee84f9b4848650eceb56680013086caea47ddc0830ec821bea198c5cc50715 |
|
MD5 | 79e83b38b393d7ae55c0556c50994890 |
|
BLAKE2b-256 | 6f3af59a9e60a3fc7ba9618e7003daaae18e3fa64a6872455ea5f2bb82da4a09 |
Hashes for ceylon-0.15.13-py3-none-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f829c19d1a89837924796d34f71215ee4853143491c9bdc83352f7001462c64f |
|
MD5 | 8924a703f414a35e2fe580bb5dafcec8 |
|
BLAKE2b-256 | c5c7afb0a0daa1788731a56a12b955c3c7a5d91ca4cf07679a14eb600b57817e |
Hashes for ceylon-0.15.13-py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3f8f8e86c840577ab2070366933f40efc09b19bc2ec7be863ce51a0e38d3ae |
|
MD5 | 186be8e1f6a470fcf2e2a8a95cbb57d4 |
|
BLAKE2b-256 | 4c61c141ced5efcef68d61dc342a1743c229f5809a52ae47c579e18d7784dc46 |
Hashes for ceylon-0.15.13-py3-none-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a78eb52198c17fe829655b009b25536e9568082a0b67fd20087b48da1d49f129 |
|
MD5 | e671cb5d15b18a584e3cf99fa0639bf1 |
|
BLAKE2b-256 | 9eaba2ceace018a8ad88a9ea5cf0abe16a2f45129318b2aea40efbdcc9668be1 |