Type bag that encapsulates all middleware type parameters.
This interface bundles all the generic type parameters used throughout the middleware system into a single configuration object. This pattern simplifies type signatures and makes it easier to add new type parameters without changing multiple function signatures.
interface MiddlewareTypeConfig// Define a type configuration
type MyMiddlewareTypes = MiddlewareTypeConfig<
typeof myStateSchema,
typeof myContextSchema,
MyContextType,
typeof myTools
>;The middleware context schema type
The full context type
The middleware state schema type
The combined tools type from agent and middleware