statement

package
v0.1.74 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 8 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 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

View Source
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.

View Source
const MaxTasks = 20

MaxTasks is the most tasks one crop holds, as one page begins.

View Source
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

View Source
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).

func Instructions

func Instructions() string

Instructions are the instructions of every request.

func RequestOf

func RequestOf(crop provider.Image, width, height int) provider.Request

RequestOf is what the reading asks of a model about a task's crop, as provider.Photo gives it, of width × height px: the instructions, the crop after its label and its size. The model, its effort and how many tokens it may write the caller sets.

Types

type Task

type Task struct {
	Statement string
	Formula   string
}

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

func Read(answer string) ([]Task, error)

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.

Jump to

Keyboard shortcuts

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