Class ModerationResponse

java.lang.Object
org.springframework.ai.moderation.ModerationResponse
All Implemented Interfaces:
ModelResponse<Generation>

public class ModerationResponse extends Object implements ModelResponse<Generation>
Represents a response from a moderation process, encapsulating the moderation metadata and the generated content. This class provides access to both the single generation result and a list containing that result, alongside the metadata associated with the moderation response. Designed for flexibility, it allows retrieval of moderation-specific metadata as well as the moderated content.
Since:
1.0.0
Author:
Ahmed Yousri