Skip to content

cayu.tools.web_access

Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.

from cayu.tools import WebAccessCircuitPolicy

Decorators: @dataclass(frozen=True, slots=True).

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
threshold int 3
open_seconds int 300
max_entries int 64

Release source · Runtime guarantees · Capability guides

from cayu.tools import WebAccessEvidence

Content-free, bounded evidence for one classified access barrier.

Bases: BaseModel.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
schema_version Literal[1] 1
outcome WebAccessOutcome required
source WebAccessEvidenceSource required
signal WebAccessSignal required
destination_fingerprint str Field(min_length=64, max_length=64)
status_code StrictInt | None Field(default=None, ge=100, le=599)
retry_after_seconds StrictInt | None Field(default=None, ge=0, le=MAX_WEB_ACCESS_RETRY_AFTER_SECONDS)
retry_after_unrepresentable StrictBool False
WebAccessEvidence.validate_evidence() -> WebAccessEvidence

Release source · Runtime guarantees · Capability guides

from cayu.tools import WebAccessEvidenceSource

Bases: StrEnum.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
HTTP_RESPONSE class attribute 'http_response'
BROWSER_RESPONSE class attribute 'browser_response'
EGRESS_POLICY class attribute 'egress_policy'
HOSTED_PROVIDER class attribute 'hosted_provider'
TRANSPORT class attribute 'transport'

Release source · Runtime guarantees · Capability guides

from cayu.tools import WebAccessOutcome

Stable access barriers derived from trusted transport observations.

Bases: StrEnum.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
AUTHENTICATION_REQUIRED class attribute 'authentication_required'
CONSENT_REQUIRED class attribute 'consent_required'
RATE_LIMITED class attribute 'rate_limited'
BOT_CHALLENGE class attribute 'bot_challenge'
DESTINATION_DENIED class attribute 'destination_denied'
CONTENT_UNAVAILABLE class attribute 'content_unavailable'
TRANSIENT_TRANSPORT_FAILURE class attribute 'transient_transport_failure'

Release source · Runtime guarantees · Capability guides

from cayu.tools import WebAccessRouteAction

One application-owned action for one classified route outcome.

Decorators: @dataclass(frozen=True, slots=True).

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
kind WebAccessRouteActionKind required
target_route_id str | None None
wait_seconds int | None None
guidance str | None None
WebAccessRouteAction.fallback_to(route_id: str) -> WebAccessRouteAction
WebAccessRouteAction.wait(seconds: int, *, guidance: str | None=None) -> WebAccessRouteAction
WebAccessRouteAction.operator_action(guidance: str) -> WebAccessRouteAction
WebAccessRouteAction.stop(*, guidance: str | None=None) -> WebAccessRouteAction

Release source · Runtime guarantees · Capability guides

from cayu.tools import WebAccessRouteActionKind

Bases: StrEnum.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
FALLBACK class attribute 'fallback'
WAIT class attribute 'wait'
OPERATOR_ACTION class attribute 'operator_action'
STOP class attribute 'stop'

Release source · Runtime guarantees · Capability guides

from cayu.tools import WebAccessRoutePolicy

Decorators: @dataclass(frozen=True, slots=True).

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
entry_route_id str required
rules tuple[WebAccessRouteRule, ...] ()
circuit WebAccessCircuitPolicy WebAccessCircuitPolicy()

Release source · Runtime guarantees · Capability guides

from cayu.tools import WebAccessRouteRule

Decorators: @dataclass(frozen=True, slots=True).

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
route_id str required
outcome WebAccessOutcome required
action WebAccessRouteAction required

Release source · Runtime guarantees · Capability guides

from cayu.tools import WebAccessRoutingTool

Execute only the finite application-owned WebBridge route graph.

Bases: Tool.

WebAccessRoutingTool.__init__(*, routes: Sequence[WebBridgeRoute], policy: WebAccessRoutePolicy) -> None
WebAccessRoutingTool.name() -> str
WebAccessRoutingTool.execution_profile_identity() -> ExecutionProfileBehaviorIdentity | None

Return the stable behavior declaration frozen with this tool’s spec.

WebAccessRoutingTool.retain_arguments_for_model() -> bool

Retain bounded redacted original inputs privately for the same profile.

Independent of audit publication; oversized and compacted-away inputs may be omitted. This does not grant knowledge read or activation rights.

WebAccessRoutingTool.description() -> str
WebAccessRoutingTool.schema() -> dict[str, Any]
async WebAccessRoutingTool.run(ctx: ToolContext, args: dict[str, Any]) -> ToolResult

Release source · Runtime guarantees · Capability guides

from cayu.tools import WebAccessSignal

Bases: StrEnum.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
STATUS_CODE class attribute 'status_code'
WWW_AUTHENTICATE class attribute 'www_authenticate'
RETRY_AFTER class attribute 'retry_after'
CHALLENGE_HEADER class attribute 'challenge_header'
CONSENT_HEADER class attribute 'consent_header'
EGRESS_DENIAL class attribute 'egress_denial'
TRANSPORT_ERROR class attribute 'transport_error'
PROVIDER_STATUS class attribute 'provider_status'

Release source · Runtime guarantees · Capability guides

from cayu.tools import WebBridgeRoute

One explicitly named already-validated WebBridge fetch route.

Decorators: @dataclass(frozen=True, slots=True).

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
route_id str required
bridge WebBridge required

Release source · Runtime guarantees · Capability guides