Helper type to infer the input context schema type from a middleware (with optional defaults)
InferMiddlewareContextInput: T extends AgentMiddleware<
any,
TContextSchema,
any,
any
> TContextSchema extends InteropZodOptional<Inner> InferInteropZodInput<Inner> | undefined : TContextSchema extends InteropZodObject InferInteropZodInput<TContextSchema> : __type : __type