feat: sql migrations and daemon state endpoint
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user