Optim.jl callback

How to work properly with OptimizationState?

In docs I found only os.iteration.

Some like os.metadata["x"] not working with error: type Array has no field metadata

Is callback documented anywhere?

Thx!