Class: Google::Apis::BigqueryV2::GenAiFunctionStats
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::GenAiFunctionStats
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Overview
Provides statistics for each Ai function call within a query.
Instance Attribute Summary collapse
-
#cost_optimization_stats ⇒ Google::Apis::BigqueryV2::GenAiFunctionCostOptimizationStats
Provides cost optimization statistics for a GenAi function call.
-
#error_stats ⇒ Google::Apis::BigqueryV2::GenAiFunctionErrorStats
Provides error statistics for a GenAi function call.
-
#function_name ⇒ String
Name of the function.
-
#num_processed_rows ⇒ Fixnum
Number of rows processed by this GenAi function.
-
#prompt ⇒ String
User input prompt of the function (truncated to 20 chars).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenAiFunctionStats
constructor
A new instance of GenAiFunctionStats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenAiFunctionStats
Returns a new instance of GenAiFunctionStats.
3819 3820 3821 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3819 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cost_optimization_stats ⇒ Google::Apis::BigqueryV2::GenAiFunctionCostOptimizationStats
Provides cost optimization statistics for a GenAi function call.
Corresponds to the JSON property costOptimizationStats
3796 3797 3798 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3796 def cost_optimization_stats @cost_optimization_stats end |
#error_stats ⇒ Google::Apis::BigqueryV2::GenAiFunctionErrorStats
Provides error statistics for a GenAi function call.
Corresponds to the JSON property errorStats
3801 3802 3803 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3801 def error_stats @error_stats end |
#function_name ⇒ String
Name of the function.
Corresponds to the JSON property functionName
3806 3807 3808 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3806 def function_name @function_name end |
#num_processed_rows ⇒ Fixnum
Number of rows processed by this GenAi function. This includes all
cost_optimized, llm_inferred and failed_rows.
Corresponds to the JSON property numProcessedRows
3812 3813 3814 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3812 def num_processed_rows @num_processed_rows end |
#prompt ⇒ String
User input prompt of the function (truncated to 20 chars).
Corresponds to the JSON property prompt
3817 3818 3819 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3817 def prompt @prompt end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3824 3825 3826 3827 3828 3829 3830 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3824 def update!(**args) @cost_optimization_stats = args[:cost_optimization_stats] if args.key?(:cost_optimization_stats) @error_stats = args[:error_stats] if args.key?(:error_stats) @function_name = args[:function_name] if args.key?(:function_name) @num_processed_rows = args[:num_processed_rows] if args.key?(:num_processed_rows) @prompt = args[:prompt] if args.key?(:prompt) end |