← Về thư mục
openai4s/server/artifact_refs.py
- RefProblem · class · L126-L127 — class RefProblem(dict)
- ArtifactRef · class · L130-L153 — class ArtifactRef(dict)
- _problem · function · L156-L157 — def _problem(ref: str, code: str, message: str) -> RefProblem
- _artifact_ref · function · L160-L181 — def _artifact_ref( *, metadata: dict, display_name: str, source_session: str, materialized_target: str | None, sent_bytes: int = 0, truncated: bool = False, ) -> ArtifactRef
- _is_binary · function · L184-L185 — def _is_binary(filename: str) -> bool
- _existing_local_copy · function · L188-L213 — def _existing_local_copy( store: Any, source_version_id: str, source_meta: dict, root_frame_id: str ) -> dict | None
- resolve_message_refs · function · L216-L367 — def resolve_message_refs( text: str, *, store: Any, root_frame_id: str, project_id: str, materialise: Callable[[str, str], dict] | None = None, on_resolved: Callable[[dict], None] | None = None, limit: int = MAX_REFS, ) -> tuple[str, list[dict]]
- _record · function · L246-L276 — def _record(ref: dict | None, token: str) -> None
- _afford · function · L286-L292 — def _afford(block: str) -> bool
- _read_snapshot · function · L370-L465 — def _read_snapshot( metadata: dict, name: str ) -> tuple[str | None, RefProblem | None, int, bool]
- _resolve_pinned · function · L468-L604 — def _resolve_pinned( name: str, version_id: str, *, store: Any, root_frame_id: str, project_id: str, materialise: Callable[[str, str], dict] | None, ) -> tuple[str | None, RefProblem | None, ArtifactRef | None]
- _resolve_legacy · function · L607-L656 — def _resolve_legacy( name: str, *, store: Any, root_frame_id: str ) -> tuple[str | None, RefProblem | None, ArtifactRef | None]