Reasoning
Every registered reasoning instance operation, with source-derived inputs, outputs, access policy, and errors.
This reference covers 10 HTTP operations registered by the Akasha daemon. Call these paths on your instance base URL. See authentication, errors, and coverage before integrating.
| Method | Path | Operation |
|---|---|---|
POST | /v1/ns/retrieve | Ns retrieve |
POST | /v1/ns/retrieve_with_mode | Ns retrieve with mode |
POST | /v1/ns/paths/find | Ns paths find |
POST | /v1/ns/prefetch/start | Ns prefetch start |
POST | /v1/ns/prefetch/stop | Ns prefetch stop |
GET | /v1/ns/cache/stats | Ns cache stats |
GET | /v1/ns/history | Ns history |
GET | /v1/ns/rules | Ns rules |
POST | /v1/ns/rules/toggle | Ns rules toggle |
GET | /v1/ns/stats | Ns stats |
POST /v1/ns/retrieve
Ns retrieve
| Availability | Source contract |
|---|---|
| Registration | config.enable_neurosymbolic |
| Runtime service | neurosymbolic |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — NsRetrieveReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
text | String | Yes | |
mode | Option<String> | No; optional or defaulted | |
k | Option<usize> | No; optional or defaulted |
struct NsRetrieveReq {
text: String,
mode: Option<String>,
k: Option<usize>,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
resultErrors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9479. Registration: akasha-daemon/src/main.rs:4502.
POST /v1/ns/retrieve_with_mode
Ns retrieve with mode
| Availability | Source contract |
|---|---|
| Registration | config.enable_neurosymbolic |
| Runtime service | neurosymbolic |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — NsRetrieveReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
text | String | Yes | |
mode | Option<String> | No; optional or defaulted | |
k | Option<usize> | No; optional or defaulted |
struct NsRetrieveReq {
text: String,
mode: Option<String>,
k: Option<usize>,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
reqErrors and validation
Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9508. Registration: akasha-daemon/src/main.rs:4503.
POST /v1/ns/paths/find
Ns paths find
| Availability | Source contract |
|---|---|
| Registration | config.enable_neurosymbolic |
| Runtime service | neurosymbolic |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — NsPathsFindReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
start | String | Yes | |
end | String | Yes |
struct NsPathsFindReq {
start: String,
end: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
rErrors and validation
Directly referenced error variants: InvalidRequest. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9522. Registration: akasha-daemon/src/main.rs:4504.
POST /v1/ns/prefetch/start
Ns prefetch start
| Availability | Source contract |
|---|---|
| Registration | config.enable_neurosymbolic |
| Runtime service | neurosymbolic |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — NsPrefetchReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
query | String | Yes |
struct NsPrefetchReq {
#[allow(dead_code)]
query: String,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true})Errors and validation
Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9545. Registration: akasha-daemon/src/main.rs:4505.
POST /v1/ns/prefetch/stop
Ns prefetch stop
| Availability | Source contract |
|---|---|
| Registration | config.enable_neurosymbolic |
| Runtime service | neurosymbolic |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.
Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true})Errors and validation
Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9551. Registration: akasha-daemon/src/main.rs:4506.
GET /v1/ns/cache/stats
Ns cache stats
| Availability | Source contract |
|---|---|
| Registration | config.enable_neurosymbolic |
| Runtime service | neurosymbolic |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.
Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"hit_rate": 0.0})Errors and validation
Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:9555. Registration: akasha-daemon/src/main.rs:4507.
GET /v1/ns/history
Ns history
| Availability | Source contract |
|---|---|
| Registration | config.enable_neurosymbolic |
| Runtime service | neurosymbolic |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.
Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!(entries)Errors and validation
Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:11191. Registration: akasha-daemon/src/main.rs:4508.
GET /v1/ns/rules
Ns rules
| Availability | Source contract |
|---|---|
| Registration | config.enable_neurosymbolic |
| Runtime service | neurosymbolic |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.
Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!([])Errors and validation
Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:11198. Registration: akasha-daemon/src/main.rs:4509.
POST /v1/ns/rules/toggle
Ns rules toggle
| Availability | Source contract |
|---|---|
| Registration | config.enable_neurosymbolic |
| Runtime service | neurosymbolic |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
Json — NsRuleToggleReq
| Field | Rust type | Required on input | Notes |
|---|---|---|---|
rule_id | String | Yes | |
enabled | bool | Yes |
struct NsRuleToggleReq {
#[allow(dead_code)]
rule_id: String,
#[allow(dead_code)]
enabled: bool,
}Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({"ok": true})Errors and validation
Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:11211. Registration: akasha-daemon/src/main.rs:4510.
GET /v1/ns/stats
Ns stats
| Availability | Source contract |
|---|---|
| Registration | config.enable_neurosymbolic |
| Runtime service | neurosymbolic |
| Handler dependencies | See handler source and return expressions. |
Access: Daemon authentication and capability namespace authority; memory-domain permissions apply where mapped.
Request
No typed JSON, query, or path extractor is declared in the handler signature. Headers or request objects may still be consumed; the signature below is authoritative.
Response
Declared return: Result<impl IntoResponse, DaemonError>
The following are the exact JSON construction expressions in the handler. Values such as rows, result, and delegated types are runtime values, not literal example payloads.
serde_json::json!({
"totalQueries": history.len(),
"avgLatencyMs": 0,
"cacheHitRate": 0.0,
"activeRules": 0
})Errors and validation
Directly referenced error variants: none in the handler body. Middleware and delegated services can return additional errors described in the shared error reference.
Source: akasha-daemon/src/main.rs:11219. Registration: akasha-daemon/src/main.rs:4511.