# Class MetricsByTurn (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

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

Metrics aggregated per turn.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `turn_index` | `int` Output only. The turn index (0-based). |
| `tool_metrics` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.AggregatedMetrics.ToolMetrics]` Output only. Metrics for each tool within this turn. |
| `semantic_similarity_metrics` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.AggregatedMetrics.SemanticSimilarityMetrics]` Output only. Metrics for semantic similarity within this turn. |
| `hallucination_metrics` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.AggregatedMetrics.HallucinationMetrics]` Output only. Metrics for hallucination within this turn. |
| `tool_call_latency_metrics` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.AggregatedMetrics.ToolCallLatencyMetrics]` Output only. Metrics for tool call latency within this turn. |
| `turn_latency_metrics` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.AggregatedMetrics.TurnLatencyMetrics]` Output only. Metrics for turn latency within this turn. |