mirror of
https://github.com/NCBM/plyngent.git
synced 2026-11-07 23:47:54 +08:00
8a1994a785
Use Unset=UnsetType (not PEP 695 alias) and tag role/type fields so decoders and convert work for chat messages and tool calls.
8 lines
183 B
Python
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
|