get_role#

langchain_community.chat_models.friendli.get_role(message: BaseMessage) str[source]#

Get role of the message.

Parameters:

message (BaseMessage) – The message object.

Raises:

ValueError – Raised when the message is of an unknown type.

Returns:

The role of the message.

Return type:

str