Class: SimpleAcp::Server::App
- Inherits:
-
Roda
- Object
- Roda
- SimpleAcp::Server::App
- Defined in:
- lib/simple_acp/server/app.rb
Overview
Roda application implementing ACP HTTP endpoints.
Provides REST endpoints for agent discovery, run management, and session handling. Supports sync, async, and streaming modes.
Endpoints
- GET /ping - Health check
- GET /agents - List agents
- GET /agents/:name - Get agent manifest
- POST /runs - Create a run
- GET /runs/:id - Get run status
- POST /runs/:id - Resume awaited run
- POST /runs/:id/cancel - Cancel run
- GET /runs/:id/events - Get run events
- GET /session/:id - Get session info
Class Method Summary collapse
-
.configure(server) ⇒ void
Configure the Roda app with a server instance.
-
.server ⇒ Server::Base
Get the configured server instance.
Class Method Details
.configure(server) ⇒ void
This method returns an undefined value.
Configure the Roda app with a server instance.
34 35 36 |
# File 'lib/simple_acp/server/app.rb', line 34 def self.configure(server) @server = server end |
.server ⇒ Server::Base
Get the configured server instance.
41 42 43 |
# File 'lib/simple_acp/server/app.rb', line 41 def self.server @server end |