> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# gemini.Utils

> Utility functions and helpers for Gemini integration.

[View module source on GitHub](https://github.com/maximhq/maxim-py/blob/main/maxim/logger/gemini/utils.py)

## [GeminiUtils](/sdk/python/references/logger/gemini/utils)

```python theme={null}
class GeminiUtils()
```

#### parse\_gemini\_generation\_content

```python theme={null}
@staticmethod
def parse_gemini_generation_content(
        response: GenerateContentResponse) -> Dict[str, Any]
```

Parse the generation response from Google's Generative AI API into a standardized format.

**Arguments**:

| Name       | Type                      | Description                     |
| ---------- | ------------------------- | ------------------------------- |
| `response` | *GenerateContentResponse* | The raw response from the model |

**Returns**:

Dict\[str, Any]: A dictionary containing the parsed response with standardized fields:

* usage: Token counts for prompt and completion
* id: Generated UUID for the response
* created: Unix timestamp of when response was parsed
