ChatJsonInputGuard class
Iteratively creates bounded defensive copies of JSON-compatible values.
One guard may copy several roots while sharing a single node and byte budget, which prevents an initialize response from multiplying the limit across capabilities, authentication methods, and agent metadata. Do not reuse a guard after any copy throws: failed operations may leave its internal node and byte counters partially advanced.
Constructors
- ChatJsonInputGuard({required String resource, required int maxDepth, required int maxNodes, required int maxBytes})
Properties
Methods
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited