feat: sql migrations and daemon state endpoint

This commit is contained in:
2026-02-14 15:51:28 +02:00
parent 3ce2fa3841
commit 9920bfcdee
10 changed files with 276 additions and 219 deletions

View File

@@ -2,9 +2,9 @@ syntax = "proto3";
package ai_daemon;
service AiDaemon {
rpc Prompt(PromptRequest) returns (PromptResponse);
rpc Chat(ChatRequest) returns (ChatResponse);
rpc ChatHistory(ChatHistoryRequest) returns (ChatHistoryResponse);
rpc DaemonStatus(DaemonStatusRequest) returns (DaemonStatusResponse);
}
message ChatMessage {
@@ -33,10 +33,10 @@ message ChatHistoryResponse {
repeated ChatMessage history = 10;
}
message PromptRequest {
string prompt = 1;
}
message DaemonStatusRequest {}
message PromptResponse {
string response = 1;
message DaemonStatusResponse {
bool is_ok = 1;
optional string message = 10;
optional string error = 20;
}