Vibe.Gateway.Dispatcher (vibe v0.2.3)

Copy Markdown View Source

Dispatches normalized gateway messages into Vibe semantic sessions.

This module is intentionally gateway-neutral. Platform adapters submit %Vibe.Gateway.Message{} values to the runtime; the dispatcher maps those messages onto deterministic Vibe session ids and submits regular session commands.

Summary

Functions

Finds or starts the target session and submits the gateway message text.

Types

option()

@type option() ::
  {:session_key_opts, Vibe.Gateway.SessionKey.opts()}
  | {:session_opts, keyword()}

Functions

dispatch(message, opts \\ [])

@spec dispatch(Vibe.Gateway.Message.t(), [option()]) ::
  {:ok, String.t()} | {:error, term()}

Finds or starts the target session and submits the gateway message text.