Google Cloud Dialogflow V2 Client - Class QueryGenerationDebugInfo (2.8.1)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class QueryGenerationDebugInfo.

Debug information and model metadata for query generation.

Generated from protobuf message google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo

Namespace

Google \ Cloud \ Dialogflow \ V2 \ KnowledgeAssistDebugInfo

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ prompt_token_count int

The total number of tokens in the prompt.

↳ candidates_token_count int

The total number of tokens in the generated candidates.

↳ total_token_count int

The total number of tokens for the entire request.

↳ thinking_level string

The thinking level configured for the Gemini model.

↳ thinking_budget_tokens int

The thinking budget (in number of tokens) configured for the Gemini model.

↳ similarity_to_last_query float

The similarity score of the suggested query to the last suggested query.

↳ similarity_to_last_query_threshold float

The similarity threshold used to filter out queries similar to the last suggestion.

getPromptTokenCount

The total number of tokens in the prompt.

Returns
Type Description
int

setPromptTokenCount

The total number of tokens in the prompt.

Parameter
Name Description
var int
Returns
Type Description
$this

getCandidatesTokenCount

The total number of tokens in the generated candidates.

Returns
Type Description
int

setCandidatesTokenCount

The total number of tokens in the generated candidates.

Parameter
Name Description
var int
Returns
Type Description
$this

getTotalTokenCount

The total number of tokens for the entire request.

Returns
Type Description
int

setTotalTokenCount

The total number of tokens for the entire request.

Parameter
Name Description
var int
Returns
Type Description
$this

getThinkingLevel

The thinking level configured for the Gemini model.

Returns
Type Description
string

setThinkingLevel

The thinking level configured for the Gemini model.

Parameter
Name Description
var string
Returns
Type Description
$this

getThinkingBudgetTokens

The thinking budget (in number of tokens) configured for the Gemini model.

Returns
Type Description
int

setThinkingBudgetTokens

The thinking budget (in number of tokens) configured for the Gemini model.

Parameter
Name Description
var int
Returns
Type Description
$this

getSimilarityToLastQuery

The similarity score of the suggested query to the last suggested query.

Returns
Type Description
float

setSimilarityToLastQuery

The similarity score of the suggested query to the last suggested query.

Parameter
Name Description
var float
Returns
Type Description
$this

getSimilarityToLastQueryThreshold

The similarity threshold used to filter out queries similar to the last suggestion.

Returns
Type Description
float

setSimilarityToLastQueryThreshold

The similarity threshold used to filter out queries similar to the last suggestion.

Parameter
Name Description
var float
Returns
Type Description
$this