Skip to content

Instantly share code, notes, and snippets.

@numerarys
Forked from ntfargo/tir-proto.proto
Created September 9, 2024 13:50
Show Gist options
  • Save numerarys/1ff4c58bf1365d6a8b2e0f4f02a57bf9 to your computer and use it in GitHub Desktop.
Save numerarys/1ff4c58bf1365d6a8b2e0f4f02a57bf9 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