# is_base_message_like

> **Function** in `langsmith`

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

Check if the given object is similar to `BaseMessage`.

## Signature

```python
is_base_message_like(
    obj: object,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `obj` | `object` | Yes | The object to check. |

## Returns

`bool`

True if the object is similar to `BaseMessage`, `False` otherwise.

---

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