Class: A2A::Artifact
- Inherits:
-
ProtocolStruct
- Object
- Dry::Struct
- ProtocolStruct
- A2A::Artifact
- Defined in:
- lib/a2a/types/artifact.rb
Overview
Represents a file, data structure, or other resource generated by an agent during a task.
Instance Method Summary collapse
-
#artifact_id ⇒ String
A unique identifier (e.g. UUID) for the artifact within the scope of the task.
-
#description ⇒ String?
An optional, human-readable description of the artifact.
-
#extensions ⇒ Array<String>?
The URIs of extensions that are relevant to this artifact.
-
#metadata ⇒ Hash?
Optional metadata for extensions.
-
#name ⇒ String?
An optional, human-readable name for the artifact.
-
#parts ⇒ Array<Part>
An array of content parts that make up the artifact.
Methods included from Extensions::CaseTransformation
Instance Method Details
#artifact_id ⇒ String
Returns A unique identifier (e.g. UUID) for the artifact within the scope of the task.
7 |
# File 'lib/a2a/types/artifact.rb', line 7 attribute :artifact_id, Types::String |
#description ⇒ String?
Returns An optional, human-readable description of the artifact.
13 |
# File 'lib/a2a/types/artifact.rb', line 13 attribute? :description, Types::String.optional |
#extensions ⇒ Array<String>?
Returns The URIs of extensions that are relevant to this artifact.
22 |
# File 'lib/a2a/types/artifact.rb', line 22 attribute? :extensions, Types::Array.of(Types::String).optional |
#metadata ⇒ Hash?
Returns Optional metadata for extensions. The key is an extension-specific identifier.
19 |
# File 'lib/a2a/types/artifact.rb', line 19 attribute? :metadata, Types::Hash.optional |
#name ⇒ String?
Returns An optional, human-readable name for the artifact.
10 |
# File 'lib/a2a/types/artifact.rb', line 10 attribute? :name, Types::String.optional |