cog
8c337134 - fix: support dict and list[dict] as predictor input types (#2928)

Commit
14 days ago
fix: support dict and list[dict] as predictor input types (#2928) * fix: support dict and list[dict] as predictor input types dict, Dict[str, Any], list[dict], and List[Dict[str, Any]] were not supported as predictor input types, even though they worked as output types. This broke models using chat-style messages: list[dict] inputs. The fix maps dict types to ANY (opaque JSON objects) in both the Go tree-sitter schema generator (ResolveFieldType) and the Python SDK runtime (FieldType.from_type), handling all variants: bare dict, parameterized Dict[K,V], list[dict], Optional[dict], and PEP 604 union syntax. * fix: correct JSON key ordering in integration test schema assertions The OpenAPI schema serializes property keys in sorted order (items, title, type, x-order), not insertion order. Fix the stdout assertions to match the actual key ordering.
Author
Parents
Loading