2.0.0 (latest) 1.158.0 1.157.0 1.156.0 1.155.0 1.154.0

    Retrieval(
        source: vertexai.generative_models._generative_models.grounding.VertexAISearch,
        disable_attribution: typing.Optional[bool] = None,
    )

Defines a retrieval tool that model can call to access external knowledge.

## Methods

### Retrieval

    Retrieval(
        source: vertexai.generative_models._generative_models.grounding.VertexAISearch,
        disable_attribution: typing.Optional[bool] = None,
    )

Initializes a Retrieval tool.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `disable_attribution` | `bool` Deprecated. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation. |
| `source` | `VertexAISearch` Set to use data source powered by Vertex AI Search. |