langchain.js
    Preparing search index...

    Type Alias InferContextInput<ContextSchema>

    InferContextInput: ContextSchema extends BaseMessage
        ? BaseMessage<ContextSchema>
        : ContextSchema extends AnyAnnotationRoot
            ? ToAnnotationRoot<ContextSchema>["State"]
            : {}

    Helper type to extract input type from context schema (with optional defaults)

    Type Parameters