Helper type to infer the input state schema type from a middleware (all properties optional) This filters out private properties (those starting with underscore) Supports both Zod schemas (InteropZodObject) and StateSchema from LangGraph
InferMiddlewareInputState: T extends AgentMiddleware<
TSchema,
any,
any,
any
> TSchema extends InteropZodObject FilterPrivateProps<InferInteropZodInput<TSchema>> : TSchema extends StateDefinitionInit FilterPrivateProps<InferSchemaInput<TSchema>> : __type : __type