Shorthand helper to extract the Middleware type from an AgentTypeConfig or ReactAgent.
InferAgentMiddleware: InferAgentType<T, "Middleware">const agent = createAgent({ middleware: [authMiddleware, loggingMiddleware], ... });
type Middleware = InferAgentMiddleware<typeof agent>;