learning

package
v0.1.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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

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

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

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

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 Option

type Option func(*Service)

Option sets what a Service runs on, for the tests.

func WithClock

func WithClock(now func() time.Time) Option

WithClock is the clock a Service tells the time of its actions by.

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

func New(set *packages.Set, gate *admission.Gate, opts ...Option) (*Service, error)

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.

func (*Service) Attempts

func (s *Service) Attempts(db rpc.DB) *AttemptService

Attempts is the AttemptService of s, on db.

func (*Service) Learning

func (s *Service) Learning(db rpc.DB) *LearningService

Learning is the LearningService of s, on db.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL