# Class SessionOutput (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

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

Output for the session.

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` Output text from the CES agent. This field is a member of `oneof`_ `output_type`. |
| `audio` | `bytes` Output audio from the CES agent. This field is a member of `oneof`_ `output_type`. |
| `tool_calls` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ToolCalls` Request for the client to execute the tools. This field is a member of `oneof`_ `output_type`. |
| `citations` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.Citations` Citations that provide the source information for the agent's generated text. This field is a member of `oneof`_ `output_type`. |
| `google_search_suggestions` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.GoogleSearchSuggestions` The suggestions returned from Google Search as a result of invoking the GoogleSearchTool. This field is a member of `oneof`_ `output_type`. |
| `end_session` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.EndSession` Indicates the session has ended. This field is a member of `oneof`_ `output_type`. |
| `payload` | `google.protobuf.struct_pb2.Struct` Custom payload with structured output from the CES agent. This field is a member of `oneof`_ `output_type`. |
| `turn_index` | `int` Indicates the sequential order of conversation turn to which this output belongs to, starting from 1. |
| `turn_completed` | `bool` If true, the CES agent has detected the end of the current conversation turn and will provide no further output for this turn. |
| `diagnostic_info` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.SessionOutput.DiagnosticInfo` Optional. Diagnostic information contains execution details during the processing of the input. Only populated in the last SessionOutput (with `turn_completed=true`) for each turn. |

## Classes

### DiagnosticInfo

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

Contains execution details during the processing.