Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1AgentInteraction

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

Overview

Interaction for generating the completion using agents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1AgentInteraction

Returns a new instance of GenaiVertexV1beta1AgentInteraction.



945
946
947
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 945

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

Instance Attribute Details

#agentString

The name of the Agent used for generating the completion. Corresponds to the JSON property agent

Returns:

  • (String)


928
929
930
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 928

def agent
  @agent
end

#deep_research_configGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1DeepResearchAgentConfig

Configuration for the Deep Research agent. Corresponds to the JSON property deepResearchConfig



933
934
935
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 933

def deep_research_config
  @deep_research_config
end

#dynamic_configGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1DynamicAgentConfig

Configuration for dynamic agents. Corresponds to the JSON property dynamicConfig



938
939
940
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 938

def dynamic_config
  @dynamic_config
end

#max_total_tokensFixnum

Max total tokens for the agent run. Corresponds to the JSON property maxTotalTokens

Returns:

  • (Fixnum)


943
944
945
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 943

def max_total_tokens
  @max_total_tokens
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



950
951
952
953
954
955
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 950

def update!(**args)
  @agent = args[:agent] if args.key?(:agent)
  @deep_research_config = args[:deep_research_config] if args.key?(:deep_research_config)
  @dynamic_config = args[:dynamic_config] if args.key?(:dynamic_config)
  @max_total_tokens = args[:max_total_tokens] if args.key?(:max_total_tokens)
end