Installation¶
Requirements¶
- Ruby 3.0 or later
- Bundler (recommended)
Basic Installation¶
Using Bundler (Recommended)¶
Add SimpleAcp to your Gemfile:
Then install dependencies:
Direct Installation¶
Install the gem directly:
Optional Dependencies¶
SimpleAcp has optional dependencies for different storage backends:
Redis Storage¶
For distributed deployments with Redis:
PostgreSQL Storage¶
For persistent storage with PostgreSQL:
Verifying Installation¶
Create a simple test file to verify the installation:
# test_install.rb
require 'simple_acp'
server = SimpleAcp::Server::Base.new
server.agent("test") do |context|
SimpleAcp::Models::Message.agent("SimpleAcp is working!")
end
puts "SimpleAcp version: #{SimpleAcp::VERSION}"
puts "Registered agents: #{server.agents.keys.join(', ')}"
Run it:
Dependencies¶
SimpleAcp depends on these gems (automatically installed):
| Gem | Purpose |
|---|---|
roda |
HTTP routing and request handling |
falcon |
Fiber-based web server for efficient concurrency |
async |
Asynchronous I/O framework |
faraday |
HTTP client for agent clients |
concurrent-ruby |
Thread-safe data structures |
Next Steps¶
Now that you have SimpleAcp installed, proceed to the Quick Start guide to create your first agent.