HF RL Explorer

We are missing a supported way to programmatically inspect a treelite::Model object’s internals in a…

We are missing a supported way to programmatically inspect a treelite::Model object’s internals in a…: a task in LegoFlow-SWE (Harbor dataset). We need to add a method to the treelite::Model class that returns a JSON string describing the model in a stable, deterministic way. The method must be…

The task

We need to add a method to the `treelite::Model` class that returns a JSON string describing the model in a stable, deterministic way. The method must be named `DumpAsJSON` and must **only** provide dumping/introspection capability – there must be no JSON deserialization path.

Part of Lego-X/LegoFlow-SWE.