Interface BedrockSystemContent

All Known Implementing Classes:
BedrockSystemTextContent

public sealed interface BedrockSystemContent permits BedrockSystemTextContent
Represents a content block within a BedrockSystemMessage.

This is a sealed interface - only library-provided implementations are supported. Currently, only BedrockSystemTextContent is available.

Implementation Requirements:

  • Implementations must be immutable and thread-safe
  • Implementations must provide proper equals() and hashCode()
  • Cache points are inserted AFTER the content block in AWS Bedrock requests
  • Note: Caching may not activate if content is below ~1,024 tokens
Since:
1.11.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether this content block has a cache point marker.
    Returns the content type.
  • Method Details

    • type

      Returns the content type.
      Returns:
      the content type enum value
    • hasCachePoint

      boolean hasCachePoint()
      Returns whether this content block has a cache point marker. When true, a cache point will be inserted AFTER this content block in the AWS Bedrock request.
      Returns:
      true if this content has a cache point