# Google Cloud Dialogflow V2 Client - Class FewShotExample (2.4.0)

2.4.0 (latest) 2.3.1 2.2.1 2.1.2 2.0.1 1.17.2 1.16.0 1.15.1 1.14.0 1.13.0 1.12.3 1.11.0 1.10.2 1.9.0 1.8.0 1.7.2 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class FewShotExample.

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

Generated from protobuf message `google.cloud.dialogflow.v2.FewShotExample`

## Namespace

Google \\ Cloud \\ Dialogflow \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ conversation_context` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationContext` Optional. Conversation transcripts. |
| `↳ extra_info` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` 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` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SummarizationSectionList` Summarization sections. |
| `↳ output` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.GeneratorSuggestion` Required. Example output of the model. |

### getConversationContext

Optional. Conversation transcripts.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationContext|null` |   |

### hasConversationContext

### clearConversationContext

### setConversationContext

Optional. Conversation transcripts.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.ConversationContext` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExtraInfo

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"\>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setExtraInfo

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"\>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSummarizationSectionList

Summarization sections.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SummarizationSectionList|null` |   |

### hasSummarizationSectionList

### setSummarizationSectionList

Summarization sections.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.SummarizationSectionList` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOutput

Required. Example output of the model.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.GeneratorSuggestion|null` |   |

### hasOutput

### clearOutput

### setOutput

Required. Example output of the model.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow/latest/V2.GeneratorSuggestion` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInstructionList

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |