Class: A2A::FilePart

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

Overview

Represents a part of a message containing file content.

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#fileFileContent

Returns The file content, provided either inline or via URI.

Returns:

  • (FileContent)

    The file content, provided either inline or via URI.



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

attribute :file, Types::Constructor(FileContent)

#metadataHash?

Returns Optional metadata associated with this file part.

Returns:

  • (Hash, nil)

    Optional metadata associated with this file part.



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

attribute? :metadata, Types::Hash.optional

#typeString

Returns Type identifier for this part.

Returns:

  • (String)

    Type identifier for this part.



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

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