docs: document local backend RPC methods
This commit is contained in:
@@ -343,6 +343,78 @@ Useful for proactive compaction monitoring and operator dashboards.
|
||||
}
|
||||
```
|
||||
|
||||
#### `system.localBackends`
|
||||
|
||||
Return status for user-level local LLM backend daemons (for example `ollama.service` and `llama-server.service`).
|
||||
|
||||
**Request:**
|
||||
```json
|
||||
{
|
||||
"id": 12,
|
||||
"method": "system.localBackends"
|
||||
}
|
||||
```
|
||||
|
||||
**Response:**
|
||||
```json
|
||||
{
|
||||
"id": 12,
|
||||
"result": {
|
||||
"backends": [
|
||||
{
|
||||
"id": "ollama",
|
||||
"provider": "ollama",
|
||||
"name": "Ollama",
|
||||
"unit": "ollama.service",
|
||||
"configured": true,
|
||||
"loadState": "loaded",
|
||||
"activeState": "active",
|
||||
"subState": "running",
|
||||
"unitFileState": "enabled",
|
||||
"description": "Ollama Service",
|
||||
"pid": 12345,
|
||||
"result": "success",
|
||||
"statusText": "active (running)",
|
||||
"availableActions": ["restart", "stop"]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### `system.localBackendControl`
|
||||
|
||||
Control a local backend daemon (`start`, `restart`, `stop`).
|
||||
|
||||
**Request:**
|
||||
```json
|
||||
{
|
||||
"id": 13,
|
||||
"method": "system.localBackendControl",
|
||||
"params": {
|
||||
"backend": "ollama",
|
||||
"action": "restart"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**Response:**
|
||||
```json
|
||||
{
|
||||
"id": 13,
|
||||
"result": {
|
||||
"backend": "ollama",
|
||||
"action": "restart",
|
||||
"status": {
|
||||
"id": "ollama",
|
||||
"activeState": "active",
|
||||
"subState": "running",
|
||||
"statusText": "active (running)"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**Response:**
|
||||
```json
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user