# Class ChatRequest (0.13.1)

0.13.1 (latest) 0.13.0 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

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

Request for Chat.

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** |
| `inline_context` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-geminidataanalytics/latest/google.cloud.geminidataanalytics_v1alpha.types.Context` Optional. Inline context for the chat request. Use this to chat statelessly (without managed conversation persistence and without an Agent) by passing all context inline. This field is a member of `oneof`_ `context_provider`. |
| `conversation_reference` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-geminidataanalytics/latest/google.cloud.geminidataanalytics_v1alpha.types.ConversationReference` Optional. Reference to a persisted conversation and agent context. Use this to chat with an Agent using managed conversation persistence. This field is a member of `oneof`_ `context_provider`. |
| `data_agent_context` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-geminidataanalytics/latest/google.cloud.geminidataanalytics_v1alpha.types.DataAgentContext` Optional. Context for the chat request. Use this to chat with an Agent statelessly, without managed conversation persistence. This field is a member of `oneof`_ `context_provider`. |
| `client_managed_resource_context` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-geminidataanalytics/latest/google.cloud.geminidataanalytics_v1alpha.types.ClientManagedResourceContext` Optional. Context with client managed resources. Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources. This field is a member of `oneof`_ `context_provider`. |
| `project` | `str` Optional. The Google Cloud project to be used for quota and billing. |
| `parent` | `str` Required. The parent value for chat request. Pattern: `projects/{project}/locations/{location}` |
| `messages` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-geminidataanalytics/latest/google.cloud.geminidataanalytics_v1alpha.types.Message]` Required. Content of current conversation. |
| `thinking_mode` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-geminidataanalytics/latest/google.cloud.geminidataanalytics_v1alpha.types.ChatRequest.ThinkingMode` Optional. The thinking mode to use for the agent loop. Defaults to THINKING_MODE_UNSPECIFIED if not specified. |

## Classes

### ThinkingMode

    ThinkingMode(value)

Mode of thinking for the agent.