# `Jido.Messaging.Demo.Supervisor`
[🔗](https://github.com/agentjido/jido_messaging/blob/v1.0.0/lib/jido_messaging/demo/supervisor.ex#L1)

Supervisor for the demo messaging service.

Supports three modes:
- Echo mode: messaging runtime only
- Bridge mode: signal-driven Telegram <-> Discord bridge
- Agent mode: bridge + ReAct ChatAgent that responds to mentions

## Agent Mode

In agent mode, a ChatAgent powered by Jido.AI ReAct joins the bridged chat.
Mention @ChatAgent to interact with it:

    @ChatAgent what time is it?
    @ChatAgent help
    @ChatAgent tell me about the bridge

## Usage

    # Echo mode (default)
    Jido.Messaging.Demo.Supervisor.start_link()

    # Bridge mode
    Jido.Messaging.Demo.Supervisor.start_link(
      mode: :bridge,
      telegram_chat_id: "123456",
      discord_channel_id: "789012"
    )

    # Agent mode (bridge + ChatAgent)
    Jido.Messaging.Demo.Supervisor.start_link(
      mode: :agent,
      telegram_chat_id: "123456",
      discord_channel_id: "789012"
    )

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

---

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