Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::KnowledgeAssistDebugInfo::QueryGenerationDebugInfo (v1.16.1)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::KnowledgeAssistDebugInfo::QueryGenerationDebugInfo.

Token usage metadata for query generation.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#candidates_token_count

def candidates_token_count() -> ::Integer
Returns
  • (::Integer) — The total number of tokens in the generated candidates.

#candidates_token_count=

def candidates_token_count=(value) -> ::Integer
Parameter
  • value (::Integer) — The total number of tokens in the generated candidates.
Returns
  • (::Integer) — The total number of tokens in the generated candidates.

#prompt_token_count

def prompt_token_count() -> ::Integer
Returns
  • (::Integer) — The total number of tokens in the prompt.

#prompt_token_count=

def prompt_token_count=(value) -> ::Integer
Parameter
  • value (::Integer) — The total number of tokens in the prompt.
Returns
  • (::Integer) — The total number of tokens in the prompt.

#total_token_count

def total_token_count() -> ::Integer
Returns
  • (::Integer) — The total number of tokens for the entire request.

#total_token_count=

def total_token_count=(value) -> ::Integer
Parameter
  • value (::Integer) — The total number of tokens for the entire request.
Returns
  • (::Integer) — The total number of tokens for the entire request.