Skip to content

Instantly share code, notes, and snippets.

@ntfargo
Created September 2, 2023 07:37
Show Gist options
  • Save ntfargo/121804db382fe8b0d70fd4986b374bd5 to your computer and use it in GitHub Desktop.
Save ntfargo/121804db382fe8b0d70fd4986b374bd5 to your computer and use it in GitHub Desktop.
Created for Tir Project [Rust gRPC]
syntax = "proto3";
package tir;
service TirService {
rpc GenerateKnowledge (EmptyRequest) returns (Thematics);
rpc EvaluateAnswer (EvaluateRequest) returns (Answer);
rpc CorrectExplanation (CorrectionRequest) returns (EmptyResponse);
}
message EmptyRequest {}
message Thematics {
repeated Thematic thematics = 1;
}
message Thematic {
string title = 1;
repeated Topic topics = 2;
}
message Topic {
string title = 1;
string explanation = 2;
}
message EvaluateRequest {
string answer = 1;
Topic topic = 2;
}
message CorrectionRequest {
string correction = 1;
Topic topic = 2;
}
message Answer {
uint32 score = 1;
string explanation = 2;
}
message EmptyResponse {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment