Method TryFromGenAiConfig
TryFromGenAiConfig(string, long, out ChatModelShape?, out string?)
Reads the geometry out of a genai_config.json body without throwing.
public static bool TryFromGenAiConfig(string json, long weightsBytes, out ChatModelShape? shape, out string? error)
Parameters
jsonstringThe file's text.
weightsByteslongThe preset manifest's resident-weight total.
shapeChatModelShapeThe parsed shape, or null.
errorstringNull on success; otherwise a message naming the file and the field.
Returns
Exceptions
- ArgumentNullException
jsonis null.