LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-corestructured_queryStructuredQuery
    Class●Since v0.1

    StructuredQuery

    Structured query.

    Copy
    StructuredQuery(
      self,
      query: str,
      filter: FilterDirective | None,
      limit: int | None = None,
      **kwargs: Any = {}
    )

    Bases

    Expr

    Parameters

    NameTypeDescription
    query*str

    The query string.

    filter*FilterDirective | None

    The filtering expression.

    limitint | None
    Default:None

    The limit on the number of results.

    Constructors

    constructor
    __init__
    NameType
    querystr
    filterFilterDirective | None
    limitint | None

    Attributes

    attribute
    query: str

    Query string.

    attribute
    filter: FilterDirective | None

    Filtering expression.

    attribute
    limit: int | None

    Limit on the number of results.

    Inherited fromExpr

    Methods

    Maccept
    —

    Accept a visitor.

    View source on GitHub