[KongchangAI]
Concept网关拦截钩子 / gateway hook

pre_gateway_dispatch

A plugin hook mechanism within the Hermes Agent framework that allows developers to intercept and rewrite messages before they reach the language model. It is used for tasks such as correcting tool-selection bias, enabling custom preprocessing logic to be inserted into the message pipeline prior to model inference.

Timeline (last 90 days)

Oct 11

The solution is to write a custom Hermes plugin that uses the pre_gateway_dispatch hook to intercept and rewrite messages before they reach the model, injecting hard-coded instructions to explicitly tell the model to call the voice-memo skill rather than the memory tool.

Unverified50%
Oct 11

The pre_gateway_dispatch hook performs a lightweight pre-transcription of approximately 0.7 seconds on audio messages to check whether the first word is 메모.

Unverified50%
Oct 11

The pre_gateway_dispatch hook fires after source verification is complete and before the message enters large model inference.

Unverified50%
Oct 11

The plugin design adopts a fail-open engineering defense: even if the hook judgment fails, messages are passed through unchanged, ensuring zero interference with normal conversation flow.

Unverified50%

All Facts (4)

Source Articles