Advisor API¶
AI assistant with tool calling.
Prefix: /api/advisor
Ask (Streaming)¶
Body:
{
"question": "What should I focus on today?",
"model": "ollama:qwen3:14b",
"include_github": false,
"history": [
{"role": "user", "text": "Previous question"},
{"role": "assistant", "text": "Previous answer"}
]
}
Response: Server-Sent Events (SSE) stream.
Event types:
| Event | Data | Description |
|---|---|---|
model | {"model": "ollama:qwen3:14b"} | Resolved model name |
tool_call | {"name": "list_tasks", "args": {...}} | Tool being called |
tool_result | {"name": "list_tasks", "result": {...}} | Tool response |
answer | {"answer": "Here's what I suggest..."} | Final answer |
error | {"detail": "Error message"} | Execution error |
Skills¶
List Skills¶
Create Skill¶
Body:
Update Skill¶
Same body as create.