← Về thư mục
openai4s/capabilities.py
- CapabilityRepository · class · L9-L24 — class CapabilityRepository(Protocol)
- set_enabled · method · L10-L10 — def set_enabled(self, kind: str, name: str, enabled: bool, **kwargs) -> dict
- resolve · method · L12-L12 — def resolve(self, kind: str, name: str, **kwargs) -> dict
- snapshot · method · L14-L14 — def snapshot(self, kind: str, names: Iterable[str], **kwargs) -> dict
- explicit_states · method · L16-L16 — def explicit_states(self, kind: str | None = None, **kwargs) -> list[dict]
- append_event · method · L18-L18 — def append_event(self, kind: str, name: str, event: str, **kwargs) -> dict
- list_events · method · L20-L20 — def list_events(self, **kwargs) -> list[dict]
- record_manifest · method · L22-L22 — def record_manifest(self, **kwargs) -> dict
- latest_manifest · method · L24-L24 — def latest_manifest(self, session_id: str, *, kind: str) -> dict | None
- CapabilityStateService · class · L28-L141 — class CapabilityStateService
- scoped · method · L35-L45 — def scoped( self, *, project_id: str | None = None, session_id: str | None = None, ) -> "CapabilityStateService"
- state · method · L47-L53 — def state(self, kind: str, name: str) -> dict
- is_enabled · method · L55-L56 — def is_enabled(self, kind: str, name: str) -> bool
- predicate · method · L58-L59 — def predicate(self, kind: str)
- set_enabled · method · L61-L83 — def set_enabled( self, kind: str, name: str, enabled: bool, *, scope: str = "global", scope_id: str | None = None, metadata: dict | None = None, ) -> dict
- snapshot · method · L85-L91 — def snapshot(self, kind: str, names: Iterable[str]) -> dict[str, dict]
- disabled_names · method · L93-L101 — def disabled_names(self, kind: str) -> set[str]
- record_event · method · L103-L123 — def record_event( self, kind: str, name: str, event: str, *, metadata: dict | None = None, ) -> dict
- record_manifest · method · L125-L136 — def record_manifest(self, kind: str, entries: list[dict]) -> dict | None: # A manifest belongs to a concrete persistent session. Stateless CLI # loaders still return the same in-memory manifest but do not fabricate # a session identity just to write a row.
- latest_manifest · method · L138-L141 — def latest_manifest(self, kind: str) -> dict | None
- SpecialistProfileService · class · L144-L199 — class SpecialistProfileService
- init · method · L151-L153 — def init(self, profiles, capabilities: CapabilityStateService) -> None
- scoped · method · L155-L167 — def scoped( self, *, project_id: str | None = None, session_id: str | None = None, ) -> "SpecialistProfileService"
- enabled · method · L169-L170 — def enabled(self, name: str) -> bool
- filter_profiles · method · L172-L184 — def filter_profiles( self, profiles: Iterable[dict], *, include_disabled: bool = False, ) -> list[dict]
- list · method · L186-L190 — def list(self, *, include_disabled: bool = False) -> list[dict]
- resolve · method · L192-L199 — def resolve(self, name: str, *, include_disabled: bool = False) -> dict | None