admission

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 9 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 admission is the function of admission to AI as api asks it before an attempt (R25, R45): the admission table of the release of spec that tutor reads, the facts the deployment declares in its file, and the least stage of tutor's rule of admission of models. What a task that AI checks may be given is what tutor's Table.Select chooses for it, and tutor asks the same before its call.

The file of facts and the stage are the deployment's, not the image's: with no file no fact holds, and the table closes platform AI while it leaves an adult's own key open; with no stage it is "full", closed by default (R25). No model has passed the stage full yet, so there no reading is admitted at all, by an own key either: the first app passes "author". A fact or a provider the table does not name is a refusal of the configuration, since a typo would close a route without a word.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(cfg config.Admission) (*Gate, Report, error)

Load is the gate of the table of spec and of what cfg declares. A file that cannot be read, or that tutor refuses, is a refusal of the configuration, config.ErrInvalid, which names the variable and what tutor said, never the file's contents beyond the provider or the fact it does not know. A table that tutor cannot read is a fault of the release of spec.

Types

type Gate

type Gate struct {
	// contains filtered or unexported fields
}

Gate answers whether a task that AI checks is admitted for a learner, and reads its work by tutor, made once with the same table, facts, stage and platform keys, so that the gate and tutor choose alike.

func (*Gate) Handwriting

func (g *Gate) Handwriting(category formatv0.AgeCategory, ownKeyProvider string) bool

Handwriting says whether the reading of handwriting is admitted for a learner of category: by platform AI, or, when ownKeyProvider names one, by the own key of that provider alone. It is admitted when Select chooses an entry, all of whose models the table admits at the deployment's stage or above. On platform AI only the providers the platform holds a key of serve, as tutor's Choose has it; the reading asks again (R46).

func (*Gate) ReadSheet added in v0.1.17

func (g *Gate) ReadSheet(ctx context.Context, r tutor.SheetReading) tutor.SheetRead

ReadSheet reads the work of a handwriting sheet by tutor's two readers: the observation of each, or the outcome of a call that gave none.

func (*Gate) TellWords added in v0.1.17

func (g *Gate) TellWords(ctx context.Context, w tutor.WordsRequest) tutor.WordsAnswer

TellWords asks tutor for the words of a rung: its question, with the box of the first mistake when the work went, or the outcome of a call that gave none.

func (*Gate) Words added in v0.1.17

func (g *Gate) Words(withWork bool, category formatv0.AgeCategory, ownKeyProvider string) bool

Words says whether the tutor's words are admitted for a learner of category, on the route Handwriting takes: the hint of a rung, and, with the work, the analysis of its steps too, which the one call of words serves (R47). tutor asks again, of the very model.

type Report

type Report struct {
	TableVersion string
	FactsFile    bool
	Rung         string
	RungSet      bool
	// PlatformKeys is how many providers the platform holds a key of.
	PlatformKeys int
}

Report is what a start says of admission to the operator: the version of the table, whether the deployment gave a file of facts, and the stage and whether it named it. It names no provider, fact or path.

Jump to

Keyboard shortcuts

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