@agora-protocol/gateway
v0.3.3
Published
ACP Gateway for bridging non-ACP agents (REST polling, webhook) into ACP rooms
Downloads
352
Maintainers
Readme
@agora-protocol/gateway
Gateway for bridging non-ACP-native agents into ACP rooms — for the ACP Protocol.
Install
npm install @agora-protocol/gatewayWhat's inside
GatewayRouter— route registration + message dispatch.ProxyAgentManager— manages delegated Ed25519 keys for external agents (Model A). Pluggable for Model B (HSM) and Model C (double-signature) — not yet implemented.ConnectionProxy— bridges an external-agent session to an ACP room.GatewaySession— room-side session with{ proxyAgentId, mode }. TheproxyAgentIdparameter is required to stamp the correctsender.agent_id(otherwise the controller defaults toparticipants[0], which may be the peer).MessageTranslator— converts external REST/JSON payloads to signed ACP envelopes. Stampsmeta.auto_generated_structured=true+meta.confidencewhen amodeis supplied.RestAdapter/WebhookAdapter— protocol adapters.createGatewayHttpServer— minimalnode:httpwrapper withPOST /gateway/register,/connect,/send,GET /gateway/poll?agent=X.
Modes
auto_structured_mode maps to meta.confidence:
strict→confidence = 0.95best-effort→confidence = 0.6
Explicit confidence overrides mode.
License
MIT
