Execute a reasoning query using the NSR engine.
This is the primary endpoint for performing neural-symbolic reasoning…
POST
This is the primary endpoint for performing neural-symbolic reasoning.
It accepts a query string and optional parameters to control the reasoning
process, including strategy selection and configuration overrides.
Request Body
Execute a reasoning query.
Required scope:
query: The question or goal to reason aboutstrategy: Optional reasoning strategy (SymbolicFirst, NeuralFirst, Hybrid, Ensemble, Cascading)session_id: Optional session ID for context continuityoptions: Optional configuration overrides (max_depth, confidence_threshold, neural_weight) Response Returns aReasonResponsecontaining:answer: The reasoning resultconfidence: Confidence score (0.0-1.0)explanation: Human-readable explanation of the reasoning pathsession_id: Session ID for follow-up queries Errors400 Bad Request: Invalid input (empty query, exceeds max length)500 Internal Server Error: Reasoning engine failure Example Example (curl)
write
Request body
ReasonRequest
string
Optional RFC3339 timestamp for time-travel reasoning against a historical KB snapshot
boolean
Include evidence/citation objects in the response
object
Optional pre-compiled IR. Provide exactly one of
query or ir.object
string
The query to reason about
string
Session ID for context persistence
object
Response
ReasonResponse
string
The answer to the query
number (float)
required
Confidence score (0.0 to 1.0)
any[]
Optional evidence/citation objects supporting the answer
object
Detailed explanation of reasoning steps
ResponseMetadata
required
string
required
Type of reasoning used (symbolic, neural, hybrid)
string
Session ID for follow-up queries