Operation#

class langchain_core.structured_query.Operation[source]#

Bases: FilterDirective

Logical operation over other directives.

Create an Operation.

Parameters:
  • operator – The operator to use.

  • arguments – The arguments to the operator.

param arguments: list[FilterDirective] [Required]#

The arguments to the operator.

param operator: Operator [Required]#

The operator to use.

accept(visitor: Visitor) Any#

Accept a visitor.

Parameters:

visitor (Visitor) – visitor to accept.

Returns:

result of visiting.

Return type:

Any

Examples using Operation