Class: Google::Apis::FirebaseappdistributionV1alpha::GoogleFirebaseAppdistroV1alphaGoalAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaseappdistribution_v1alpha/classes.rb,
lib/google/apis/firebaseappdistribution_v1alpha/representations.rb,
lib/google/apis/firebaseappdistribution_v1alpha/representations.rb

Overview

An action taken by the AI agent while attempting to accomplish a goal.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppdistroV1alphaGoalAction

Returns a new instance of GoogleFirebaseAppdistroV1alphaGoalAction.



821
822
823
# File 'lib/google/apis/firebaseappdistribution_v1alpha/classes.rb', line 821

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#device_actionGoogle::Apis::FirebaseappdistributionV1alpha::GoogleFirebaseAppdistroV1alphaDeviceAction

A high level action taken by the AI on the device, potentially involving multiple taps, text entries, waits, etc. Corresponds to the JSON property deviceAction



809
810
811
# File 'lib/google/apis/firebaseappdistribution_v1alpha/classes.rb', line 809

def device_action
  @device_action
end

#explanationString

Output only. An explanation justifying why the action was taken. Corresponds to the JSON property explanation

Returns:

  • (String)


814
815
816
# File 'lib/google/apis/firebaseappdistribution_v1alpha/classes.rb', line 814

def explanation
  @explanation
end

#terminal_actionGoogle::Apis::FirebaseappdistributionV1alpha::GoogleFirebaseAppdistroV1alphaTerminalAction

An action taken by the AI to end the goal. Corresponds to the JSON property terminalAction



819
820
821
# File 'lib/google/apis/firebaseappdistribution_v1alpha/classes.rb', line 819

def terminal_action
  @terminal_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



826
827
828
829
830
# File 'lib/google/apis/firebaseappdistribution_v1alpha/classes.rb', line 826

def update!(**args)
  @device_action = args[:device_action] if args.key?(:device_action)
  @explanation = args[:explanation] if args.key?(:explanation)
  @terminal_action = args[:terminal_action] if args.key?(:terminal_action)
end