Class: Aws::Context::Types::Message

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

Overview

A single conversation turn.

Constant Summary collapse

SENSITIVE =
[:content]

Instance Attribute Summary collapse

Instance Attribute Details

#content ⇒ String

The turn's text content.

Returns:

  • (String)


5050
5051
5052
5053
5054
5055
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 5050

class Message < Struct.new(
  :role,
  :content)
  SENSITIVE = [:content]
  include Aws::Structure
end

#role ⇒ String

The role of the participant that produced this turn. Valid values:

  • USER - The user asked or said this turn.

  • ASSISTANT - The assistant answered in this turn.

Returns:

  • (String)


5050
5051
5052
5053
5054
5055
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 5050

class Message < Struct.new(
  :role,
  :content)
  SENSITIVE = [:content]
  include Aws::Structure
end