Class FewShotExample (2.34.0)

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

Providing examples in the generator (i.e. building a few-shot generator) helps convey the desired format of the LLM response. NEXT_ID: 10

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
conversation_context google.cloud.dialogflow_v2beta1.types.ConversationContext
Optional. Conversation transcripts.
extra_info MutableMapping[str, str]
Optional. Key is the placeholder field name in input, value is the value of the placeholder. E.g. instruction contains "@price", and ingested data has <"price", "10"="">
summarization_section_list google.cloud.dialogflow_v2beta1.types.SummarizationSectionList
Summarization sections. This field is a member of oneof_ instruction_list.
output google.cloud.dialogflow_v2beta1.types.GeneratorSuggestion
Required. Example output of the model.

Classes

ExtraInfoEntry

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

The abstract base class for a message.

Parameters
Name Description
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.