# 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/7c10a5fa327f6aaaf7c932822a9e5d144891406e/libs/community/langchain_community/chat_message_histories/zep_cloud.py#L47)