Class: SmartBrain::Server::HttpApp
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- SmartBrain::Server::HttpApp
- Defined in:
- lib/smart_brain/server/http_app.rb
Overview
Minimal JSON HTTP API over a Service. Endpoints:
POST /commit { session_id, turn_events }
POST /compose { session_id, user_message, agent_state? }
POST /search { session_id, query, limit? }
GET /status
POST /migrate
Class Attribute Summary collapse
-
.service ⇒ Object
Returns the value of attribute service.
Class Attribute Details
.service ⇒ Object
Returns the value of attribute service.
17 18 19 |
# File 'lib/smart_brain/server/http_app.rb', line 17 def service @service end |