Skip to content
YosoiDocs

EvaluateFile

yosoi.browser.EvaluateFile

class EvaluateFile(TriggerStep):

Retain a construction-time JavaScript file snapshot.

The factory reads source during construction. Later execution uses the retained snapshot rather than rereading the file, and requires JavaScript permission.

Attributes: kind: Wire discriminator identifying this declaration. snapshot: Rust-validated source snapshot bounded to 1 MiB of encoded JSON.

Source: python/yosoi/browser.py:575

TriggerStep

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

kind: Literal['evaluate_file'] = 'evaluate_file'
snapshot: dict[str, Any]