OpenJ / Getting started / Embedded JavaRun a simple Java example

Use Reckoning from Java.

Load a local model, send it a prompt, and print the response.

Ask one question

This small example asks the model to name a food:

ModelFetcher fetch = new ModelFetcher(