Expand description
Request and answer types, validation, state rendering, confidence formulas, rounding, calibration, email cleaning, presets and browser agent steps.
Everything here is pure computation on the host with no device and no I/O, which is why it is the crate every other one can depend on. See spec/03-api.md, spec/04-semantics.md and spec/06-input.md.
Modules§
- agent
agent_step: the questions a browser agent asks for one step, built from the page’s element table the way jev-ultrafast’schoosebuilds them (jev_ultrafast/model.py, MIT, Browser Use). Oneoperationhead picks CLICK, TYPE_TEXT, SELECT, a page control such as SCROLL_DOWN, DONE or BLOCKED, and each operation with candidates gets a<op>_targethead over the element indexes, so one request answers both what to do and where.AgentStep::decidechecks the answers as jev-ultrafast’svalidate_choicedoes and maps them back to the action to run.- answer
- Answers, built from a question’s option logits and act logits the way Laya builds them.
- confidence
- The confidence formulas from spec/04-semantics.md.
- Laya’s email cleaner,
clean_email_bodyandemail_statefromlaya/email.py, with the same output. It drops quoted history, signatures, device footers and confidentiality disclaimers in English, Portuguese and Spanish, so the model reads the new message and not the thread under it. - presets
- Laya’s five presets from
laya/presets.py, with the same question ids, instructions and criteria, so answers from kime and Laya can be compared directly. Each is aquestionsmap for a request. - pyjson
- Python’s
json.dumps, byte for byte, for the values a request can hold. - render
- The text the model reads for a question, before tokenizing.
- request
- The
/v1/systemonerequest, parsed from JSON and validated the way spec/03-api.md describes. - round
- Rounding a distribution for the wire, per spec/03-api.md.
Constants§
- RELEASE_
DATE - The date this version of kime was released, which
/v1/modelsgives as every model’srelease_date. Jev’s clients want a string there, and a checkpoint carries no date of its own.