@Override
    public FieldValue generate(Prompt prompt, Context context) {
        return context.computeCachedValueIfAbsent(new CacheKey(this, prompt, context.getDestination(), context.getTargetType()),
                                                  () -> computeGeneration(prompt, context.getDestination(), context.getTargetType()));
    }
Component for generating field values with a language model.

@author glebashnik
model-integration/src/main/java/ai/vespa/llm/generation/LanguageModelFieldGenerator.java