← Về thư mục
openai4s/server/response_capture.py
- specificity · function · L116-L134 — def specificity(route: str) -> int
- _patterns · function · L137-L152 — def _patterns() -> list[tuple[re.Pattern[str] | None, str]]
- route_for · function · L155-L174 — def route_for(path: str, patterns=None) -> str | None
- _widened · function · L208-L227 — def _widened(observed: dict[str, Any], override: Mapping[str, Any]) -> dict[str, Any]
- widen_unobservable_types · function · L230-L257 — def widen_unobservable_types(route: str, schema: dict[str, Any]) -> dict[str, Any]
- apply · function · L237-L255 — def apply(node: Any, path: tuple[str, ...]) -> Any
- elide_machine_state · function · L260-L288 — def elide_machine_state(schema: dict[str, Any]) -> dict[str, Any]
- Recorder · class · L291-L484 — class Recorder
- init · method · L294-L315 — def init(self) -> None
- _declared · method · L317-L336 — def _declared(self, route: str | None) -> str | None
- observe · method · L338-L373 — def observe( self, method: str, path: str, code: int, body: Any, route: str | None = None, ) -> None
- observe_raw · method · L375-L403 — def observe_raw( self, method: str, path: str, code: int, content_type: str, length: int, route: str | None = None, ) -> None
- _note · method · L405-L415 — def _note( self, method: str, route: str, code: int, kind: str, content_type: str ) -> None
- contracts · method · L417-L433 — def contracts(self) -> dict[str, dict[str, Any]]
- shapes_snapshot · method · L435-L446 — def shapes_snapshot(self) -> dict[str, Any]
- absorb · method · L448-L461 — def absorb(self, shapes: Mapping[str, Any]) -> None
- document · method · L463-L484 — def document(self) -> dict[str, Any]
- _kind_of · function · L496-L512 — def _kind_of(code: int, content_type: str, length: int) -> str
- install · function · L521-L642 — def install(gateway_module, recorder: Recorder)
- make_handler · function · L530-L639 — def make_handler(args, *kwargs)
- _api · function · L534-L636 — def _api(self, method, sub)
- observing · function · L540-L571 — def observing(value, code=200)
- observing_send · function · L576-L594 — def observing_send(code, body, ctype, extra=None, security=None)
- observing_static · function · L603-L615 — def observing_static(code, body, ctype, extra=None, security=None)
- _sample · function · L650-L711 — def _sample(pattern: str, index: int = 0) -> tuple[str, int]
- concrete_path · function · L714-L721 — def concrete_path(route: str) -> str
- unroutable · function · L724-L738 — def unroutable(route: str) -> bool
- _probe_handler · function · L741-L843 — def _probe_handler( recorder: "Recorder", handler_class, method: str, path: str, route: str, headers: dict[str, str] | None = None, query: dict[str, list[str]] | None = None, body: dict | None = None, )
- _stub_stream · function · L812-L818 — def _stub_stream(file_path, ctype, extra=None, security=None)
- _stub_static_bytes · function · L835-L840 — def _stub_static_bytes(code, body, ctype, extra=None, security=None)
- _json_payload · function · L846-L855 — def _json_payload(body: Any, ctype: Any) -> Any
- _drive_environment_states · function · L886-L948 — def _drive_environment_states( recorder: "Recorder", handler_class, authenticated_headers: dict[str, str] | None = None, ) -> None
- _with_an_r_only_env · function · L930-L931 — def _with_an_r_only_env(force: bool = False)
- _drive_seeded_downloads · function · L951-L1191 — def _drive_seeded_downloads( recorder: "Recorder", handler_class, runner, headers: dict[str, str] | None = None, ) -> None
- _drive_session_surface · function · L1194-L1641 — def _drive_session_surface( recorder: "Recorder", handler_class, runner, frame_id: str, artifact: dict, headers: dict[str, str] | None = None, ) -> None
- _hold_owner · function · L1308-L1319 — def _hold_owner() -> None
- _capture_json · function · L1644-L1678 — def _capture_json( recorder: "Recorder", handler_class, method: str, route: str, path: str, headers: dict[str, str] | None, body: dict, ) -> dict | None
- _both · function · L1665-L1668 — def _both(payload, code=200, args, *kwargs)
- drive_all_routes · function · L1681-L1743 — def drive_all_routes( recorder: "Recorder", make_handler, config, runner, *, authenticated_headers: dict[str, str] | None = None, ) -> None
- load · function · L1746-L1753 — def load(path: Path | None = None) -> dict[str, Any]
- save · function · L1756-L1763 — def save(document: dict[str, Any], path: Path | None = None) -> Path
- partial_path · function · L1772-L1776 — def partial_path(destination: Path, worker: str) -> Path
- save_partial · function · L1779-L1844 — def save_partial( recorder: Recorder, destination: Path, worker: str, *, worker_count: int | None = None, run_id: str | None = None, ) -> Path
- assemble · function · L1847-L1967 — def assemble(destination: Path, *, require_complete: bool = False) -> int
- check · function · L1970-L2004 — def check(observed: dict[str, Any], frozen: dict[str, Any]) -> list[str]
- check_compatible · function · L2007-L2057 — def check_compatible(frozen: dict[str, Any], observed: dict[str, Any]) -> list[str]