# Class EndSession (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

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

Indicates the session has terminated, due to either
successful completion (e.g. user says "Good bye!" ) or an agent
escalation.

The agent will not process any further inputs after session is
terminated and the client should half-close and disconnect after
receiving all remaining responses from the agent.

| ## Attribute ||
|---|---|
| **Name** | **Description** |
| `metadata` | `google.protobuf.struct_pb2.Struct` Optional. Provides additional information about the end session signal, such as the reason for ending the session. |