Class: Aws::BedrockRuntime::Types::SearchResultBlock

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

Overview

A search result block that enables natural citations with proper source attribution for retrieved content.

This field is only supported by Anthropic Claude Opus 4.1, Opus 4, Sonnet 4.5, Sonnet 4, Sonnet 3.7, and 3.5 Haiku models.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#citations ⇒ Types::CitationsConfig

Configuration setting for citations



4644
4645
4646
4647
4648
4649
4650
4651
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4644

class SearchResultBlock < Struct.new(
  :source,
  :title,
  :content,
  :citations)
  SENSITIVE = []
  include Aws::Structure
end

#content ⇒ Array<Types::SearchResultContentBlock>

An array of search result content block.



4644
4645
4646
4647
4648
4649
4650
4651
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4644

class SearchResultBlock < Struct.new(
  :source,
  :title,
  :content,
  :citations)
  SENSITIVE = []
  include Aws::Structure
end

#source ⇒ String

The source URL or identifier for the content.

Returns:

  • (String)


4644
4645
4646
4647
4648
4649
4650
4651
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4644

class SearchResultBlock < Struct.new(
  :source,
  :title,
  :content,
  :citations)
  SENSITIVE = []
  include Aws::Structure
end

#title ⇒ String

A descriptive title for the search result.

Returns:

  • (String)


4644
4645
4646
4647
4648
4649
4650
4651
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 4644

class SearchResultBlock < Struct.new(
  :source,
  :title,
  :content,
  :citations)
  SENSITIVE = []
  include Aws::Structure
end