# get_zep_message_role_type

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/chat_message_histories/zep_cloud/get_zep_message_role_type)

Get the Zep role type from the role string.

## Signature

```python
get_zep_message_role_type(
    role: str,
) -> RoleType
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `role` | `str` | Yes | The role string. One of "human", "ai", "system", |

## Returns

`RoleType`

The Zep role type. One of "user", "assistant",

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/chat_message_histories/zep_cloud.py#L47)