Class: SimpleAcp::Server::App

Inherits:
Roda
  • Object
show all
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

Class Method Details

.configure(server) ⇒ void

This method returns an undefined value.

Configure the Roda app with a server instance.

Parameters:



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.

Returns:



41
42
43
# File 'lib/simple_acp/server/app.rb', line 41

def self.server
  @server
end