← Về thư mục
openai4s/server/evidence_adapters.py
- classify_artifact · function · L40-L63 — def classify_artifact(filename: str, content_type: str = "") -> str | None
- _base · function · L66-L84 — def _base( *, kind: str, version_id: str, artifact_id: str, complete: bool, summary: dict[str, Any], omission_reason: str | None = None, ) -> dict[str, Any]
- _read_prefix · function · L87-L92 — def _read_prefix(path: Path, limit: int) -> tuple[bytes, bool]
- _truncated · function · L95-L111 — def _truncated( *, kind: str, version_id: str, artifact_id: str, summary: dict[str, Any], ) -> dict[str, Any]
- _metadata_int · function · L114-L117 — def _metadata_int(value: Any) -> int | None
- _parquet_budget · function · L120-L167 — def _parquet_budget( *, rows: Any, columns: Any, row_groups: Any, uncompressed_sizes: Any, ) -> dict[str, Any] | None
- _pyarrow_parquet_metadata · function · L170-L196 — def _pyarrow_parquet_metadata(path: Path) -> dict[str, Any] | None
- sizes · function · L182-L187 — def sizes() -> Iterator[Any]
- _fastparquet_metadata · function · L199-L224 — def _fastparquet_metadata(path: Path) -> dict[str, Any] | None
- sizes · function · L211-L215 — def sizes() -> Iterator[Any]
- _load_parquet_metadata · function · L227-L233 — def _load_parquet_metadata(path: Path) -> dict[str, Any] | None
- adapt_table · function · L236-L423 — def adapt_table(path: Path, *, version_id: str, artifact_id: str) -> dict[str, Any]
- _column_stats · function · L426-L453 — def _column_stats( values: dict[str, list[Any]], *, format_name: str, row_count: int ) -> dict[str, Any]
- adapt_pdf · function · L456-L502 — def adapt_pdf(path: Path, *, version_id: str, artifact_id: str) -> dict[str, Any]
- adapt_image · function · L505-L546 — def adapt_image(path: Path, *, version_id: str, artifact_id: str) -> dict[str, Any]: # Image coverage needs only a bounded header. A large image may therefore # still be complete when its dimensions are present in that header.
- adapt_structure · function · L552-L612 — def adapt_structure(path: Path, *, version_id: str, artifact_id: str) -> dict[str, Any]
- adapt_artifact · function · L615-L677 — def adapt_artifact( path: str | Path | None, *, filename: str, content_type: str = "", version_id: str, artifact_id: str, ) -> dict[str, Any] | None