Package-level declarations
Types
Link copied to clipboard
class AttachmentBuilder
A builder for constructing attachments for prompt messages.
Link copied to clipboard
Message content with attachments
Link copied to clipboard
A message content builder class to support both text and attachments.
Link copied to clipboard
Represents categories for content moderation used to classify potentially harmful or inappropriate content. These categories help identify specific types of violations that content may fall under.
Link copied to clipboard
data class ModerationCategoryResult(val detected: Boolean, val confidenceScore: Double? = null, val appliedInputTypes: List<ModerationResult.InputType> = emptyList())
Represents the detailed result of moderating a specific category of content.
Link copied to clipboard
data class ModerationResult(val isHarmful: Boolean, val categories: Map<ModerationCategory, ModerationCategoryResult>)
Represents the result of a content moderation request.
Link copied to clipboard
class PromptBuilder
A builder class for creating prompts using a DSL approach.