From 27d4290b70f6d0ff5670c05dc9505dcac6d4dbd2 Mon Sep 17 00:00:00 2001 From: "databricks-ci-ghec-1[bot]" <184311507+databricks-ci-ghec-1[bot]@users.noreply.github.com> Date: Thu, 29 Oct 2026 03:12:30 +0000 Subject: [PATCH] Release sdk-go --- .codegen/_last_sha | 2 +- aigateway/CHANGELOG.md | 2 + aigateway/internal/version.go | 2 +- aigateway/v1/model.go | 9 +- features/CHANGELOG.md | 2 + features/internal/version.go | 2 +- features/v1/model.go | 7 +- jobs/CHANGELOG.md | 2 + jobs/internal/version.go | 2 +- jobs/v2/model.go | 276 ++++++++++++++++ jobs/v2/wire.go | 534 +++++++++++++++++++++++++++++++ modelserving/CHANGELOG.md | 2 + modelserving/internal/version.go | 2 +- modelserving/v1/model.go | 3 +- 14 files changed, 835 insertions(+), 12 deletions(-) diff --git a/.codegen/_last_sha b/.codegen/_last_sha index 82500564..b8fbe017 100644 --- a/.codegen/_last_sha +++ b/.codegen/_last_sha @@ -1 +1 @@ -1ffcd5d95ca7d798ee643728874f25352e976aaf \ No newline at end of file +da7fcfc1c46b1bf871f3a25bb82e5c2ea62cdac0 \ No newline at end of file diff --git a/aigateway/CHANGELOG.md b/aigateway/CHANGELOG.md index ac5edcac..31248bc3 100644 --- a/aigateway/CHANGELOG.md +++ b/aigateway/CHANGELOG.md @@ -1,5 +1,7 @@ # Version changelog +## Release v0.15.0 (2026-10-29) + ## Release v0.14.0 (2026-10-28) ## Release v0.13.0 (2026-10-26) diff --git a/aigateway/internal/version.go b/aigateway/internal/version.go index 5b9810a0..596ea1ba 100644 --- a/aigateway/internal/version.go +++ b/aigateway/internal/version.go @@ -2,4 +2,4 @@ package internal const ModuleName = "sdk-go-aigateway" -const Version = "0.14.0" +const Version = "0.15.0" diff --git a/aigateway/v1/model.go b/aigateway/v1/model.go index 7952e046..bf33336e 100644 --- a/aigateway/v1/model.go +++ b/aigateway/v1/model.go @@ -333,7 +333,8 @@ type ListMcpServicesRequest struct { // Required. Each `{...}` component is capped at 255 characters individually. Parent *string // Maximum number of MCP services to return. Defaults to 200 when unset or 0; - // the maximum is 200. Use `page_token` to retrieve additional pages. + // the maximum is 1000 for `view = BASIC` and 200 for `view = FULL`. Use + // `page_token` to retrieve additional pages. PageSize *int // Opaque pagination token from the previous response. PageToken *string @@ -358,7 +359,8 @@ type ListModelProviderServicesRequest struct { // Required. Each `{...}` component is capped at 255 characters individually. Parent *string // Maximum number of provider services to return. Defaults to 200 when unset or - // 0; the maximum is 200. Use `page_token` to retrieve additional pages. + // 0; the maximum is 1000 for `view = BASIC` and 200 for `view = FULL`. Use + // `page_token` to retrieve additional pages. PageSize *int // Opaque pagination token from the previous response. PageToken *string @@ -384,7 +386,8 @@ type ListModelServicesRequest struct { // Required. Each `{...}` component is capped at 255 characters individually. Parent *string // Maximum number of model services to return. Defaults to 200 when unset or 0; - // the maximum is 200. Use `page_token` to retrieve additional pages. + // the maximum is 1000 for `view = BASIC` and 200 for `view = FULL`. Use + // `page_token` to retrieve additional pages. PageSize *int // Opaque pagination token from the previous response. PageToken *string diff --git a/features/CHANGELOG.md b/features/CHANGELOG.md index d05f6983..08473400 100644 --- a/features/CHANGELOG.md +++ b/features/CHANGELOG.md @@ -1,5 +1,7 @@ # Version changelog +## Release v0.13.0 (2026-10-29) + ## Release v0.12.0 (2026-10-26) ## Release v0.11.0 (2026-10-22) diff --git a/features/internal/version.go b/features/internal/version.go index d7baf73b..5caba768 100644 --- a/features/internal/version.go +++ b/features/internal/version.go @@ -2,4 +2,4 @@ package internal const ModuleName = "sdk-go-features" -const Version = "0.12.0" +const Version = "0.13.0" diff --git a/features/v1/model.go b/features/v1/model.go index 6b780986..8990a84f 100644 --- a/features/v1/model.go +++ b/features/v1/model.go @@ -2699,8 +2699,9 @@ type TimeWindow struct { // window produces no output before start_time. If unset, tumbling and // fixed-duration sliding windows first emit at an offset-aligned boundary after // a full window can be formed. If unset, lifetime sliding windows and rolling - // windows emit as soon as eligible source data exists. Not currently supported - // for sawtooth windows or for Features with a stream source. + // windows emit as soon as eligible source data exists. For sawtooth windows, + // start_time must not be later than the time the Feature is created. Not + // supported for rolling windows on Features with a stream source. StartTime *types.Time `fieldmask:"start_time"` _ [0]timeWindowWindowTypeFieldMaskMetadata `fieldmask_oneof:"WindowType"` } @@ -2798,7 +2799,7 @@ type UpdateMaterializationSetRequest struct { // The desired state of the updated materialization set. materialization_set_id // selects the set. MaterializationSet *MaterializationSet - // The fields to update. Only 'materialized_features' is supported. + // The fields to update. Only 'materialized_features' or '*' is supported. UpdateMask *types.FieldMask[MaterializationSet] // Idempotency token for the request. A second request carrying a token that has // already been used returns the operation the first one created, whatever state diff --git a/jobs/CHANGELOG.md b/jobs/CHANGELOG.md index 172e6e42..a3dc007b 100644 --- a/jobs/CHANGELOG.md +++ b/jobs/CHANGELOG.md @@ -1,5 +1,7 @@ # Version changelog +## Release v0.7.0 (2026-10-29) + ## Release v0.6.0 (2026-10-26) ## Release v0.5.0 (2026-10-19) diff --git a/jobs/internal/version.go b/jobs/internal/version.go index 866ca4b2..dfc58624 100644 --- a/jobs/internal/version.go +++ b/jobs/internal/version.go @@ -2,4 +2,4 @@ package internal const ModuleName = "sdk-go-jobs" -const Version = "0.6.0" +const Version = "0.7.0" diff --git a/jobs/v2/model.go b/jobs/v2/model.go index 7b5f10a1..e4d1d1b3 100644 --- a/jobs/v2/model.go +++ b/jobs/v2/model.go @@ -2,6 +2,10 @@ package jobs +import ( + "github.com/databricks/sdk-go/core/types" +) + type AuthenticationMethod string const ( @@ -463,6 +467,27 @@ const ( AccessControlRequest_JobPermission_CanManage AccessControlRequest_JobPermission = "CAN_MANAGE" ) +// The extraction mode. +type AiExtractFunction_Mode string + +const ( + AiExtractFunction_Mode_Unspecified AiExtractFunction_Mode = "" + // More powerful extraction for complex schemas, long documents, and + // reasoning-heavy extractions. + AiExtractFunction_Mode_ModePrecision AiExtractFunction_Mode = "MODE_PRECISION" +) + +// An element type that AI descriptions can be generated for. +type AiParseDocumentFunction_DescriptionElementType string + +const ( + AiParseDocumentFunction_DescriptionElementType_Unspecified AiParseDocumentFunction_DescriptionElementType = "" + // All supported element types. + AiParseDocumentFunction_DescriptionElementType_DescriptionElementTypeAll AiParseDocumentFunction_DescriptionElementType = "DESCRIPTION_ELEMENT_TYPE_ALL" + // Figures. + AiParseDocumentFunction_DescriptionElementType_DescriptionElementTypeFigure AiParseDocumentFunction_DescriptionElementType = "DESCRIPTION_ELEMENT_TYPE_FIGURE" +) + // Scheduling priority class for a workload — its priority and preemptability // when the scheduler ranks pending work. type AiRuntimeTask_PriorityClass string @@ -937,6 +962,178 @@ type Adlsgen2Info struct { Destination *string } +// Configuration for a task that runs the `ai_classify` function. +// +// The label set comes from exactly one of two places: `inline_labels`, which +// holds up to 10 labels, or a Unity Catalog table named by `label_table`. Use +// `label_table` for a larger label set.. +type AiClassifyFunction struct { + // Where the labels come from. Exactly one source must be set. + LabelSource isAiClassifyFunction_LabelSource + // Global description of the task and domain, passed to the model to improve + // classification quality. + Instructions *string + // The ai_classify function version to invoke (for example, `2.1`). + Version *string + // When true, more than one label can be returned for each input. + Multilabel *bool + // When true, includes a per-label confidence score in the response. + EnableConfidenceScores *bool + // When true, includes a rationale explaining each classification in the + // response. + EnableRationales *bool +} + +type isAiClassifyFunction_LabelSource interface { + isAiClassifyFunction_LabelSource() +} + +// AiClassifyFunction_LabelSource_InlineLabels selects InlineLabels for AiClassifyFunction.LabelSource. +// Labels listed inline, for a small label set. +type AiClassifyFunction_LabelSource_InlineLabels struct { + InlineLabels AiClassifyFunction_InlineLabels +} + +func (*AiClassifyFunction_LabelSource_InlineLabels) isAiClassifyFunction_LabelSource() {} + +// A label set listed inline.. +type AiClassifyFunction_InlineLabels struct { + // The labels an input can be classified as. At least two labels are required + // unless `multilabel` is true, which also accepts a single label. + Labels []AiClassifyFunction_Label +} + +// One label the input can be classified as.. +type AiClassifyFunction_Label struct { + // The name returned when an input is classified as this label. + Name *string + // Guidance describing what belongs under this label. + Description *string +} + +// Configuration for a task that runs the `ai_extract` function. +// +// The fields to extract come from exactly one of two places: an existing AI +// Extract agent, named by `agent_id`, or the inline `schema` and +// `instructions`. Set `agent_id` or the inline fields, not both.. +type AiExtractFunction struct { + // The extraction schema defining the fields to extract, as a JSON string. + // Either an array of field names (e.g. ["company", "valuation"]) or an object + // mapping each field name to a type and an optional description. Supported + // types are string, integer, number, boolean, enum, object, and array; all + // fields are optional. + Schema *string + // Global description of the task and domain, passed to the model to improve + // extraction quality. + Instructions *string + // The ai_extract function version to invoke (for example, `2.1`). + Version *string + // The extraction mode. Defaults to standard extraction when unspecified. + Mode AiExtractFunction_Mode + // When true, includes citation metadata locating each extracted value in the + // source. + EnableCitations *bool + // When true, includes a per-field confidence score in the response. + EnableConfidenceScores *bool +} + +// A task that applies an AI function to a set of input documents or rows.. +type AiFunctionTask struct { + // The input the function is applied to. Exactly one source must be set. + Source isAiFunctionTask_Source + // Output destination table. When `table` is unset the task generates a stable + // name from the function and task identity so a downstream task can reference + // it. + Output *QualifiedName + // The AI function this task runs. Exactly one function must be set. (-- + // Modelled as a oneof rather than an enum because each function carries its own + // settings, which are added to these messages as they land. --) + Function isAiFunctionTask_Function +} + +type isAiFunctionTask_Source interface { + isAiFunctionTask_Source() +} + +// AiFunctionTask_Source_DeltaTable selects DeltaTable for AiFunctionTask.Source. +// A Unity Catalog Delta table. The function is applied to each row. +type AiFunctionTask_Source_DeltaTable struct { + DeltaTable DeltaTableSource +} + +func (*AiFunctionTask_Source_DeltaTable) isAiFunctionTask_Source() {} + +// AiFunctionTask_Source_Volume selects Volume for AiFunctionTask.Source. +// A Unity Catalog volume. The function is applied to each file. +type AiFunctionTask_Source_Volume struct { + Volume VolumeSource +} + +func (*AiFunctionTask_Source_Volume) isAiFunctionTask_Source() {} + +type isAiFunctionTask_Function interface { + isAiFunctionTask_Function() +} + +// AiFunctionTask_Function_AiParseDocument selects AiParseDocument for AiFunctionTask.Function. +// Parses the input documents into structured text. +type AiFunctionTask_Function_AiParseDocument struct { + AiParseDocument AiParseDocumentFunction +} + +func (*AiFunctionTask_Function_AiParseDocument) isAiFunctionTask_Function() {} + +// AiFunctionTask_Function_AiExtract selects AiExtract for AiFunctionTask.Function. +// Extracts structured fields from the input documents or rows. +type AiFunctionTask_Function_AiExtract struct { + AiExtract AiExtractFunction +} + +func (*AiFunctionTask_Function_AiExtract) isAiFunctionTask_Function() {} + +// AiFunctionTask_Function_AiClassify selects AiClassify for AiFunctionTask.Function. +// Classifies each input document or row into one or more labels. +type AiFunctionTask_Function_AiClassify struct { + AiClassify AiClassifyFunction +} + +func (*AiFunctionTask_Function_AiClassify) isAiFunctionTask_Function() {} + +// The result of an AI function task run. Also reported mid-run, so the counts +// can be partial.. +type AiFunctionTaskOutput struct { + // Inputs to process: rows for a Delta table source, files for a volume source. + // Stays well inside 2^53, so a JavaScript client can hold it exactly. + TotalRowCount *int64 + // Inputs with a result so far. Reported per batch, so it can lag mid-run. + SucceededRowCount *int64 + // Inputs permanently failed so far. Each lands in the output table as an error + // row, and does not on its own fail the run. + FailedRowCount *int64 + // Coarse estimate of the time left to run the function over the inputs, from + // the throughput so far. Covers that work only, not the merge into the output + // table that follows it. + EstimatedTimeRemaining *types.Duration + // The table the run writes its results to. Reported even when `output.table` is + // unset and the name is generated, so a client can read the table. + OutputTable *QualifiedName +} + +// Configuration for a task that runs the `ai_parse_document` function.. +type AiParseDocumentFunction struct { + // The ai_parse_document output schema version to invoke (for example, `2.0`). + Version *string + // Element types to generate AI descriptions for. Leave empty to generate no + // descriptions; use ALL for every supported type, or list specific types to + // restrict generation to only those. + DescriptionElementTypes []AiParseDocumentFunction_DescriptionElementType + // Unity Catalog volume path where rendered page and element images are written. + ImageOutputPath *string + // Pages to parse (1-indexed), as a comma-separated list of page numbers or + // ranges (e.g. "1,3,5-10"). + PageRange *string +} + // AiRuntimeTask: multi-node GPU compute task definition for Databricks AI // Runtime workloads. // @@ -2165,6 +2362,22 @@ type DeleteRunRequest struct { type DeleteRunResponse struct { } +// A Unity Catalog Delta table input source. The function is applied to each +// row.. +type DeltaTableSource struct { + // Fully qualified three-part name of the source table (catalog.schema.table). + TableName *string + // Name of the column holding the content the function is applied to. + InputColumn *string + // Columns that together identify a row across incremental runs, so results can + // be matched back to their source rows. When unset, the task derives an + // implicit key from Delta row tracking. If row tracking is also disabled there + // is no stable key, so each run reprocesses the entire source (a full refresh) + // rather than only the changed rows; set a key column or enable row tracking to + // keep runs incremental. + MergeKeyColumns []string +} + // DeploymentSpec: configuration for one deployment within an AiRuntimeTask. // Each entry in `AiRuntimeTask.deployments` describes a group of nodes that // share the same command and compute. Many single-program training algorithms @@ -2638,6 +2851,14 @@ type GetRunOutputResponse_Result_AiRuntimeTaskOutput struct { func (*GetRunOutputResponse_Result_AiRuntimeTaskOutput) isGetRunOutputResponse_Result() {} +// GetRunOutputResponse_Result_AiFunctionTaskOutput selects AiFunctionTaskOutput for GetRunOutputResponse.Result. +// The output of an AI function task, if available +type GetRunOutputResponse_Result_AiFunctionTaskOutput struct { + AiFunctionTaskOutput AiFunctionTaskOutput +} + +func (*GetRunOutputResponse_Result_AiFunctionTaskOutput) isGetRunOutputResponse_Result() {} + type GetRunRequest struct { // The canonical identifier of the run for which to retrieve the metadata. This // field is required. @@ -3877,6 +4098,17 @@ type PythonWheelTask struct { NamedParameters map[string]string } +// A three-level Unity Catalog name (catalog.schema.table); any level may be +// unset.. +type QualifiedName struct { + // Unity Catalog catalog. + Catalog *string + // Unity Catalog schema, within the catalog. + Schema *string + // Table, within the catalog and schema. + Table *string +} + type QueueDetails struct { Code QueueDetailsCode_Code // A descriptive message with the queuing details. This field is unstructured, @@ -4163,6 +4395,19 @@ type ResolvedValues_Resolved_AiRuntimeTask struct { func (*ResolvedValues_Resolved_AiRuntimeTask) isResolvedValues_Resolved() {} +// ResolvedValues_Resolved_AiFunctionTask selects AiFunctionTask for ResolvedValues.Resolved. +// Resolved values for an AI Function task: the Delta table input with +// upstream-task references replaced by concrete values before the run. +type ResolvedValues_Resolved_AiFunctionTask struct { + AiFunctionTask ResolvedValues_AiFunctionTaskResolvedValues +} + +func (*ResolvedValues_Resolved_AiFunctionTask) isResolvedValues_Resolved() {} + +// Resolved values for an AI Function task's Delta table input.. +type ResolvedValues_AiFunctionTaskResolvedValues struct { +} + // Resolved values for an AiRuntimeTask after dynamic-value substitution, so // Jobs can expand `{{tasks..values.}}` references before submission.. type ResolvedValues_AiRuntimeTaskResolvedValues struct { @@ -5058,6 +5303,14 @@ type RunTask_Task_AiRuntimeTask struct { func (*RunTask_Task_AiRuntimeTask) isRunTask_Task() {} +// RunTask_Task_AiFunctionTask selects AiFunctionTask for RunTask.Task. +// Applies an AI function to a set of input documents or rows. +type RunTask_Task_AiFunctionTask struct { + AiFunctionTask AiFunctionTask +} + +func (*RunTask_Task_AiFunctionTask) isRunTask_Task() {} + type isRunTask_Spec interface { isRunTask_Spec() } @@ -5350,6 +5603,14 @@ type RunTaskSettings_Task_AiRuntimeTask struct { func (*RunTaskSettings_Task_AiRuntimeTask) isRunTaskSettings_Task() {} +// RunTaskSettings_Task_AiFunctionTask selects AiFunctionTask for RunTaskSettings.Task. +// Applies an AI function to a set of input documents or rows. +type RunTaskSettings_Task_AiFunctionTask struct { + AiFunctionTask AiFunctionTask +} + +func (*RunTaskSettings_Task_AiFunctionTask) isRunTaskSettings_Task() {} + type isRunTaskSettings_Spec interface { isRunTaskSettings_Spec() } @@ -6288,6 +6549,14 @@ type TaskSettings_Task_AiRuntimeTask struct { func (*TaskSettings_Task_AiRuntimeTask) isTaskSettings_Task() {} +// TaskSettings_Task_AiFunctionTask selects AiFunctionTask for TaskSettings.Task. +// Applies an AI function to a set of input documents or rows. +type TaskSettings_Task_AiFunctionTask struct { + AiFunctionTask AiFunctionTask +} + +func (*TaskSettings_Task_AiFunctionTask) isTaskSettings_Task() {} + type isTaskSettings_Spec interface { isTaskSettings_Spec() } @@ -6501,6 +6770,13 @@ type ViewItem struct { Type ViewType } +// A Unity Catalog volume input source. The function is applied to each file.. +type VolumeSource struct { + // Unity Catalog volume path to the input files (e.g. + // `/Volumes////...`). + VolumePath *string +} + // A storage location back by UC Volumes.. type VolumesStorageInfo struct { // UC Volumes destination, e.g. diff --git a/jobs/v2/wire.go b/jobs/v2/wire.go index 600a22e8..cbba0141 100644 --- a/jobs/v2/wire.go +++ b/jobs/v2/wire.go @@ -7,6 +7,8 @@ import ( "encoding/json" "fmt" "strconv" + + "github.com/databricks/sdk-go/core/types" ) type wireInt64 int64 @@ -113,6 +115,389 @@ func adlsgen2InfoFromWire(w *adlsgen2InfoWire) (*Adlsgen2Info, error) { }, nil } +type aiClassifyFunctionWire struct { + InlineLabels *aiClassifyFunction_InlineLabelsWire `json:"inline_labels,omitempty"` + Instructions *string `json:"instructions,omitempty"` + Version *string `json:"version,omitempty"` + Multilabel *bool `json:"multilabel,omitempty"` + EnableConfidenceScores *bool `json:"enable_confidence_scores,omitempty"` + EnableRationales *bool `json:"enable_rationales,omitempty"` +} + +func aiClassifyFunctionToWire(v *AiClassifyFunction) (*aiClassifyFunctionWire, error) { + if v == nil { + return nil, nil + } + var labelSourceInlineLabelsWire *aiClassifyFunction_InlineLabelsWire + switch value := v.LabelSource.(type) { + case nil: + case *AiClassifyFunction_LabelSource_InlineLabels: + if value != nil { + labelSourceInlineLabelsConverted, err := aiClassifyFunction_InlineLabelsToWire(&value.InlineLabels) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiClassifyFunction.LabelSource.InlineLabels", err) + } + labelSourceInlineLabelsWire = labelSourceInlineLabelsConverted + } + default: + return nil, fmt.Errorf("%s: unsupported oneof implementation %T", "AiClassifyFunction.LabelSource", value) + } + return &aiClassifyFunctionWire{ + InlineLabels: labelSourceInlineLabelsWire, + Instructions: v.Instructions, + Version: v.Version, + Multilabel: v.Multilabel, + EnableConfidenceScores: v.EnableConfidenceScores, + EnableRationales: v.EnableRationales, + }, nil +} + +func aiClassifyFunctionFromWire(w *aiClassifyFunctionWire) (*AiClassifyFunction, error) { + if w == nil { + return nil, nil + } + labelSourceMembers := 0 + if w.InlineLabels != nil { + labelSourceMembers++ + } + if labelSourceMembers > 1 { + return nil, fmt.Errorf("%s: multiple oneof members set", "AiClassifyFunction.LabelSource") + } + var labelSourceSelection isAiClassifyFunction_LabelSource + switch { + case w.InlineLabels != nil: + labelSourceInlineLabelsConverted, err := aiClassifyFunction_InlineLabelsFromWire(w.InlineLabels) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiClassifyFunction.LabelSource.InlineLabels", err) + } + labelSourceSelection = &AiClassifyFunction_LabelSource_InlineLabels{InlineLabels: *labelSourceInlineLabelsConverted} + } + return &AiClassifyFunction{ + Instructions: w.Instructions, + Version: w.Version, + Multilabel: w.Multilabel, + EnableConfidenceScores: w.EnableConfidenceScores, + EnableRationales: w.EnableRationales, + LabelSource: labelSourceSelection, + }, nil +} + +type aiClassifyFunction_InlineLabelsWire struct { + Labels []aiClassifyFunction_LabelWire `json:"labels,omitempty"` +} + +func aiClassifyFunction_InlineLabelsToWire(v *AiClassifyFunction_InlineLabels) (*aiClassifyFunction_InlineLabelsWire, error) { + if v == nil { + return nil, nil + } + labelsWireValue, err := convertSlice(v.Labels, aiClassifyFunction_LabelToWire) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiClassifyFunction_InlineLabels.Labels", err) + } + return &aiClassifyFunction_InlineLabelsWire{ + Labels: labelsWireValue, + }, nil +} + +func aiClassifyFunction_InlineLabelsFromWire(w *aiClassifyFunction_InlineLabelsWire) (*AiClassifyFunction_InlineLabels, error) { + if w == nil { + return nil, nil + } + labelsPublicValue, err := convertSlice(w.Labels, aiClassifyFunction_LabelFromWire) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiClassifyFunction_InlineLabels.Labels", err) + } + return &AiClassifyFunction_InlineLabels{ + Labels: labelsPublicValue, + }, nil +} + +type aiClassifyFunction_LabelWire struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` +} + +func aiClassifyFunction_LabelToWire(v *AiClassifyFunction_Label) (*aiClassifyFunction_LabelWire, error) { + if v == nil { + return nil, nil + } + return &aiClassifyFunction_LabelWire{ + Name: v.Name, + Description: v.Description, + }, nil +} + +func aiClassifyFunction_LabelFromWire(w *aiClassifyFunction_LabelWire) (*AiClassifyFunction_Label, error) { + if w == nil { + return nil, nil + } + return &AiClassifyFunction_Label{ + Name: w.Name, + Description: w.Description, + }, nil +} + +type aiExtractFunctionWire struct { + Schema *string `json:"schema,omitempty"` + Instructions *string `json:"instructions,omitempty"` + Version *string `json:"version,omitempty"` + Mode AiExtractFunction_Mode `json:"mode,omitempty"` + EnableCitations *bool `json:"enable_citations,omitempty"` + EnableConfidenceScores *bool `json:"enable_confidence_scores,omitempty"` +} + +func aiExtractFunctionToWire(v *AiExtractFunction) (*aiExtractFunctionWire, error) { + if v == nil { + return nil, nil + } + return &aiExtractFunctionWire{ + Schema: v.Schema, + Instructions: v.Instructions, + Version: v.Version, + Mode: v.Mode, + EnableCitations: v.EnableCitations, + EnableConfidenceScores: v.EnableConfidenceScores, + }, nil +} + +func aiExtractFunctionFromWire(w *aiExtractFunctionWire) (*AiExtractFunction, error) { + if w == nil { + return nil, nil + } + return &AiExtractFunction{ + Schema: w.Schema, + Instructions: w.Instructions, + Version: w.Version, + Mode: w.Mode, + EnableCitations: w.EnableCitations, + EnableConfidenceScores: w.EnableConfidenceScores, + }, nil +} + +type aiFunctionTaskWire struct { + DeltaTable *deltaTableSourceWire `json:"delta_table,omitempty"` + Volume *volumeSourceWire `json:"volume,omitempty"` + Output *qualifiedNameWire `json:"output,omitempty"` + AiParseDocument *aiParseDocumentFunctionWire `json:"ai_parse_document,omitempty"` + AiExtract *aiExtractFunctionWire `json:"ai_extract,omitempty"` + AiClassify *aiClassifyFunctionWire `json:"ai_classify,omitempty"` +} + +func aiFunctionTaskToWire(v *AiFunctionTask) (*aiFunctionTaskWire, error) { + if v == nil { + return nil, nil + } + outputWireValue, err := qualifiedNameToWire(v.Output) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Output", err) + } + var sourceDeltaTableWire *deltaTableSourceWire + var sourceVolumeWire *volumeSourceWire + switch value := v.Source.(type) { + case nil: + case *AiFunctionTask_Source_DeltaTable: + if value != nil { + sourceDeltaTableConverted, err := deltaTableSourceToWire(&value.DeltaTable) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Source.DeltaTable", err) + } + sourceDeltaTableWire = sourceDeltaTableConverted + } + case *AiFunctionTask_Source_Volume: + if value != nil { + sourceVolumeConverted, err := volumeSourceToWire(&value.Volume) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Source.Volume", err) + } + sourceVolumeWire = sourceVolumeConverted + } + default: + return nil, fmt.Errorf("%s: unsupported oneof implementation %T", "AiFunctionTask.Source", value) + } + var functionAiParseDocumentWire *aiParseDocumentFunctionWire + var functionAiExtractWire *aiExtractFunctionWire + var functionAiClassifyWire *aiClassifyFunctionWire + switch value := v.Function.(type) { + case nil: + case *AiFunctionTask_Function_AiParseDocument: + if value != nil { + functionAiParseDocumentConverted, err := aiParseDocumentFunctionToWire(&value.AiParseDocument) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Function.AiParseDocument", err) + } + functionAiParseDocumentWire = functionAiParseDocumentConverted + } + case *AiFunctionTask_Function_AiExtract: + if value != nil { + functionAiExtractConverted, err := aiExtractFunctionToWire(&value.AiExtract) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Function.AiExtract", err) + } + functionAiExtractWire = functionAiExtractConverted + } + case *AiFunctionTask_Function_AiClassify: + if value != nil { + functionAiClassifyConverted, err := aiClassifyFunctionToWire(&value.AiClassify) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Function.AiClassify", err) + } + functionAiClassifyWire = functionAiClassifyConverted + } + default: + return nil, fmt.Errorf("%s: unsupported oneof implementation %T", "AiFunctionTask.Function", value) + } + return &aiFunctionTaskWire{ + DeltaTable: sourceDeltaTableWire, + Volume: sourceVolumeWire, + Output: outputWireValue, + AiParseDocument: functionAiParseDocumentWire, + AiExtract: functionAiExtractWire, + AiClassify: functionAiClassifyWire, + }, nil +} + +func aiFunctionTaskFromWire(w *aiFunctionTaskWire) (*AiFunctionTask, error) { + if w == nil { + return nil, nil + } + sourceMembers := 0 + if w.DeltaTable != nil { + sourceMembers++ + } + if w.Volume != nil { + sourceMembers++ + } + if sourceMembers > 1 { + return nil, fmt.Errorf("%s: multiple oneof members set", "AiFunctionTask.Source") + } + functionMembers := 0 + if w.AiParseDocument != nil { + functionMembers++ + } + if w.AiExtract != nil { + functionMembers++ + } + if w.AiClassify != nil { + functionMembers++ + } + if functionMembers > 1 { + return nil, fmt.Errorf("%s: multiple oneof members set", "AiFunctionTask.Function") + } + outputPublicValue, err := qualifiedNameFromWire(w.Output) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Output", err) + } + var sourceSelection isAiFunctionTask_Source + switch { + case w.DeltaTable != nil: + sourceDeltaTableConverted, err := deltaTableSourceFromWire(w.DeltaTable) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Source.DeltaTable", err) + } + sourceSelection = &AiFunctionTask_Source_DeltaTable{DeltaTable: *sourceDeltaTableConverted} + case w.Volume != nil: + sourceVolumeConverted, err := volumeSourceFromWire(w.Volume) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Source.Volume", err) + } + sourceSelection = &AiFunctionTask_Source_Volume{Volume: *sourceVolumeConverted} + } + var functionSelection isAiFunctionTask_Function + switch { + case w.AiParseDocument != nil: + functionAiParseDocumentConverted, err := aiParseDocumentFunctionFromWire(w.AiParseDocument) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Function.AiParseDocument", err) + } + functionSelection = &AiFunctionTask_Function_AiParseDocument{AiParseDocument: *functionAiParseDocumentConverted} + case w.AiExtract != nil: + functionAiExtractConverted, err := aiExtractFunctionFromWire(w.AiExtract) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Function.AiExtract", err) + } + functionSelection = &AiFunctionTask_Function_AiExtract{AiExtract: *functionAiExtractConverted} + case w.AiClassify != nil: + functionAiClassifyConverted, err := aiClassifyFunctionFromWire(w.AiClassify) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTask.Function.AiClassify", err) + } + functionSelection = &AiFunctionTask_Function_AiClassify{AiClassify: *functionAiClassifyConverted} + } + return &AiFunctionTask{ + Output: outputPublicValue, + Source: sourceSelection, + Function: functionSelection, + }, nil +} + +type aiFunctionTaskOutputWire struct { + TotalRowCount *wireInt64 `json:"total_row_count,omitempty"` + SucceededRowCount *wireInt64 `json:"succeeded_row_count,omitempty"` + FailedRowCount *wireInt64 `json:"failed_row_count,omitempty"` + EstimatedTimeRemaining *types.Duration `json:"estimated_time_remaining,omitempty"` + OutputTable *qualifiedNameWire `json:"output_table,omitempty"` +} + +func aiFunctionTaskOutputFromWire(w *aiFunctionTaskOutputWire) (*AiFunctionTaskOutput, error) { + if w == nil { + return nil, nil + } + totalRowCountPublicValue, err := int64FromWire(w.TotalRowCount) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTaskOutput.TotalRowCount", err) + } + succeededRowCountPublicValue, err := int64FromWire(w.SucceededRowCount) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTaskOutput.SucceededRowCount", err) + } + failedRowCountPublicValue, err := int64FromWire(w.FailedRowCount) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTaskOutput.FailedRowCount", err) + } + outputTablePublicValue, err := qualifiedNameFromWire(w.OutputTable) + if err != nil { + return nil, fmt.Errorf("%s: %w", "AiFunctionTaskOutput.OutputTable", err) + } + return &AiFunctionTaskOutput{ + TotalRowCount: totalRowCountPublicValue, + SucceededRowCount: succeededRowCountPublicValue, + FailedRowCount: failedRowCountPublicValue, + EstimatedTimeRemaining: w.EstimatedTimeRemaining, + OutputTable: outputTablePublicValue, + }, nil +} + +type aiParseDocumentFunctionWire struct { + Version *string `json:"version,omitempty"` + DescriptionElementTypes []AiParseDocumentFunction_DescriptionElementType `json:"description_element_types,omitempty"` + ImageOutputPath *string `json:"image_output_path,omitempty"` + PageRange *string `json:"page_range,omitempty"` +} + +func aiParseDocumentFunctionToWire(v *AiParseDocumentFunction) (*aiParseDocumentFunctionWire, error) { + if v == nil { + return nil, nil + } + return &aiParseDocumentFunctionWire{ + Version: v.Version, + DescriptionElementTypes: v.DescriptionElementTypes, + ImageOutputPath: v.ImageOutputPath, + PageRange: v.PageRange, + }, nil +} + +func aiParseDocumentFunctionFromWire(w *aiParseDocumentFunctionWire) (*AiParseDocumentFunction, error) { + if w == nil { + return nil, nil + } + return &AiParseDocumentFunction{ + Version: w.Version, + DescriptionElementTypes: w.DescriptionElementTypes, + ImageOutputPath: w.ImageOutputPath, + PageRange: w.PageRange, + }, nil +} + type aiRuntimeTaskWire struct { Experiment *string `json:"experiment,omitempty"` Deployments []deploymentSpecWire `json:"deployments,omitempty"` @@ -1914,6 +2299,34 @@ func deleteRunRequestToWire(v *DeleteRunRequest) (*deleteRunRequestWire, error) }, nil } +type deltaTableSourceWire struct { + TableName *string `json:"table_name,omitempty"` + InputColumn *string `json:"input_column,omitempty"` + MergeKeyColumns []string `json:"merge_key_columns,omitempty"` +} + +func deltaTableSourceToWire(v *DeltaTableSource) (*deltaTableSourceWire, error) { + if v == nil { + return nil, nil + } + return &deltaTableSourceWire{ + TableName: v.TableName, + InputColumn: v.InputColumn, + MergeKeyColumns: v.MergeKeyColumns, + }, nil +} + +func deltaTableSourceFromWire(w *deltaTableSourceWire) (*DeltaTableSource, error) { + if w == nil { + return nil, nil + } + return &DeltaTableSource{ + TableName: w.TableName, + InputColumn: w.InputColumn, + MergeKeyColumns: w.MergeKeyColumns, + }, nil +} + type deploymentSpecWire struct { CommandPath *string `json:"command_path,omitempty"` Compute *computeSpecWire `json:"compute,omitempty"` @@ -2494,6 +2907,7 @@ type getRunOutputResponseWire struct { DbtPlatformOutput *dbtPlatformTaskOutputWire `json:"dbt_platform_output,omitempty"` AlertOutput *alertTaskOutputWire `json:"alert_output,omitempty"` AiRuntimeTaskOutput *aiRuntimeTaskOutputWire `json:"ai_runtime_task_output,omitempty"` + AiFunctionTaskOutput *aiFunctionTaskOutputWire `json:"ai_function_task_output,omitempty"` Logs *string `json:"logs,omitempty"` LogsTruncated *bool `json:"logs_truncated,omitempty"` ErrorTrace *string `json:"error_trace,omitempty"` @@ -2534,6 +2948,9 @@ func getRunOutputResponseFromWire(w *getRunOutputResponseWire) (*GetRunOutputRes if w.AiRuntimeTaskOutput != nil { resultMembers++ } + if w.AiFunctionTaskOutput != nil { + resultMembers++ + } if resultMembers > 1 { return nil, fmt.Errorf("%s: multiple oneof members set", "GetRunOutputResponse.Result") } @@ -2603,6 +3020,12 @@ func getRunOutputResponseFromWire(w *getRunOutputResponseWire) (*GetRunOutputRes return nil, fmt.Errorf("%s: %w", "GetRunOutputResponse.Result.AiRuntimeTaskOutput", err) } resultSelection = &GetRunOutputResponse_Result_AiRuntimeTaskOutput{AiRuntimeTaskOutput: *resultAiRuntimeTaskOutputConverted} + case w.AiFunctionTaskOutput != nil: + resultAiFunctionTaskOutputConverted, err := aiFunctionTaskOutputFromWire(w.AiFunctionTaskOutput) + if err != nil { + return nil, fmt.Errorf("%s: %w", "GetRunOutputResponse.Result.AiFunctionTaskOutput", err) + } + resultSelection = &GetRunOutputResponse_Result_AiFunctionTaskOutput{AiFunctionTaskOutput: *resultAiFunctionTaskOutputConverted} } return &GetRunOutputResponse{ Metadata: metadataPublicValue, @@ -4815,6 +5238,34 @@ func pythonWheelTaskFromWire(w *pythonWheelTaskWire) (*PythonWheelTask, error) { }, nil } +type qualifiedNameWire struct { + Catalog *string `json:"catalog,omitempty"` + Schema *string `json:"schema,omitempty"` + Table *string `json:"table,omitempty"` +} + +func qualifiedNameToWire(v *QualifiedName) (*qualifiedNameWire, error) { + if v == nil { + return nil, nil + } + return &qualifiedNameWire{ + Catalog: v.Catalog, + Schema: v.Schema, + Table: v.Table, + }, nil +} + +func qualifiedNameFromWire(w *qualifiedNameWire) (*QualifiedName, error) { + if w == nil { + return nil, nil + } + return &QualifiedName{ + Catalog: w.Catalog, + Schema: w.Schema, + Table: w.Table, + }, nil +} + type queueDetailsWire struct { Code QueueDetailsCode_Code `json:"code,omitempty"` Message *string `json:"message,omitempty"` @@ -5036,6 +5487,7 @@ type resolvedValuesWire struct { SimulationTask *resolvedValues_SimulationTaskResolvedValuesWire `json:"simulation_task,omitempty"` PipelineTask *resolvedValues_PipelineTaskResolvedValuesWire `json:"pipeline_task,omitempty"` AiRuntimeTask *resolvedValues_AiRuntimeTaskResolvedValuesWire `json:"ai_runtime_task,omitempty"` + AiFunctionTask *resolvedValues_AiFunctionTaskResolvedValuesWire `json:"ai_function_task,omitempty"` } func resolvedValuesFromWire(w *resolvedValuesWire) (*ResolvedValues, error) { @@ -5079,6 +5531,9 @@ func resolvedValuesFromWire(w *resolvedValuesWire) (*ResolvedValues, error) { if w.AiRuntimeTask != nil { resolvedMembers++ } + if w.AiFunctionTask != nil { + resolvedMembers++ + } if resolvedMembers > 1 { return nil, fmt.Errorf("%s: multiple oneof members set", "ResolvedValues.Resolved") } @@ -5156,12 +5611,28 @@ func resolvedValuesFromWire(w *resolvedValuesWire) (*ResolvedValues, error) { return nil, fmt.Errorf("%s: %w", "ResolvedValues.Resolved.AiRuntimeTask", err) } resolvedSelection = &ResolvedValues_Resolved_AiRuntimeTask{AiRuntimeTask: *resolvedAiRuntimeTaskConverted} + case w.AiFunctionTask != nil: + resolvedAiFunctionTaskConverted, err := resolvedValues_AiFunctionTaskResolvedValuesFromWire(w.AiFunctionTask) + if err != nil { + return nil, fmt.Errorf("%s: %w", "ResolvedValues.Resolved.AiFunctionTask", err) + } + resolvedSelection = &ResolvedValues_Resolved_AiFunctionTask{AiFunctionTask: *resolvedAiFunctionTaskConverted} } return &ResolvedValues{ Resolved: resolvedSelection, }, nil } +type resolvedValues_AiFunctionTaskResolvedValuesWire struct { +} + +func resolvedValues_AiFunctionTaskResolvedValuesFromWire(w *resolvedValues_AiFunctionTaskResolvedValuesWire) (*ResolvedValues_AiFunctionTaskResolvedValues, error) { + if w == nil { + return nil, nil + } + return &ResolvedValues_AiFunctionTaskResolvedValues{}, nil +} + type resolvedValues_AiRuntimeTaskResolvedValuesWire struct { } @@ -5797,6 +6268,7 @@ type runTaskWire struct { DbtPlatformTask *dbtPlatformTaskWire `json:"dbt_platform_task,omitempty"` PythonOperatorTask *pythonOperatorTaskWire `json:"python_operator_task,omitempty"` AiRuntimeTask *aiRuntimeTaskWire `json:"ai_runtime_task,omitempty"` + AiFunctionTask *aiFunctionTaskWire `json:"ai_function_task,omitempty"` ExistingClusterId *string `json:"existing_cluster_id,omitempty"` NewCluster *clusterSpec_NewClusterWire `json:"new_cluster,omitempty"` JobClusterKey *string `json:"job_cluster_key,omitempty"` @@ -5886,6 +6358,9 @@ func runTaskFromWire(w *runTaskWire) (*RunTask, error) { if w.AiRuntimeTask != nil { taskMembers++ } + if w.AiFunctionTask != nil { + taskMembers++ + } if taskMembers > 1 { return nil, fmt.Errorf("%s: multiple oneof members set", "RunTask.Task") } @@ -6109,6 +6584,12 @@ func runTaskFromWire(w *runTaskWire) (*RunTask, error) { return nil, fmt.Errorf("%s: %w", "RunTask.Task.AiRuntimeTask", err) } taskSelection = &RunTask_Task_AiRuntimeTask{AiRuntimeTask: *taskAiRuntimeTaskConverted} + case w.AiFunctionTask != nil: + taskAiFunctionTaskConverted, err := aiFunctionTaskFromWire(w.AiFunctionTask) + if err != nil { + return nil, fmt.Errorf("%s: %w", "RunTask.Task.AiFunctionTask", err) + } + taskSelection = &RunTask_Task_AiFunctionTask{AiFunctionTask: *taskAiFunctionTaskConverted} } var specSelection isRunTask_Spec switch { @@ -6197,6 +6678,7 @@ type runTaskSettingsWire struct { DbtPlatformTask *dbtPlatformTaskWire `json:"dbt_platform_task,omitempty"` PythonOperatorTask *pythonOperatorTaskWire `json:"python_operator_task,omitempty"` AiRuntimeTask *aiRuntimeTaskWire `json:"ai_runtime_task,omitempty"` + AiFunctionTask *aiFunctionTaskWire `json:"ai_function_task,omitempty"` ExistingClusterId *string `json:"existing_cluster_id,omitempty"` NewCluster *clusterSpec_NewClusterWire `json:"new_cluster,omitempty"` JobClusterKey *string `json:"job_cluster_key,omitempty"` @@ -6269,6 +6751,7 @@ func runTaskSettingsToWire(v *RunTaskSettings) (*runTaskSettingsWire, error) { var taskDbtPlatformTaskWire *dbtPlatformTaskWire var taskPythonOperatorTaskWire *pythonOperatorTaskWire var taskAiRuntimeTaskWire *aiRuntimeTaskWire + var taskAiFunctionTaskWire *aiFunctionTaskWire switch value := v.Task.(type) { case nil: case *RunTaskSettings_Task_NotebookTask: @@ -6431,6 +6914,14 @@ func runTaskSettingsToWire(v *RunTaskSettings) (*runTaskSettingsWire, error) { } taskAiRuntimeTaskWire = taskAiRuntimeTaskConverted } + case *RunTaskSettings_Task_AiFunctionTask: + if value != nil { + taskAiFunctionTaskConverted, err := aiFunctionTaskToWire(&value.AiFunctionTask) + if err != nil { + return nil, fmt.Errorf("%s: %w", "RunTaskSettings.Task.AiFunctionTask", err) + } + taskAiFunctionTaskWire = taskAiFunctionTaskConverted + } default: return nil, fmt.Errorf("%s: unsupported oneof implementation %T", "RunTaskSettings.Task", value) } @@ -6492,6 +6983,7 @@ func runTaskSettingsToWire(v *RunTaskSettings) (*runTaskSettingsWire, error) { DbtPlatformTask: taskDbtPlatformTaskWire, PythonOperatorTask: taskPythonOperatorTaskWire, AiRuntimeTask: taskAiRuntimeTaskWire, + AiFunctionTask: taskAiFunctionTaskWire, ExistingClusterId: specExistingClusterIdWire, NewCluster: specNewClusterWire, JobClusterKey: specJobClusterKeyWire, @@ -7807,6 +8299,7 @@ type taskSettingsWire struct { DbtPlatformTask *dbtPlatformTaskWire `json:"dbt_platform_task,omitempty"` PythonOperatorTask *pythonOperatorTaskWire `json:"python_operator_task,omitempty"` AiRuntimeTask *aiRuntimeTaskWire `json:"ai_runtime_task,omitempty"` + AiFunctionTask *aiFunctionTaskWire `json:"ai_function_task,omitempty"` ExistingClusterId *string `json:"existing_cluster_id,omitempty"` NewCluster *clusterSpec_NewClusterWire `json:"new_cluster,omitempty"` JobClusterKey *string `json:"job_cluster_key,omitempty"` @@ -7879,6 +8372,7 @@ func taskSettingsToWire(v *TaskSettings) (*taskSettingsWire, error) { var taskDbtPlatformTaskWire *dbtPlatformTaskWire var taskPythonOperatorTaskWire *pythonOperatorTaskWire var taskAiRuntimeTaskWire *aiRuntimeTaskWire + var taskAiFunctionTaskWire *aiFunctionTaskWire switch value := v.Task.(type) { case nil: case *TaskSettings_Task_NotebookTask: @@ -8041,6 +8535,14 @@ func taskSettingsToWire(v *TaskSettings) (*taskSettingsWire, error) { } taskAiRuntimeTaskWire = taskAiRuntimeTaskConverted } + case *TaskSettings_Task_AiFunctionTask: + if value != nil { + taskAiFunctionTaskConverted, err := aiFunctionTaskToWire(&value.AiFunctionTask) + if err != nil { + return nil, fmt.Errorf("%s: %w", "TaskSettings.Task.AiFunctionTask", err) + } + taskAiFunctionTaskWire = taskAiFunctionTaskConverted + } default: return nil, fmt.Errorf("%s: unsupported oneof implementation %T", "TaskSettings.Task", value) } @@ -8102,6 +8604,7 @@ func taskSettingsToWire(v *TaskSettings) (*taskSettingsWire, error) { DbtPlatformTask: taskDbtPlatformTaskWire, PythonOperatorTask: taskPythonOperatorTaskWire, AiRuntimeTask: taskAiRuntimeTaskWire, + AiFunctionTask: taskAiFunctionTaskWire, ExistingClusterId: specExistingClusterIdWire, NewCluster: specNewClusterWire, JobClusterKey: specJobClusterKeyWire, @@ -8185,6 +8688,9 @@ func taskSettingsFromWire(w *taskSettingsWire) (*TaskSettings, error) { if w.AiRuntimeTask != nil { taskMembers++ } + if w.AiFunctionTask != nil { + taskMembers++ + } if taskMembers > 1 { return nil, fmt.Errorf("%s: multiple oneof members set", "TaskSettings.Task") } @@ -8356,6 +8862,12 @@ func taskSettingsFromWire(w *taskSettingsWire) (*TaskSettings, error) { return nil, fmt.Errorf("%s: %w", "TaskSettings.Task.AiRuntimeTask", err) } taskSelection = &TaskSettings_Task_AiRuntimeTask{AiRuntimeTask: *taskAiRuntimeTaskConverted} + case w.AiFunctionTask != nil: + taskAiFunctionTaskConverted, err := aiFunctionTaskFromWire(w.AiFunctionTask) + if err != nil { + return nil, fmt.Errorf("%s: %w", "TaskSettings.Task.AiFunctionTask", err) + } + taskSelection = &TaskSettings_Task_AiFunctionTask{AiFunctionTask: *taskAiFunctionTaskConverted} } var specSelection isTaskSettings_Spec switch { @@ -8802,6 +9314,28 @@ func viewItemFromWire(w *viewItemWire) (*ViewItem, error) { }, nil } +type volumeSourceWire struct { + VolumePath *string `json:"volume_path,omitempty"` +} + +func volumeSourceToWire(v *VolumeSource) (*volumeSourceWire, error) { + if v == nil { + return nil, nil + } + return &volumeSourceWire{ + VolumePath: v.VolumePath, + }, nil +} + +func volumeSourceFromWire(w *volumeSourceWire) (*VolumeSource, error) { + if w == nil { + return nil, nil + } + return &VolumeSource{ + VolumePath: w.VolumePath, + }, nil +} + type volumesStorageInfoWire struct { Destination *string `json:"destination,omitempty"` } diff --git a/modelserving/CHANGELOG.md b/modelserving/CHANGELOG.md index 2fca2529..3f2d82d9 100644 --- a/modelserving/CHANGELOG.md +++ b/modelserving/CHANGELOG.md @@ -1,5 +1,7 @@ # Version changelog +## Release v0.4.0 (2026-10-29) + ## Release v0.3.0 (2026-10-13) ## Release v0.2.0 (2026-10-06) diff --git a/modelserving/internal/version.go b/modelserving/internal/version.go index 03af6f4c..97a35608 100644 --- a/modelserving/internal/version.go +++ b/modelserving/internal/version.go @@ -2,4 +2,4 @@ package internal const ModuleName = "sdk-go-modelserving" -const Version = "0.3.0" +const Version = "0.4.0" diff --git a/modelserving/v1/model.go b/modelserving/v1/model.go index c5781e7c..30e0b12b 100644 --- a/modelserving/v1/model.go +++ b/modelserving/v1/model.go @@ -916,7 +916,8 @@ type PtServedModel struct { // **catalog_name.schema_name.model_name**. EntityName *string EntityVersion *string - // The number of model units to be provisioned. + // The number of model units to be provisioned. Dedicated inference requires + // positive fixed capacity and does not support scale-to-zero. ProvisionedModelUnits *int64 // Whether burst scaling is enabled. When enabled (default), the endpoint can // automatically scale up beyond provisioned capacity to handle traffic spikes.