Class: Aws::Context::Types::AgenticRetrieveResponse

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

Overview

The result of a retrieval. retrievedContext is always present. A response that only asks for authorization carries authorizationRequired beside an empty retrievedContext.

Constant Summary collapse

SENSITIVE =
[:answer]

Instance Attribute Summary collapse

Instance Attribute Details

#answer ⇒ String

The synthesized natural-language answer, when one was generated.

Returns:

  • (String)


488
489
490
491
492
493
494
495
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 488

class AgenticRetrieveResponse < Struct.new(
  :retrieved_context,
  :answer,
  :citations,
  :authorization_required)
  SENSITIVE = [:answer]
  include Aws::Structure
end

#authorization_required ⇒ Types::AuthorizationRequired

Present when you must authorize access to a third-party resource. If retrievedContext is empty, no result was retrieved. Otherwise, the result leaves out one or more resources that you have not authorized. Show authorizationUrl to the user and retry after they consent.



488
489
490
491
492
493
494
495
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 488

class AgenticRetrieveResponse < Struct.new(
  :retrieved_context,
  :answer,
  :citations,
  :authorization_required)
  SENSITIVE = [:answer]
  include Aws::Structure
end

#citations ⇒ Array<Types::Citation>

Maps spans of answer to the supporting entities, when an answer was generated.

Returns:



488
489
490
491
492
493
494
495
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 488

class AgenticRetrieveResponse < Struct.new(
  :retrieved_context,
  :answer,
  :citations,
  :authorization_required)
  SENSITIVE = [:answer]
  include Aws::Structure
end

#retrieved_context ⇒ Array<Types::RetrievedContext>

The ranked, structured context that the agent assembled across all iterations, without duplicates. Always present. Each entry is a graph node, a graph edge, or a document.

Returns:



488
489
490
491
492
493
494
495
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 488

class AgenticRetrieveResponse < Struct.new(
  :retrieved_context,
  :answer,
  :citations,
  :authorization_required)
  SENSITIVE = [:answer]
  include Aws::Structure
end