Files
plyngent/src/plyngent/typedef.py
T
NCBM 8a1994a785 core/lmproto: fix msgspec Unset and tag multi-struct unions
Use Unset=UnsetType (not PEP 695 alias) and tag role/type fields so
decoders and convert work for chat messages and tool calls.
2026-07-14 17:25:09 +08:00

8 lines
183 B
Python

from typing import Any
from msgspec import UnsetType
type JSONSchema = dict[str, Any]
# Assignment (not PEP 695 `type`) so msgspec recognizes UnsetType in unions.
Unset = UnsetType