0.20.1 (latest) 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.12 0.12.3 0.11.14 0.10.0 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.1 0.1.1

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

Multi-modal content.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `text` | `str` Inline text. This field is a member of `oneof`_ `data`. |
| `inline_data` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.AssistantContent.Blob` Inline binary data. This field is a member of `oneof`_ `data`. |
| `file` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.AssistantContent.File` A file, e.g., an audio summary. This field is a member of `oneof`_ `data`. |
| `executable_code` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.AssistantContent.ExecutableCode` Code generated by the model that is meant to be executed. This field is a member of `oneof`_ `data`. |
| `code_execution_result` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.AssistantContent.CodeExecutionResult` Result of executing an ExecutableCode. This field is a member of `oneof`_ `data`. |
| `role` | `str` The producer of the content. Can be "model" or "user". |
| `thought` | `bool` Optional. Indicates if the part is thought from the model. |

## Classes

### Blob

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

Inline blob.

### CodeExecutionResult

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

Result of executing ExecutableCode.

### ExecutableCode

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

Code generated by the model that is meant to be executed by
the model.

### File

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

A file, e.g., an audio summary.