-
-
Save numerarys/ff2d0e924c4d0f30d1756d4fbfe7443f 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