Interface CacheablePrompt

All Known Implementing Classes:
TextItem

public sealed interface CacheablePrompt permits TextItem
Prompt objects supporting caching may implement this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns cache control for a given cacheable prompt (if set).
  • Method Details

    • getCacheControl

      @Nullable CacheControl getCacheControl()
      Returns cache control for a given cacheable prompt (if set).
      Returns:
      the cache control, or null if not set.