← Về thư mục
openai4s/server/workbench_state.py
- WorkbenchStore · class · L19-L36 — class WorkbenchStore(Protocol)
- get_frame · method · L20-L20 — def get_frame(self, frame_id: str) -> dict | None
- latest_kernel_generation · method · L22-L28 — def latest_kernel_generation( self, root_frame_id: str, language: str, *, branch_id: str | None = None, ) -> dict | None
- active_session_branch · method · L30-L30 — def active_session_branch(self, root_frame_id: str) -> str
- list_compaction_archives · method · L32-L34 — def list_compaction_archives( self, frame_id: str, *, limit: int = 50 ) -> list[dict]
- delegation_tree · method · L36-L36 — def delegation_tree(self, root_frame_id: str) -> dict
- delegation_event_projection · function · L67-L110 — def delegation_event_projection(payload: Mapping[str, Any]) -> dict[str, Any]
- _unattended_posture · function · L113-L123 — def _unattended_posture() -> str
- SessionWorkbenchStateService · class · L126-L503 — class SessionWorkbenchStateService
- init · method · L129-L146 — def init( self, store: WorkbenchStore, *, state_for: StateProvider, history_for: HistoryProvider, llm_config_for: LLMConfigProvider, pending_for: PendingProvider, context_window_fallback: int, tool_schemas_for: ToolSchemaProvider | None = None, ) -> None
- context · method · L148-L218 — def context(self, root_frame_id: str) -> dict[str, Any]
- _omissions · method · L221-L250 — def _omissions(state: Any) -> list[dict[str, Any]]
- _compaction_history · method · L253-L280 — def _compaction_history(item: Mapping[str, Any]) -> dict[str, Any]
- security · method · L282-L315 — def security(self, root_frame_id: str) -> dict[str, Any]
- delegation · method · L317-L337 — def delegation(self, root_frame_id: str) -> dict[str, Any]
- _root_frame · method · L339-L347 — def _root_frame(self, root_frame_id: str) -> dict
- _sandbox · method · L349-L385 — def _sandbox(self, root_frame_id: str, state: Any | None) -> dict[str, Any]
- _persisted_sandbox · method · L387-L417 — def _persisted_sandbox( self, root_frame_id: str, language: str ) -> dict[str, Any] | None
- _public_sandbox · method · L420-L433 — def _public_sandbox(status: Mapping[str, Any]) -> dict[str, Any]
- _aggregate_sandboxes · method · L436-L503 — def _aggregate_sandboxes( runtimes: list[dict[str, Any]], ) -> dict[str, Any]
- common · function · L439-L447 — def common(field: str) -> Any