# `Jido.Chat.MessageSubject`
[🔗](https://github.com/agentjido/jido_chat/blob/v1.2.0/lib/jido/chat/message_subject.ex#L1)

Normalized subject for a resource-backed conversation.

Examples include an issue, a pull request, or a discussion. The adapter
supplies the provider resource type and identifier. Core does not infer a
subject from a room identifier.

# `t`

```elixir
@type t() :: %Jido.Chat.MessageSubject{
  id: binary(),
  metadata: map(),
  status: nil | nil | binary(),
  title: nil | nil | binary(),
  type: binary(),
  url: nil | nil | binary()
}
```

# `from_map`

```elixir
@spec from_map(map()) :: t()
```

Builds a message subject from serialized map data.

# `new`

```elixir
@spec new(map()) :: t()
```

Creates a normalized message subject from atom-keyed or string-keyed input.

# `schema`

```elixir
@spec schema() :: Zoi.schema()
```

Returns the Zoi schema for MessageSubject.

# `to_map`

```elixir
@spec to_map(t()) :: map()
```

Serializes a message subject into a plain map with a type marker.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
