Skip to content
YosoiDocs

EffectivePolicy

yosoi.policy.EffectivePolicy

class EffectivePolicy(ImmutableModel):

Rust-resolved behavior view, separate from caller authoring intent.

Attributes: network: Opt-in IP family, local source binding, and upstream proxy. browser: Resolved browser engine/profile declaration, without a live handle. default_action_timeout_ms: Positive fallback action duration in milliseconds, distinct from request startup budgets. flow: Resolved independent failure/cancellation fallback policies. page: Resolved acquisitions and output representations. request: Acquisition deadlines and evidence limits. documents: Parsing byte/node/depth limits. locators: Query, traversal, match, capture, and output limits. tuning: Resolved package tuning mode. map: Resolved discovery scope and resource declaration. search: Resolved provider routes and shared budgets.

Source: python/yosoi/policy.py:1190

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

network: Network = Field(default_factory=lambda: Network(), exclude_if=_network_is_default)
browser: _SnapshotBrowserConfig = Field(default_factory=_SnapshotBrowserConfig)
default_action_timeout_ms: PositiveU64 = 10000
flow: _SnapshotFlowPolicy = Field(default_factory=_SnapshotFlowPolicy)
page: EffectivePage
request: Request
documents: Documents
locators: Locators
tuning: Tuning
map: Map
search: EffectiveSearch