Python: KernelJsonSchemaBuilder 忽略列表[…]/字典[…]中的字符串前向引用,而输出为空的 {"type": "object"}

作者: ErenAta16创建于 2026年7月29日更新于 2026年9月4日

`KernelJsonSchemaBuilder` silently drops the element schema when a container's element type is written as a string forward reference. `list["Inner"]` produces `{"type": "object"}` for the items — no `properties`, no `required` — while `list[Inner]` produces the full schema.

内容来源: microsoft/semantic-kernel