baml.json.SerializationError

A BAML value with no JSON form.

Reference version

Signature

class baml.json.SerializationError

A BAML value with no JSON form.

path locates the offending node in the jq-ish notation DecodeError uses. reason is a short stable tag for the construct that had no JSON form — uint8array, function, future, unserializable, class, enum, media, and so on. Branch on it rather than on message, which is prose.

Source:<builtin>/baml/ns_json/json.bamlbytes 1759–1846

Fields

message

string

path

string

reason

string

Implementations

baml.Concrete for T

Source:<builtin>/baml/core.bamlbytes 749–781