Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2KnowledgeAssistDebugInfoQueryGenerationDebugInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2KnowledgeAssistDebugInfoQueryGenerationDebugInfo

Returns a new instance of GoogleCloudDialogflowV2KnowledgeAssistDebugInfoQueryGenerationDebugInfo.



17537
17538
17539
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17537

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

Instance Attribute Details

#candidates_token_countFixnum

Corresponds to the JSON property candidatesTokenCount

Returns:

  • (Fixnum)


17505
17506
17507
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17505

def candidates_token_count
  @candidates_token_count
end

#prompt_token_countFixnum

Corresponds to the JSON property promptTokenCount

Returns:

  • (Fixnum)


17510
17511
17512
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17510

def prompt_token_count
  @prompt_token_count
end

#similarity_to_last_queryFloat

Corresponds to the JSON property similarityToLastQuery

Returns:

  • (Float)


17515
17516
17517
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17515

def similarity_to_last_query
  @similarity_to_last_query
end

#similarity_to_last_query_thresholdFloat

Corresponds to the JSON property similarityToLastQueryThreshold

Returns:

  • (Float)


17520
17521
17522
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17520

def similarity_to_last_query_threshold
  @similarity_to_last_query_threshold
end

#thinking_budget_tokensFixnum

Corresponds to the JSON property thinkingBudgetTokens

Returns:

  • (Fixnum)


17525
17526
17527
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17525

def thinking_budget_tokens
  @thinking_budget_tokens
end

#thinking_levelString

Corresponds to the JSON property thinkingLevel

Returns:

  • (String)


17530
17531
17532
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17530

def thinking_level
  @thinking_level
end

#total_token_countFixnum

Corresponds to the JSON property totalTokenCount

Returns:

  • (Fixnum)


17535
17536
17537
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17535

def total_token_count
  @total_token_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17542
17543
17544
17545
17546
17547
17548
17549
17550
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 17542

def update!(**args)
  @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
  @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
  @similarity_to_last_query = args[:similarity_to_last_query] if args.key?(:similarity_to_last_query)
  @similarity_to_last_query_threshold = args[:similarity_to_last_query_threshold] if args.key?(:similarity_to_last_query_threshold)
  @thinking_budget_tokens = args[:thinking_budget_tokens] if args.key?(:thinking_budget_tokens)
  @thinking_level = args[:thinking_level] if args.key?(:thinking_level)
  @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
end