class_docstr: Auto suggest that can be turned on and of according to a certain condition.
class_docstr_tok: ["Auto","suggest","that","can","be","turned","on","and","of","according","to","a","certain","condition","."]
code: def __init__(
      self, auto_suggest: AutoSuggest, filter: bool | Filter
  ) -> None:
      self.auto_suggest = auto_suggest
      self.filter = to_filter(filter)
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import TYPE_CHECKING, Callable
  from prompt_toolkit.eventloop import run_in_executor_with_context
  from .document import Document
  from .filters import Filter, to_filter
label_desc: Use image node_id 1 to create a new ConditionalAutoSuggest object from inherited base classes: AutoSuggest with example: obj = ConditionalAutoSuggest(auto_suggest, filter)