Class: Aws::Context::Types::SearchAgentContextRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-context/lib/aws-sdk-context/types.rb

Overview

The request for SearchAgentContext.

Constant Summary collapse

SENSITIVE =
[:query, :filter]

Instance Attribute Summary collapse

Instance Attribute Details

#agent_context_id ⇒ String

The agent context to search, by ID or full Amazon Resource Name (ARN).

Returns:

  • (String)


6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6234

class SearchAgentContextRequest < Struct.new(
  :max_results,
  :next_token,
  :agent_context_id,
  :query,
  :filter,
  :search_type)
  SENSITIVE = [:query, :filter]
  include Aws::Structure
end

#filter ⇒ Types::SearchFilter

Optional filter on node attributes: a single comparison, or andAll of comparisons that must all match.

Returns:



6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6234

class SearchAgentContextRequest < Struct.new(
  :max_results,
  :next_token,
  :agent_context_id,
  :query,
  :filter,
  :search_type)
  SENSITIVE = [:query, :filter]
  include Aws::Structure
end

#max_results ⇒ Integer

Maximum number of results to return per page.

Returns:

  • (Integer)


6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6234

class SearchAgentContextRequest < Struct.new(
  :max_results,
  :next_token,
  :agent_context_id,
  :query,
  :filter,
  :search_type)
  SENSITIVE = [:query, :filter]
  include Aws::Structure
end

#next_token ⇒ String

Opaque continuation token from a prior response. Omit on the first page.

Returns:

  • (String)


6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6234

class SearchAgentContextRequest < Struct.new(
  :max_results,
  :next_token,
  :agent_context_id,
  :query,
  :filter,
  :search_type)
  SENSITIVE = [:query, :filter]
  include Aws::Structure
end

#query ⇒ String

The natural-language query or keywords to search for in the agent context. AWS Context interprets it based on searchType: as literal text for KEYWORD, as a semantic concept for SEMANTIC, or as both for AUTO.

Returns:

  • (String)


6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6234

class SearchAgentContextRequest < Struct.new(
  :max_results,
  :next_token,
  :agent_context_id,
  :query,
  :filter,
  :search_type)
  SENSITIVE = [:query, :filter]
  include Aws::Structure
end

#search_type ⇒ String

The search strategy to use. Valid values:

  • KEYWORD - Full-text keyword matching (BM25).

  • SEMANTIC - Vector similarity of embeddings.

  • AUTO - Keyword matches first, then semantic matches for the remaining results.

Returns:

  • (String)


6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6234

class SearchAgentContextRequest < Struct.new(
  :max_results,
  :next_token,
  :agent_context_id,
  :query,
  :filter,
  :search_type)
  SENSITIVE = [:query, :filter]
  include Aws::Structure
end