← Về thư mục
openai4s/execution_principal.py
- PrincipalRequired · class · L63-L69 — class PrincipalRequired(PermissionError)
- Principal · class · L73-L118 — class Principal
- is_admin · method · L91-L92 — def is_admin(self) -> bool
- unrestricted · method · L95-L104 — def unrestricted(self) -> bool
- as_visibility_user · method · L106-L118 — def as_visibility_user(self) -> dict[str, Any]
- for_identity · function · L136-L158 — def for_identity(identity: Any) -> Principal | None
- team_mode_active · function · L161-L171 — def team_mode_active() -> bool
- current · function · L174-L177 — def current() -> Principal | None
- set_principal · function · L180-L181 — def set_principal(principal: Principal | None) -> contextvars.Token
- reset · function · L184-L185 — def reset(token: contextvars.Token) -> None
- scope · function · L189-L199 — def scope(principal: Principal | None) -> Iterator[Principal | None]
- resolve · function · L202-L217 — def resolve() -> Principal