A protocol for building business AI agents with MCP integration
Project description
Oflo AI Agent Protocol
A powerful protocol for building business AI agents with seamless integration with MCP (Multi-Cloud Protocol), supporting multiple LLMs and multi-modal capabilities.
Features
- 🤖 Flexible Agent Architecture: Build custom AI agents with a standardized interface
- 🔌 MCP Integration: Seamless integration with Multi-Cloud Protocol
- 🧠 Multi-LLM Support: Works with OpenAI, Anthropic, and other LLM providers
- 📱 Multi-Modal: Handle text, images, and other data types
- 🏭 Agent Factory: Easy agent creation and management
- 🔄 State Management: Built-in memory and conversation history
- 🛠️ Tool Integration: Easy integration with external tools and APIs
- 🔒 Security: Built-in security features and best practices
Installation
pip install oflo-ai-agent-protocol
For development:
pip install oflo-ai-agent-protocol[dev]
For documentation:
pip install oflo-ai-agent-protocol[docs]
Quick Start
from oflo_agent_protocol import BaseAgent, Message
class MyAgent(BaseAgent):
def __init__(self):
super().__init__(name="MyAgent", purpose="A custom business agent")
async def process_message(self, message: Message) -> Message:
# Your custom message processing logic here
return Message(role="assistant", content="Hello from MyAgent!")
# Create and initialize the agent
agent = MyAgent()
await agent.initialize()
# Process a message
response = await agent.process_message("Hello!")
print(response.content) # Output: Hello from MyAgent!
Examples
Check out our example implementations:
- Ping Pong Agent: Simple example of agent communication
- Marketing Agent: AI agent for marketing tasks
- Sales Agent: AI agent for sales automation
- Revenue Agent: AI agent for revenue optimization
- Trader Agent: AI agent for trading strategies
Cloudflare Worker Deployment
Deploy your Oflo Agent as a Cloudflare Worker:
- Install Wrangler:
npm install -g wrangler
- Configure your worker:
cd examples/marketing-oflo/worker
wrangler dev # For local development
wrangler publish # For production deployment
Documentation
Full documentation is available at https://docs.oflo.ai/agent-protocol
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oflo_ai_agent_protocol-0.1.0.tar.gz.
File metadata
- Download URL: oflo_ai_agent_protocol-0.1.0.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
532a1342de5d0e7f31df4986dc01e2e3c6439ad29e4e09cb1f0c34d372837d7f
|
|
| MD5 |
32e8a47114f46adcc811c630679b5d27
|
|
| BLAKE2b-256 |
22cb6e90d3af8d86841d65c8a08f130074f428870346c72791125b965dffac8b
|
File details
Details for the file oflo_ai_agent_protocol-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oflo_ai_agent_protocol-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9d436f0eda6b7337afc6b97898f45a3fbd98a6ad30fa40c1c81113f2a26f923
|
|
| MD5 |
74236d507302758761b186c08e94d629
|
|
| BLAKE2b-256 |
672f3fbc37ee5e9d975860e630f360d78052a652d34e9ef6d310ddcc667697b8
|