Class: A2A::TextPart

Inherits:
ProtocolStruct
  • Object
show all
Defined in:
lib/a2a/types/text_part.rb

Overview

Represents a part of a message containing text content.

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#metadataHash?

Returns Optional metadata associated with this text part.

Returns:

  • (Hash, nil)

    Optional metadata associated with this text part.



13
# File 'lib/a2a/types/text_part.rb', line 13

attribute? :metadata, Types::Hash.optional

#textString

Returns The text content.

Returns:

  • (String)

    The text content.



10
# File 'lib/a2a/types/text_part.rb', line 10

attribute :text, Types::String

#typeString

Returns Type identifier for this part.

Returns:

  • (String)

    Type identifier for this part.



7
# File 'lib/a2a/types/text_part.rb', line 7

attribute :type, Types::String.constant('text')