Class: A2A::DataPart

Inherits:
PartBase
  • Object
show all
Defined in:
lib/a2a/types/data_part.rb

Overview

Represents a structured data segment (e.g., JSON) within a message or artifact.

Instance Method Summary collapse

Methods inherited from PartBase

#metadata

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#dataHash

Returns The structured data content.

Returns:

  • (Hash)

    The structured data content.



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

attribute :data, Types::Hash

#kindString

Returns The type of this part, used as a discriminator. Always ‘data’.

Returns:

  • (String)

    The type of this part, used as a discriminator. Always ‘data’.



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

attribute :kind, Types::String.constant('data')