Agents form their expectations through a learning process

The description of Dynare inludes this saying

“Dynare is also able to handle models where expectations are formed differently: on one extreme, models where agents perfectly anticipate the future; on the other extreme, models where agents have limited rationality or imperfect knowledge of the state of the economy and, hence, form their expectations through a learning process.”

How can i solve models where agents form their expectations through a learning process?
I haven’t found any example in the User Guide.I need your answer urgent as I am trying to implement a model under this hypothesis.

Thanks in advance!

See [Learning code?)