LemonRouter. AgentEndpoints
(lemon_router v0.1.0)
View Source
Persistent endpoint aliases for agent routing.
Endpoints map friendly names (for example "ops-room") to a canonical route:
%{
channel_id: "telegram",
account_id: "default",
peer_kind: :group,
peer_id: "-100123456",
thread_id: "42"
}In addition to stored aliases, this module resolves Telegram shorthand targets:
tg:<chat_id>tg:<chat_id>/<topic_id>tg:<chat_id>#<topic_id>telegram:<chat_id>telegram:<chat_id>/<topic_id>- optional account prefix:
tg:<account_id>@<chat_id>/<topic_id>
Summary
Types
Functions
@spec resolve(binary(), term(), keyword()) :: {:ok, resolve_result()} | {:error, term()}
Resolve a target into a canonical route.
Target can be:
- endpoint alias name (stored under agent_id)
- Telegram shorthand string (
tg:...) - route map