@@ -76,6 +76,11 @@ class MessageEncoding(Generic[ObjT, MsgT]):
76
76
performance and compatibility across different transport mechanisms used in
77
77
distributed scheduler operations.
78
78
79
+ For performance reasons, this encoding only supports Python primitives
80
+ (int, float, str), Pydantic models, and collections of mixed Pydantic and Python
81
+ models for a single level of nesting (list[Pydantic, int, float, str], tuple, dict).
82
+ Nested combinations of mixtures of Pydantic and Python models are not supported.
83
+
79
84
Example:
80
85
::
81
86
from guidellm.utils.encoding import MessageEncoding
@@ -305,6 +310,11 @@ class Serializer:
305
310
encoding/decoding cycles by storing class metadata and enabling proper
306
311
reconstruction of complex objects. Supports both dictionary-based and
307
312
sequence-based serialization strategies for different use cases.
313
+
314
+ For performance reasons, this serializer only supports Python primitives
315
+ (int, float, str), Pydantic models, and collections of mixed Pydantic and Python
316
+ models for a single level of nesting (list[Pydantic, int, float, str], tuple, dict).
317
+ Nested combinations of mixtures of Pydantic and Python models are not supported.
308
318
"""
309
319
310
320
def __init__ (
0 commit comments