# get_message_generation_from_outputs

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/utils/get_message_generation_from_outputs)

Retrieve the message generation from the given outputs.

## Signature

```python
get_message_generation_from_outputs(
    outputs: Mapping[str, Any],
) -> dict[str, Any]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `outputs` | `Mapping[str, Any]` | Yes | The outputs dictionary. |

## Returns

`dict[str, Any]`

The message generation.

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/791701a304a72495d108669ef11c194983fd0e95/python/langsmith/utils.py#L269)