InstanceData

Instance data used to populate placeholders in a metric prompt template.

Fields
data Union type
Supported formats for instance data. data can be only one of the following:
text string

Text data.

contents object (Contents )

List of Gemini content data.

JSON representation
{
 // data
 "text": string,
 "contents": {
 object (Contents )
 }
 // Union type
}

Contents

List of standard Content messages from Gemini API.

Fields
contents[] object (Content )

Optional. Repeated contents.

JSON representation
{
 "contents": [
 {
 object (Content )
 }
 ]
}

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月20日 UTC.