Interface SearchPublicRecordsRequest.Builder

  • Method Details

    • searchQuery

      SearchPublicRecordsRequest.Builder searchQuery(String searchQuery)

      Free-text natural-language query (ARD text). Drives semantic + lexical ranking.

      Parameters:
      searchQuery - Free-text natural-language query (ARD text). Drives semantic + lexical ranking.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filters

      Structured filter narrowing the results, in the grammar of Agent Registry's SearchDiscoverableRegistryRecords filters: $eq, $ne and $in on a field, with $and or $or over single-condition objects, never nested. Fields are identifier, domain, recordType, descriptorType, provenance and recordVersion, and identifier also takes $prefix. For example {"recordType": {"$eq": "AGENT"}} or {"$or": [{"recordType": {"$eq": "MCP"}}, {"domain": {"$eq": "acme.com"}}]} .

      Limits, the same ones Agent Registry applies: at most 10 conditions, `$in` takes 1-25 values, values are strings of 1-512 characters, and `{}` is invalid. A `document` can't carry `@length`, so the service enforces these and answers a filter past them with a ValidationException, as Agent Registry does.

      Parameters:
      filters - Structured filter narrowing the results, in the grammar of Agent Registry's SearchDiscoverableRegistryRecords filters: $eq, $ne and $in on a field, with $and or $or over single-condition objects, never nested. Fields are identifier, domain, recordType, descriptorType, provenance and recordVersion, and identifier also takes $prefix. For example {"recordType": {"$eq": "AGENT"}} or {"$or": [{"recordType": {"$eq": "MCP"}}, {"domain": {"$eq": "acme.com"}}]} .

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxResults

      Max records per page. Default 20, max 100.

      Parameters:
      maxResults - Max records per page. Default 20, max 100.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      Opaque composite-cursor pagination token (O-DM12).

      Parameters:
      nextToken - Opaque composite-cursor pagination token (O-DM12).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      SearchPublicRecordsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.