← Về thư mục
openai4s/server/reviews.py
- ReviewStore · class · L19-L64 — class ReviewStore(Protocol)
- get_setting · method · L20-L20 — def get_setting(self, key: str, default: str | None = None) -> str | None
- list_model_profiles · method · L22-L22 — def list_model_profiles(self) -> list[dict]
- add_step · method · L24-L24 — def add_step(self, **fields: Any) -> None
- update_step · method · L26-L26 — def update_step(self, step_id: str, **fields: Any) -> None
- list_artifacts · method · L28-L28 — def list_artifacts(self, filters: dict) -> list[dict]
- resolve_artifact_path · method · L30-L30 — def resolve_artifact_path(self, artifact_id: str) -> str | None
- list_cells · method · L32-L32 — def list_cells(self, root_frame_id: str) -> list[dict]
- step_count · method · L34-L34 — def step_count(self, root_frame_id: str) -> int
- list_steps · method · L36-L42 — def list_steps( self, frame_id: str, *, start: int = 0, limit: int = 200, ) -> list[dict]
- add_frame_tokens · method · L44-L50 — def add_frame_tokens( self, frame_id: str, *, input_tokens: int, output_tokens: int, ) -> None
- get_frame · method · L52-L52 — def get_frame(self, frame_id: str) -> dict | None
- update_frame · method · L54-L54 — def update_frame(self, frame_id: str, **fields: Any) -> None
- message_count · method · L56-L56 — def message_count(self, root_frame_id: str) -> int
- list_messages · method · L58-L64 — def list_messages( self, root_frame_id: str, *, start: int = 0, limit: int = 1000, ) -> list[dict]
- ReviewState · class · L67-L72 — class ReviewState(Protocol)
- execution_barrier · method · L72-L72 — def execution_barrier(self)
- ReviewJob · class · L75-L85 — class ReviewJob(Protocol)
- finish · method · L81-L85 — def finish( self, result: dict | None = None, error: str | None = None, ) -> None
- legacy_auto_mode_selection · function · L95-L116 — def legacy_auto_mode_selection( store: ReviewStore, root_frame_id: str, ) -> dict[str, Any] | None
- ReviewPorts · class · L120-L144 — class ReviewPorts
- ReviewService · class · L147-L711 — class ReviewService
- init · method · L154-L167 — def init( self, *, store: ReviewStore | ReviewStoreProvider, lock: Any, jobs: MutableMapping[str, ReviewJob], ports: ReviewPorts, ) -> None
- store · method · L170-L172 — def store(self) -> ReviewStore
- _event · method · L174-L176 — def _event(self) -> threading.Event
- _thread · method · L178-L180 — def _thread(self, **kwargs: Any)
- _now · method · L182-L183 — def _now(self) -> float
- auto_enabled · method · L185-L189 — def auto_enabled(self, root_frame_id: str) -> bool
- llm_config · method · L191-L236 — def llm_config(self, state: ReviewState)
- artifact_excerpt · method · L239-L266 — def artifact_excerpt(artifact: dict) -> str | None
- run · method · L268-L556 — def run( self, state: ReviewState, emit: EventSink, *, user_text: str, assistant_text: str, artifact_versions_before: dict[str, str | None], cell_count_before: int, step_count_before: int = 0, mode: str = "auto", ) -> dict | None
- invoke_review · function · L429-L466 — def invoke_review() -> None
- cancel · method · L558-L561 — def cancel(self, root_frame_id: str) -> None
- cancel_locked · method · L563-L567 — def cancel_locked(self, root_frame_id: str) -> None
- call_inflight · method · L569-L575 — def call_inflight(self, root_frame_id: str) -> bool
- submit · method · L577-L711 — def submit(self, root_frame_id: str, project_id: str) -> ReviewJob
- target · function · L604-L695 — def target() -> None