Class: A2A::Task

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

Overview

Represents a task being processed by an agent.

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#artifactsArray<Artifact>?

(e.g., outputs, intermediate files).

Returns:

  • (Array<Artifact>, nil)

    Optional list of artifacts associated with the task



17
# File 'lib/a2a/types/task.rb', line 17

attribute? :artifacts, Types::Array.of(Types::Constructor(Artifact)).optional

#historyArray<Message>?

Returns Optional history of messages exchanged during the task.

Returns:

  • (Array<Message>, nil)

    Optional history of messages exchanged during the task.



20
# File 'lib/a2a/types/task.rb', line 20

attribute? :history, Types::Array.of(Types::Constructor(Message)).optional

#idString

Returns Unique identifier for the task.

Returns:

  • (String)

    Unique identifier for the task.



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

attribute :id, Types::String

#metadataHash?

Returns Optional metadata associated with the task.

Returns:

  • (Hash, nil)

    Optional metadata associated with the task.



23
# File 'lib/a2a/types/task.rb', line 23

attribute? :metadata, Types::Hash.optional

#session_idString?

Returns Optional identifier for the session this task belongs to.

Returns:

  • (String, nil)

    Optional identifier for the session this task belongs to.



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

attribute? :session_id, Types::String.optional

#statusTaskStatus

Returns The current status of the task.

Returns:

  • (TaskStatus)

    The current status of the task.



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

attribute :status, Types::Constructor(TaskStatus)