Class ContentsExample (1.122.0)

ContentsExample(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A single example of a conversation with the model.

Attributes

Name Description
contents MutableSequence[google.cloud.aiplatform_v1beta1.types.Content]
Required. The content of the conversation with the model that resulted in the expected output.
expected_contents MutableSequence[google.cloud.aiplatform_v1beta1.types.ContentsExample.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.

Classes

ExpectedContent

ExpectedContent(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A single step of the expected output.

Methods

ContentsExample

ContentsExample(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A single example of a conversation with the model.