Skip to content

Instantly share code, notes, and snippets.

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