Class: Ask::ACP::Server
- Inherits:
-
Object
- Object
- Ask::ACP::Server
- Defined in:
- lib/ask/acp/server.rb
Overview
ACP server that lets a Ruby agent speak the Agent Client Protocol over stdio.
Handles the JSON-RPC 2.0 transport, method dispatch, and streaming responses. Subclass and implement the method handlers you need.
Instance Method Summary collapse
-
#initialize ⇒ Server
constructor
A new instance of Server.
-
#run ⇒ Object
Start reading from stdin and processing requests.
Constructor Details
#initialize ⇒ Server
Returns a new instance of Server.
25 26 27 28 |
# File 'lib/ask/acp/server.rb', line 25 def initialize @methods = {} register_defaults end |