Documentation
¶
Overview ¶
Package statement is the reading of a task's statement from paper into its tasks and their formulas: a model sees the task's crop, as app cut it from the photo of the page, and lists the tasks on it — one, or each of a column of sums framed together —, each with its statement as printed and as a formula when it is an expression or an equation, or none when it is not. The solver of module-kit computes a formula's answer, which is its task's key; a task with no formula goes to the solution of AI (internal/solving), and the reading of the work is given the statements, to tell which task each answer is of (internal/reading). It is the capability statement_reading of spec's admission table, and the grammar of the formula is the one the solver takes.
Index ¶
Constants ¶
const MaxOutputTokens = 4000
MaxOutputTokens is the most a call may write, thinking included: a formula is a line, and the rest is the model's reasoning on a statement it has to rewrite sign by sign.
const MaxTasks = 20
MaxTasks is the most tasks one crop holds, as one page begins.
const Version = 4
Version is the version of the prompt. A change to a word a model reads is a new version, and the entry of the list that admitted the prompt admits it no longer. TestFrozenV4 holds it.
Variables ¶
var Schema = map[string]any{ "type": "object", "additionalProperties": false, "required": []string{"tasks"}, "properties": schemaProperties, }
Schema is the answer every model returns.
Functions ¶
func Fingerprint ¶
func Fingerprint() string
Fingerprint names the prompt: the SHA-256 of every word a model reads besides the crop — the instructions, the label, the text and the schema, whose names the model reads too. An entry of the list of admitted models holds it (admission.Entry).
Types ¶
type Task ¶
Task is one task a model read on the crop: its statement as printed, and its formula, empty when the statement is no formula. Both have their spaces at the ends gone.
func Read ¶
Read takes a model's answer apart as strictly as the schema: the tasks, in the order of the page, none when the crop shows none. More than MaxTasks, or a task with no statement, is off the schema, and a stronger model is asked; a statement past maxStatement bytes is cut there, at a character, as the key keeps it. A formula the solver does not take is still an answer: the solver names why, and the task goes to the solution of AI.