StructuredQuery#

class langchain_core.structured_query.StructuredQuery[source]#

Bases: Expr

Structured query.

Create a StructuredQuery.

Parameters:
  • query – The query string.

  • filter – The filtering expression.

  • limit – The limit on the number of results.

param filter: FilterDirective | None [Required]#

Filtering expression.

param limit: int | None [Required]#

Limit on the number of results.

param query: str [Required]#

Query string.

accept(visitor: Visitor) Any#

Accept a visitor.

Parameters:

visitor (Visitor) – visitor to accept.

Returns:

result of visiting.

Return type:

Any

Examples using StructuredQuery