Class: Aws::Context::Types::AgenticRetrieveResultEvent

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

Overview

The final event of a successful stream: the answer and the ranked retrieved context.

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)


534
535
536
537
538
539
540
541
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 534

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

#citations ⇒ Array<Types::Citation>

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

Returns:



534
535
536
537
538
539
540
541
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 534

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

#event_type ⇒ Object

Returns the value of attribute event_type

Returns:

  • (Object) —

    the current value of event_type



534
535
536
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 534

def event_type
  @event_type
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:



534
535
536
537
538
539
540
541
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 534

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