Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::A2ATask.
A2ATask is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#artifacts
def artifacts() -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::A2AArtifact>
Returns
- (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::A2AArtifact>) — Optional. A set of output artifacts for a Task.
#artifacts=
def artifacts=(value) -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::A2AArtifact>
Parameter
- value (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::A2AArtifact>) — Optional. A set of output artifacts for a Task.
Returns
- (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::A2AArtifact>) — Optional. A set of output artifacts for a Task.
#context_id
def context_id() -> ::String
Returns
- (::String) — Optional. Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.
#context_id=
def context_id=(value) -> ::String
Parameter
- value (::String) — Optional. Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.
Returns
- (::String) — Optional. Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). Created by the A2A server.
#history
def history() -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::A2AMessage>
Returns
- (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::A2AMessage>) — Optional. The history of interactions from a task.
#history=
def history=(value) -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::A2AMessage>
Parameter
- value (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::A2AMessage>) — Optional. The history of interactions from a task.
Returns
- (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::A2AMessage>) — Optional. The history of interactions from a task.
#id
def id() -> ::String
Returns
- (::String) — Optional. Unique identifier (e.g. UUID) for the task, generated by the server for a new task.
#id=
def id=(value) -> ::String
Parameter
- value (::String) — Optional. Unique identifier (e.g. UUID) for the task, generated by the server for a new task.
Returns
- (::String) — Optional. Unique identifier (e.g. UUID) for the task, generated by the server for a new task.
#metadata
def metadata() -> ::Google::Protobuf::Struct
Returns
- (::Google::Protobuf::Struct) — Optional. A key/value object to store custom metadata about a task.
#metadata=
def metadata=(value) -> ::Google::Protobuf::Struct
Parameter
- value (::Google::Protobuf::Struct) — Optional. A key/value object to store custom metadata about a task.
Returns
- (::Google::Protobuf::Struct) — Optional. A key/value object to store custom metadata about a task.
#status
def status() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::TaskStatus
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::TaskStatus) — Optional. The current status of a Task, including state and a message.
#status=
def status=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::TaskStatus
Parameter
- value (::Google::Cloud::GeminiDataAnalytics::V1beta::TaskStatus) — Optional. The current status of a Task, including state and a message.
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::TaskStatus) — Optional. The current status of a Task, including state and a message.