← Về thư mục
openai4s/server/evidence_snapshot.py
- canonical_snapshot_bytes · function · L21-L24 — def canonical_snapshot_bytes(value: Any) -> bytes
- snapshot_digest · function · L27-L28 — def snapshot_digest(value: Any) -> str
- _text · function · L31-L32 — def _text(value: Any, limit: int = 20_000) -> str
- _artifact_version_id · function · L35-L36 — def _artifact_version_id(item: Mapping[str, Any]) -> str
- _read_versions_for_cell · function · L39-L91 — def _read_versions_for_cell( store: Any, root_frame_id: str, cell: Mapping[str, Any], artifacts: Sequence[Mapping[str, Any]], ) -> list[str]
- _ref · function · L94-L103 — def _ref( ref_id: str, kind: str, **fields: Any, ) -> dict[str, Any]
- freeze_evidence_snapshot · function · L106-L308 — def freeze_evidence_snapshot(parts: Mapping[str, Any]) -> dict[str, Any]
- resolve_evidence_ref · function · L311-L322 — def resolve_evidence_ref( snapshot: Mapping[str, Any], ref_id: str ) -> dict[str, Any] | None
- collect_turn_evidence · function · L325-L574 — def collect_turn_evidence( store: Any, *, root_frame_id: str, branch_id: str, turn_id: str, execution_id: str, user_request: str, candidate_answer: str, structured_completion: Any = None, artifact_versions_before: Mapping[str, Any] | None = None, produced_artifacts: Sequence[Mapping[str, Any]] | None = None, cell_count_before: int = 0, step_count_before: int = 0, tool_ledger: Sequence[Mapping[str, Any]] | None = None, environment_defaults: Mapping[str, Any] | None = None, collection_omissions: Sequence[Mapping[str, Any]] | None = None, ) -> dict[str, Any]
- include_artifact · function · L364-L408 — def include_artifact(candidate: Mapping[str, Any], version_id: str) -> None