Package-level declarations
Types
A builder for constructing parts for prompt messages. All parts are added to a list in declaration order and can be retrieved through the build method.
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.
Represents the detailed result of moderating a specific category of content.
Represents the result of a content moderation request.
A builder class for creating prompts using a DSL approach.
Functions
Constructs an empty instance of the Prompt class with no messages, default parameters, and an empty identifier. This empty prompt can be used as a default or placeholder.
Extends an existing prompt using the Prompt DSL.
Creates a new prompt using the Prompt DSL.