fix(datadog): mark Meta model_name/provider ReadOnly for LIT012

TypedDict writable fields trip the type-discipline gate; match neighboring
Meta fields by wrapping the new keys in ReadOnly.
This commit is contained in:
Quinn Xu 2026-10-11 10:02:36 -07:00
parent b48a264d68
commit 849d7f91f4
No known key found for this signature in database
GPG key ID: BE28F31078A13997

View file

@ -71,8 +71,8 @@ class Meta(TypedDict, total=False):
kind: Literal["llm", "tool", "task", "embedding", "retrieval"]
# Top-level model fields required for Datadog cost attribution on llm/embedding spans.
# Values are also kept under metadata for backwards compatibility.
model_name: str
model_provider: str
model_name: ReadOnly[str]
model_provider: ReadOnly[str]
input: InputMeta # The span's input information.
output: OutputMeta # The span's output information.
metadata: dict[str, Any]