← Về thư mục
openai4s/host/skills.py
- SkillService · class · L21-L512 — class SkillService
- init · method · L24-L36 — def init(self, cfg: Config) -> None
- set_scope · method · L38-L51 — def set_scope( self, *, project_id: str | None = None, session_id: str | None = None, ) -> None
- set_allowed_skills · method · L53-L63 — def set_allowed_skills(self, allowed: object) -> None
- _permits · method · L65-L68 — def _permits(self, name: str) -> bool
- _filter · method · L70-L91 — def _filter(self, rows: list) -> list
- _writable_scope · method · L93-L104 — def _writable_scope(self, skill: Any) -> tuple[str, str | None]
- _authorize_mutation · method · L106-L134 — def _authorize_mutation( self, scope: str, project_id: str | None ) -> execution_principal.Principal
- load · method · L136-L168 — def load(self, name: str | dict) -> dict
- search · method · L170-L187 — def search(self, spec: dict) -> list
- system_context · method · L189-L201 — def system_context(self) -> str
- bootstrap_code · method · L203-L212 — def bootstrap_code(self) -> str
- list · method · L214-L216 — def list(self) -> list
- get · method · L218-L230 — def get(self, name: str) -> dict
- read · method · L232-L241 — def read(self, spec: dict) -> str
- edit · method · L243-L352 — def edit(self, spec: dict) -> dict
- publish · method · L354-L374 — def publish(self, name: str) -> dict
- delete · method · L376-L396 — def delete(self, name: str) -> dict
- _version_request · method · L398-L423 — def _version_request(self, spec: str | dict) -> tuple[str, str, str | None, int]
- status · method · L425-L457 — def status(self, spec: str | dict) -> dict
- history · method · L459-L471 — def history(self, name: str | dict, *, limit: int = 200) -> dict
- rollback · method · L473-L494 — def rollback(self, name: str | dict, version_id: str | None = None) -> dict
- _reject_bundled_name_collision · method · L496-L504 — def _reject_bundled_name_collision(self, content: str, *, fallback: str) -> None
- _safe_path · method · L507-L512 — def _safe_path(root: Path, relative: str) -> Path