Toggle Menu
Prev Up Next

# `langchain.chains.query_constructor.parser`.get_parser

langchain.chains.query_constructor.parser.get_parser(allowed_comparators: Optional[Sequence[Comparator]] = None, allowed_operators: Optional[Sequence[Operator]] = None, allowed_attributes: Optional[Sequence[str]] = None) → object

  Return a parser for the query language.

  Parameters

    - allowed_comparators (Optional[Sequence[Comparator]]) – Optional[Sequence[Comparator]]

    - allowed_operators (Optional[Sequence[Operator]]) – Optional[Sequence[Operator]]

    - allowed_attributes (Optional[Sequence[str]]) –

  Returns

    Lark parser for the query language.

  Return type

    object