cayu.proxies.base
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.
copy_proxy_authorization_result
Section titled “copy_proxy_authorization_result”from cayu.proxies import copy_proxy_authorization_resultcopy_proxy_authorization_result(result: ProxyAuthorizationResult) -> ProxyAuthorizationResultRelease source · Runtime guarantees · Capability guides
CredentialProxy
Section titled “CredentialProxy”from cayu.proxies import CredentialProxyCredential boundary for trusted tools and environment integrations.
A proxy can resolve scoped secret references and authorize outbound actions without making raw credentials part of model-visible context. Generic sandbox command execution is not automatically routed through this contract.
Bases: ABC.
supports_webbridge_credential_authority (method)
Section titled “supports_webbridge_credential_authority (method)”CredentialProxy.supports_webbridge_credential_authority(authority: WebBridgeCredentialAuthority) -> boolDeclare side-effect-free compatibility with one hosted WebBridge authority.
resolve (method)
Section titled “resolve (method)”async CredentialProxy.resolve(ref: SecretRef, *, scope: dict[str, Any] | None=None) -> ResolvedSecretResolve a secret reference at the credential boundary.
authorize_request (method)
Section titled “authorize_request (method)”async CredentialProxy.authorize_request(*, destination: str, credential: SecretRef | None=None, action: str | None=None, metadata: dict[str, Any] | None=None) -> ProxyAuthorizationResultReturn whether an outbound action is allowed.
Release source · Runtime guarantees · Capability guides
ProxyAuthorizationResult
Section titled “ProxyAuthorizationResult”from cayu.proxies import ProxyAuthorizationResultResult of a credential proxy outbound authorization check.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
allowed |
StrictBool |
required |
reason |
str | None |
None |
metadata |
dict[str, Any] |
Field(default_factory=dict) |
validate_optional_reason (method)
Section titled “validate_optional_reason (method)”ProxyAuthorizationResult.validate_optional_reason(value: str | None, info) -> str | Nonecopy_metadata (method)
Section titled “copy_metadata (method)”ProxyAuthorizationResult.copy_metadata(value: dict[str, Any]) -> dict[str, Any]require_reason_for_denial (method)
Section titled “require_reason_for_denial (method)”ProxyAuthorizationResult.require_reason_for_denial() -> ProxyAuthorizationResult