Class WeightedPrompt
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Maps a prompt to a relative weight to steer music generation.
public class WeightedPrompt
- Inheritance
-
WeightedPrompt
- Inherited Members
- Extension Methods
Properties
Text
Text prompt.
[JsonPropertyName("text")]
public string? Text { get; set; }
Property Value
Weight
Weight of the prompt. The weight is used to control the relative importance of the prompt. Higher weights are more important than lower weights. Weight must not be 0. Weights of all weighted_prompts in this LiveMusicClientContent message will be normalized.
[JsonPropertyName("weight")]
public double? Weight { get; set; }