-
-
Save numerarys/1ff4c58bf1365d6a8b2e0f4f02a57bf9 to your computer and use it in GitHub Desktop.
Created for Tir Project [Rust gRPC]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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