Interface SessionMessage

All Known Implementing Classes:
SessionMessage.AiMessage, SessionMessage.MultimodalToolCallResponse, SessionMessage.MultimodalUserMessage, SessionMessage.ToolCallResponse, SessionMessage.UserMessage

Interface for message representation used inside the SessionMemoryEntity state.
  • Method Details

    • sizeInBytes

      static int sizeInBytes(String text)
    • sizeInBytes

      static int sizeInBytes(List<SessionMessage.MessageContent> contents)
    • size

      int size()
      The approximate size of this message in bytes, used to enforce memory size limits.
    • componentId

      String componentId()
      The component id of the agent that produced this message.