langchain.js
    Preparing search index...

    Type Alias InferMiddlewareInputState<T>

    InferMiddlewareInputState: T extends AgentMiddleware<infer S, any, any>
        ? S extends BaseMessage ? FilterPrivateProps<BaseMessage<S>> : {}
        : {}

    Helper type to infer the input state schema type from a middleware (all properties optional) This filters out private properties (those starting with underscore)

    Type Parameters