A single example to upload or read from the Example Store.
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.
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
example_type
can be only one of the following: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
A ContentsExample to be used with GenerateContent alongside information required for storage and retrieval with Example Store.
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.
Required. The example to be used with GenerateContent.
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
A single example of a conversation with the model.
Required. The content of the conversation with the model that resulted in the expected output.
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 ( |