# get_generation_info

> **Function** in `langchain_google_vertexai`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-vertexai/_utils/get_generation_info)

## Signature

```python
get_generation_info(
    candidate: TextGenerationResponse | Candidate,
    *,
    stream: bool = False,
    usage_metadata: dict | None = None,
    logprobs: bool | int = False,
) -> dict[str, Any]
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/vertexai/langchain_google_vertexai/_utils.py#L162)