AgentMiddleware
AgentMiddleware<
ContentTypes> = (ctx,next) =>Promise<void>
Defined in: sdks/js/agent-sdk/src/core/Agent.ts:153
Processes a message and calls next to continue the middleware chain.
Type Parameters
Section titled “Type Parameters”ContentTypes
Section titled “ContentTypes”ContentTypes = unknown
Parameters
Section titled “Parameters”MessageContext<unknown, ContentTypes>
() => Promise<void> | void
Returns
Section titled “Returns”Promise<void>

