Example

A single example to upload or read from the Example Store.

Fields
displayName string

Optional. The display name for Example.

exampleId string

Optional. Immutable. Unique identifier of an example. If not specified when upserting new examples, the exampleId will be generated.

createTime string (Timestamp format)

Output only. timestamp when this Example was created.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

example_type Union type
The type of the example. Each example type has a defined format example_type can be only one of the following:
storedContentsExample object (StoredContentsExample)

An example of chat history and its expected outcome to be used with GenerateContent.

JSON representation
{
  "displayName": string,
  "exampleId": string,
  "createTime": string,

  // example_type
  "storedContentsExample": {
    object (StoredContentsExample)
  }
  // Union type
}

StoredContentsExample

A ContentsExample to be used with GenerateContent alongside information required for storage and retrieval with Example Store.

Fields
searchKey string

Optional. (Optional) the search key used for retrieval. If not provided at upload-time, the search key will be generated from contentsExample.contents using the method provided by searchKeyGenerationMethod. The generated search key will be included in retrieved examples.

contentsExample object (ContentsExample)

Required. The example to be used with GenerateContent.

searchKeyGenerationMethod object (SearchKeyGenerationMethod)

Optional. The method used to generate the search key from contentsExample.contents. This is ignored when uploading an example if searchKey is provided.

JSON representation
{
  "searchKey": string,
  "contentsExample": {
    object (ContentsExample)
  },
  "searchKeyGenerationMethod": {
    object (SearchKeyGenerationMethod)
  }
}

ContentsExample

A single example of a conversation with the model.

Fields
contents[] object (Content)

Required. The content of the conversation with the model that resulted in the expected output.

expectedContents[] object (ExpectedContent)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

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

ExpectedContent

A single step of the expected output.

Fields
content object (Content)

Required. A single step's content.

JSON representation
{
  "content": {
    object (Content)
  }
}