Jido.Messaging.Demo.Supervisor (Jido Messaging v1.0.0)

Copy Markdown View Source

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"
)

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])