Skip to main content

Crate kime_core

Crate kime_core 

Source
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’s choose builds them (jev_ultrafast/model.py, MIT, Browser Use). One operation head picks CLICK, TYPE_TEXT, SELECT, a page control such as SCROLL_DOWN, DONE or BLOCKED, and each operation with candidates gets a <op>_target head over the element indexes, so one request answers both what to do and where. AgentStep::decide checks the answers as jev-ultrafast’s validate_choice does 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.
email
Laya’s email cleaner, clean_email_body and email_state from laya/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 a questions map 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/systemone request, 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/models gives as every model’s release_date. Jev’s clients want a string there, and a checkpoint carries no date of its own.