Documentation
¶
Overview ¶
Package learning runs attempts of tasks (R44): their beginning, the open attempt, the submission of the options tapped and its verdict by module-kit, the techniques a solving step gives, and "Done". It answers the methods of LearningService and AttemptService that it has; the others answer unimplemented, until the tasks of epic E3 that build them — the engine's choice, lessons, hints, and the checks that AI reads.
Every request is a learning request on a profile, whose right the checks hold before it (R33), and a profile whose consent is not confirmed is refused. An attempt is read by the pair of its profile and its ID, its row held for the request: one of another profile, or none, is "not found" (R04).
Index ¶
- type AttemptService
- func (a *AttemptService) BeginStep(ctx context.Context, req *v1.BeginStepRequest) (*v1.BeginStepResponse, error)
- func (a *AttemptService) Done(ctx context.Context, req *v1.DoneRequest) (*v1.DoneResponse, error)
- func (a *AttemptService) SubmitWork(ctx context.Context, req *v1.SubmitWorkRequest) (*v1.SubmitWorkResponse, error)
- type LearningService
- type Option
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttemptService ¶
type AttemptService struct {
apiv1connect.UnimplementedAttemptServiceHandler
// contains filtered or unexported fields
}
AttemptService is the requests on an attempt: here, the submission of the options tapped, the beginning of a step and "Done".
func (*AttemptService) BeginStep ¶
func (a *AttemptService) BeginStep(ctx context.Context, req *v1.BeginStepRequest) (*v1.BeginStepResponse, error)
BeginStep begins a solving step whose gives gives techniques, by its place: the answer is the IDs of the task's techniques, and the attempt records that they were given at a step, the first time (R82 spec). A repeat gets the same.
func (*AttemptService) Done ¶
func (a *AttemptService) Done(ctx context.Context, req *v1.DoneRequest) (*v1.DoneResponse, error)
Done ends an attempt of a task with a rubric (R14). A task with a verdict takes no "Done", and an attempt of a task with a rubric has no submission before the rubric's code sends one: it is "no submission".
func (*AttemptService) SubmitWork ¶
func (a *AttemptService) SubmitWork(ctx context.Context, req *v1.SubmitWorkRequest) (*v1.SubmitWorkResponse, error)
SubmitWork checks a submission of a task with a verdict, under its idempotency key: the verdict of every item and answer slot, by module-kit, on the options tapped. A submission with an answer slot "not_yet" is a wrong answer (R09); one whose every item is correct closes the attempt "correct", and its answer holds the task solved, its keys and its solution (R05 spec). The answer slots that AI reads get "unchecked", with the outcome "not admitted": no AI is admitted in this code yet, and their work is read by no one (R44). The submission is recorded with its answer, and the key's record names it, since the answer holds the options tapped (architecture 3.2). What comes next comes with the engine's choice and the lessons' code.
type LearningService ¶
type LearningService struct {
apiv1connect.UnimplementedLearningServiceHandler
// contains filtered or unexported fields
}
LearningService is the way from a module to a task: here, the beginning of an attempt and the open attempt.
func (*LearningService) BeginAttempt ¶
func (l *LearningService) BeginAttempt(ctx context.Context, req *v1.BeginAttemptRequest) (*v1.BeginAttemptResponse, error)
BeginAttempt begins an attempt, under its idempotency key: by an engine's choice of a task, or the same task again outside a lesson, each on the current version of its module (R07). It closes the profile's open attempt in the same transaction: "left", or as the check of a request would have closed it (R10). The module must be connected and have a current version for the learner that holds the task, and the task must suit the age category of the profile (R51 spec). A task with a rubric is not admitted: its path is not in this code (R14). A task of handwriting is admitted when the gate of admission chooses models to read it, by platform AI or the own key named (R45), and its attempt begins with tutor's reading (T36): until then it is unimplemented. A task segment of a lesson run comes with the lessons' code; with no such run it is "not found". The answer, the attempt with the open view of its task, is what the key's record holds: it names nothing the learner sent.
func (*LearningService) GetOpenAttempt ¶
func (l *LearningService) GetOpenAttempt(ctx context.Context, req *v1.GetOpenAttemptRequest) (*v1.GetOpenAttemptResponse, error)
GetOpenAttempt is the open attempt, by which the learner goes on with it on another device too: its beginning, the verdicts of its last submission, how many wrong answers it has, and the techniques given at a step. The rung and what a hint gives come with the ladder's code. It reads, and so it is no action on the attempt: its last action stays.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service runs the attempts of the profiles on the packages the image holds.
func New ¶
New is the Service of the packages of set, which asks gate before a task that AI checks; its handlers run on the database they are given. A binary that recorded no version of module-kit is refused, before anything is opened: every attempt keeps it. So is no gate.