feat: add hermes-meshtastic platform plugin and Gitea Actions release workflow
release / test-and-release (push) Successful in 1m5s
release / test-and-release (push) Successful in 1m5s
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
"""Meshtastic Platform Adapter plugin for Hermes Agent."""
|
||||
|
||||
from .adapter import MeshtasticAdapter, check_requirements, MAX_LORA_MESSAGE_LENGTH
|
||||
|
||||
|
||||
def register(ctx):
|
||||
"""Hermes plugin entrypoint."""
|
||||
from gateway.platform_registry import PlatformEntry
|
||||
|
||||
ctx.register_platform(
|
||||
name="meshtastic",
|
||||
label="Meshtastic LoRa",
|
||||
adapter_factory=lambda config: MeshtasticAdapter(config),
|
||||
check_fn=check_requirements,
|
||||
max_message_length=MAX_LORA_MESSAGE_LENGTH,
|
||||
emoji="📻",
|
||||
platform_hint=(
|
||||
"You are chatting over Meshtastic LoRa radio. LoRa bandwidth is very low. "
|
||||
"Respond in concise plain text without markdown, bold, tables, or lists. "
|
||||
"Keep answers strictly under 140 characters whenever possible."
|
||||
),
|
||||
)
|
||||
Reference in New Issue
Block a user