27 lines
465 B
Protocol Buffer
27 lines
465 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "google/api/annotations.proto";
|
|
import "google/api/httpbody.proto";
|
|
|
|
option go_package = "leafdev.top/leaf/rag/api/rag";
|
|
|
|
|
|
|
|
message CreateDocumentRequest {
|
|
string name = 1;
|
|
string content = 2;
|
|
string library_id = 3;
|
|
}
|
|
|
|
message CreateDocumentResponse {
|
|
Document document = 1;
|
|
}
|
|
|
|
message Document {
|
|
int64 id = 1;
|
|
string name = 2;
|
|
string content = 3;
|
|
string library_id = 4;
|
|
string created_at = 5;
|
|
string updated_at = 6;
|
|
} |