← Về thư mục
openai4s/host/session.py
- SessionControlStore · class · L16-L31 — class SessionControlStore(Protocol)
- resolve_frame_scope · method · L19-L19 — def resolve_frame_scope(self, frame_id: str | None, **kwargs: Any) -> dict
- get_frame · method · L21-L21 — def get_frame(self, frame_id: str) -> dict | None
- list_session_branches · method · L23-L23 — def list_session_branches(self, root_frame_id: str) -> list[dict]
- list_session_checkpoints · method · L25-L27 — def list_session_checkpoints( self, root_frame_id: str, **filters: Any ) -> list[dict]
- list_permission_requests · method · L29-L31 — def list_permission_requests( self, *, root_frame_id: str | None = None, state: str | None = None ) -> list[dict]
- SessionDomain · class · L34-L45 — class SessionDomain(Protocol)
- branches · method · L37-L37 — def branches(self, root_frame_id: str) -> dict[str, Any]
- create_checkpoint · method · L39-L39 — def create_checkpoint(self, root_frame_id: str, **options: Any) -> dict
- fork_branch · method · L41-L41 — def fork_branch(self, root_frame_id: str, **options: Any) -> dict
- revert_preview · method · L43-L43 — def revert_preview(self, root_frame_id: str, **options: Any) -> dict
- recovery_status · method · L45-L45 — def recovery_status(self, root_frame_id: str, **filters: Any) -> dict
- SessionControlService · class · L84-L273 — class SessionControlService
- init · method · L87-L96 — def init( self, store: SessionControlStore, *, frame_id: Callable[[], str | None], domain: DomainProvider | None = None, ) -> None
- set_domain · method · L98-L101 — def set_domain(self, domain: SessionDomain | None) -> None
- status · method · L103-L149 — def status(self, spec: Mapping[str, Any] | None = None) -> dict[str, Any]
- create_checkpoint · method · L151-L167 — def create_checkpoint(self, spec: Mapping[str, Any]) -> dict[str, Any]
- fork_session · method · L169-L192 — def fork_session(self, spec: Mapping[str, Any]) -> dict[str, Any]
- revert_preview · method · L194-L205 — def revert_preview(self, spec: Mapping[str, Any]) -> dict[str, Any]
- pending_permissions · method · L207-L239 — def pending_permissions( self, spec: Mapping[str, Any] | None = None ) -> dict[str, Any]
- _current · method · L241-L253 — def _current(self) -> tuple[str, str, dict]
- _required_domain · method · L255-L261 — def _required_domain(self) -> SessionDomain
- _fallback_capabilities · method · L264-L273 — def _fallback_capabilities(has_checkpoint: bool) -> dict[str, Any]
- _select · function · L276-L277 — def _select(source: Mapping[str, Any], fields: tuple[str, ...]) -> dict[str, Any]
- _optional_string · function · L280-L282 — def _optional_string(spec: Mapping[str, Any], key: str) -> str | None
- _bounded_limit · function · L285-L288 — def _bounded_limit(value: Any, *, default: int) -> int