diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 557aaf85dd..ee82f2f2fb 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -15562,7 +15562,7 @@ } } }, - "revision": "20240213", + "revision": "20240219", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -15619,7 +15619,8 @@ "HATE_SYMBOL_IMG", "CHILD_TEXT", "DANGEROUS_CONTENT", - "RECITATION_TEXT" + "RECITATION_TEXT", + "CELEBRITY_IMG" ], "enumDescriptions": [ "", @@ -15655,6 +15656,7 @@ "End of list", "", "Text category from SafetyCat v3", + "", "" ], "type": "string" @@ -15736,12 +15738,16 @@ }, "raiInfo": { "$ref": "CloudAiLargeModelsVisionRaiInfo", - "description": "RAI info for image" + "description": "RAI info for image." }, "semanticFilterResponse": { "$ref": "CloudAiLargeModelsVisionSemanticFilterResponse", "description": "Semantic filter info for image." }, + "text": { + "description": "Text/Expanded text input for imagen.", + "type": "string" + }, "uri": { "description": "Path to another storage (typically Google Cloud Storage).", "type": "string" @@ -16504,18 +16510,18 @@ "severity": { "description": "Harm severity levels in the content.", "enum": [ - "HARM_PROBABILITY_UNSPECIFIED", - "NEGLIGIBLE", - "LOW", - "MEDIUM", - "HIGH" + "HARM_SEVERITY_UNSPECIFIED", + "HARM_SEVERITY_NEGLIGIBLE", + "HARM_SEVERITY_LOW", + "HARM_SEVERITY_MEDIUM", + "HARM_SEVERITY_HIGH" ], "enumDescriptions": [ - "Harm probability unspecified.", - "Negligible level of harm.", - "Low level of harm.", - "Medium level of harm.", - "High level of harm." + "Harm severity unspecified.", + "Negligible level of harm severity.", + "Low level of harm severity.", + "Medium level of harm severity.", + "High level of harm severity." ], "type": "string" }, @@ -18901,10 +18907,18 @@ "readOnly": true, "type": "string" }, + "displayName": { + "description": "The user-defined name of the DatasetVersion. The name can be up to 128 characters long and can consist of any UTF-8 characters.", + "type": "string" + }, "etag": { "description": "Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", "type": "string" }, + "metadata": { + "description": "Required. Additional information about the DatasetVersion.", + "type": "any" + }, "name": { "description": "Output only. The resource name of the DatasetVersion.", "readOnly": true, @@ -20802,6 +20816,10 @@ "description": "Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last part feature is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type.", "type": "string" }, + "pointOfContact": { + "description": "Entity responsible for maintaining this feature. Can be comma separated list of email addresses or URIs.", + "type": "string" + }, "updateTime": { "description": "Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was most recently updated.", "format": "google-datetime", @@ -20894,7 +20912,7 @@ "description": "Required. Immutable. The BigQuery source URI that points to either a BigQuery Table or View." }, "entityIdColumns": { - "description": "Optional. Columns to construct entity_id / row keys. Currently only supports 1 entity_id_column. If not provided defaults to `entity_id`.", + "description": "Optional. Columns to construct entity_id / row keys. If not provided defaults to `entity_id`.", "items": { "type": "string" }, @@ -21240,7 +21258,7 @@ "id": "GoogleCloudAiplatformV1FeatureViewBigQuerySource", "properties": { "entityIdColumns": { - "description": "Required. Columns to construct entity_id / row keys. Start by supporting 1 only.", + "description": "Required. Columns to construct entity_id / row keys.", "items": { "type": "string" }, @@ -21257,6 +21275,10 @@ "description": "Lookup key for a feature view.", "id": "GoogleCloudAiplatformV1FeatureViewDataKey", "properties": { + "compositeKey": { + "$ref": "GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey", + "description": "The actual Entity ID will be composed from this struct. This should match with the way ID is defined in the FeatureView spec." + }, "key": { "description": "String key to use for lookup.", "type": "string" @@ -21264,6 +21286,20 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey": { + "description": "ID that is comprised from several parts (columns).", + "id": "GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey", + "properties": { + "parts": { + "description": "Parts to construct Entity ID. Should match with the same ID columns as defined in FeatureView in the same order.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource": { "description": "A Feature Registry source for features that need to be synced to Online Store.", "id": "GoogleCloudAiplatformV1FeatureViewFeatureRegistrySource", @@ -22049,17 +22085,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1GoogleSearchRetrieval": { - "description": "Tool to retrieve public web data for grounding, powered by Google.", - "id": "GoogleCloudAiplatformV1GoogleSearchRetrieval", - "properties": { - "disableAttribution": { - "description": "Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.", - "type": "boolean" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1GroundingAttribution": { "description": "Grounding attribution.", "id": "GoogleCloudAiplatformV1GroundingAttribution", @@ -22608,7 +22633,8 @@ "LESS_EQUAL", "EQUAL", "GREATER_EQUAL", - "GREATER" + "GREATER", + "NOT_EQUAL" ], "enumDescriptions": [ "Default value of the enum.", @@ -22616,7 +22642,8 @@ "Datapoints are eligible iff their value is \u003c= the query's.", "Datapoints are eligible iff their value is == the query's.", "Datapoints are eligible iff their value is \u003e= the query's.", - "Datapoints are eligible iff their value is \u003e the query's." + "Datapoints are eligible iff their value is \u003e the query's.", + "Datapoints are eligible iff their value is != the query's." ], "type": "string" }, @@ -23757,6 +23784,7 @@ "NVIDIA_TESLA_A100", "NVIDIA_A100_80GB", "NVIDIA_L4", + "NVIDIA_H100_80GB", "TPU_V2", "TPU_V3", "TPU_V4_POD" @@ -23771,6 +23799,7 @@ "Nvidia Tesla A100 GPU.", "Nvidia A100 80GB GPU.", "Nvidia L4 GPU.", + "Nvidia H100 80Gb GPU.", "TPU v2.", "TPU v3.", "TPU v4." @@ -27075,6 +27104,7 @@ "description": "Optional. Indicates the launch stage of the model.", "enum": [ "LAUNCH_STAGE_UNSPECIFIED", + "DOGFOOD", "EXPERIMENTAL", "PRIVATE_PREVIEW", "PUBLIC_PREVIEW", @@ -27082,10 +27112,11 @@ ], "enumDescriptions": [ "The model launch stage is unspecified.", - "Used to indicate the PublisherModel is at Experimental launch stage.", - "Used to indicate the PublisherModel is at Private Preview launch stage.", - "Used to indicate the PublisherModel is at Public Preview launch stage.", - "Used to indicate the PublisherModel is at GA launch stage." + "Used to indicate the PublisherModel is at Google internal testing launch stage.", + "Used to indicate the PublisherModel is at Experimental launch stage, available to a small set of customers.", + "Used to indicate the PublisherModel is at Private Preview launch stage, only available to a small set of customers, although a larger set of customers than an Experimental launch. Previews are the first launch stage used to get feedback from customers.", + "Used to indicate the PublisherModel is at Public Preview launch stage, available to all customers, although not supported for production workloads.", + "Used to indicate the PublisherModel is at GA launch stage, available to all customers and ready for production workload." ], "type": "string" }, @@ -27885,21 +27916,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1Retrieval": { - "description": "Defines a retrieval tool that model can call to access external knowledge.", - "id": "GoogleCloudAiplatformV1Retrieval", - "properties": { - "disableAttribution": { - "description": "Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.", - "type": "boolean" - }, - "vertexAiSearch": { - "$ref": "GoogleCloudAiplatformV1VertexAISearch", - "description": "Set to use data source powered by Vertex AI Search." - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1SafetyRating": { "description": "Safety rating corresponding to the generated content.", "id": "GoogleCloudAiplatformV1SafetyRating", @@ -27946,6 +27962,37 @@ ], "readOnly": true, "type": "string" + }, + "probabilityScore": { + "description": "Output only. Harm probability score.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "severity": { + "description": "Output only. Harm severity levels in the content.", + "enum": [ + "HARM_SEVERITY_UNSPECIFIED", + "HARM_SEVERITY_NEGLIGIBLE", + "HARM_SEVERITY_LOW", + "HARM_SEVERITY_MEDIUM", + "HARM_SEVERITY_HIGH" + ], + "enumDescriptions": [ + "Harm severity unspecified.", + "Negligible level of harm severity.", + "Low level of harm severity.", + "Medium level of harm severity.", + "High level of harm severity." + ], + "readOnly": true, + "type": "string" + }, + "severityScore": { + "description": "Output only. Harm severity score.", + "format": "float", + "readOnly": true, + "type": "number" } }, "type": "object" @@ -33596,23 +33643,15 @@ "type": "object" }, "GoogleCloudAiplatformV1Tool": { - "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool.", + "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).", "id": "GoogleCloudAiplatformV1Tool", "properties": { "functionDeclarations": { - "description": "Optional. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.", + "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.", "items": { "$ref": "GoogleCloudAiplatformV1FunctionDeclaration" }, "type": "array" - }, - "googleSearchRetrieval": { - "$ref": "GoogleCloudAiplatformV1GoogleSearchRetrieval", - "description": "Optional. Specialized retrieval tool that is powered by Google search." - }, - "retrieval": { - "$ref": "GoogleCloudAiplatformV1Retrieval", - "description": "Optional. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation." } }, "type": "object" @@ -34236,17 +34275,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1VertexAISearch": { - "description": "Retrieve from Vertex AI Search datastore for grounding. See https://cloud.google.com/vertex-ai-search-and-conversation", - "id": "GoogleCloudAiplatformV1VertexAISearch", - "properties": { - "datastore": { - "description": "Required. Fully-qualified Vertex AI Search's datastore resource ID. projects/\u003c\u003e/locations/\u003c\u003e/collections/\u003c\u003e/dataStores/\u003c\u003e", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1VideoMetadata": { "description": "Metadata describes the input video content.", "id": "GoogleCloudAiplatformV1VideoMetadata", @@ -34999,6 +35027,7 @@ "GENESIS_NEWS_INSIGHTS", "CLOUD_SECURITY_PRETRAINING", "CLOUD_SECURITY_FINETUNING", + "CLOUD_SECURITY_RAG_CISA", "LABS_AQA_DSCOUT", "LABS_AQA_TAILWIND", "LABS_AQA_DELEWARE", @@ -35149,7 +35178,12 @@ "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", "CLOUD_GEMIT_CODE_IF_V1", "CLOUD_GEMIT_CODE_SELF_REPAIR", - "CLOUD_GEMIT_IDENTITY" + "CLOUD_GEMIT_IDENTITY", + "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION", + "CLOUD_GEMIT_AMPS", + "CLOUD_GEMIT_AQUA", + "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA", + "CLOUD_GEMIT_GSM8K_SCHEMA" ], "enumDescriptions": [ "", @@ -35318,6 +35352,7 @@ "Genesis fine-tune datasets.", "Cloud Security fine-tune datasets.", "", + "", "LABS AQA fine-tune datasets.", "", "", @@ -35468,6 +35503,11 @@ "", "", "", + "", + "Cloud gemit ultra FT datasets.", + "", + "", + "", "" ], "type": "string" @@ -35751,6 +35791,7 @@ "GENESIS_NEWS_INSIGHTS", "CLOUD_SECURITY_PRETRAINING", "CLOUD_SECURITY_FINETUNING", + "CLOUD_SECURITY_RAG_CISA", "LABS_AQA_DSCOUT", "LABS_AQA_TAILWIND", "LABS_AQA_DELEWARE", @@ -35901,7 +35942,12 @@ "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", "CLOUD_GEMIT_CODE_IF_V1", "CLOUD_GEMIT_CODE_SELF_REPAIR", - "CLOUD_GEMIT_IDENTITY" + "CLOUD_GEMIT_IDENTITY", + "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION", + "CLOUD_GEMIT_AMPS", + "CLOUD_GEMIT_AQUA", + "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA", + "CLOUD_GEMIT_GSM8K_SCHEMA" ], "enumDescriptions": [ "", @@ -36070,6 +36116,7 @@ "Genesis fine-tune datasets.", "Cloud Security fine-tune datasets.", "", + "", "LABS AQA fine-tune datasets.", "", "", @@ -36220,6 +36267,11 @@ "", "", "", + "", + "Cloud gemit ultra FT datasets.", + "", + "", + "", "" ], "type": "string" @@ -36512,8 +36564,6 @@ "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", "GENESIS_NEWS_INSIGHTS", - "CLOUD_SECURITY_PRETRAINING", - "CLOUD_SECURITY_FINETUNING", "LABS_AQA_DSCOUT", "LABS_AQA_TAILWIND", "LABS_AQA_DELEWARE", @@ -36549,6 +36599,9 @@ "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", "GEMIT_BRIDGE_SUFFIX_FT", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "CLOUD_SECURITY_RAG_CISA", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -36664,7 +36717,12 @@ "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", "CLOUD_GEMIT_CODE_IF_V1", "CLOUD_GEMIT_CODE_SELF_REPAIR", - "CLOUD_GEMIT_IDENTITY" + "CLOUD_GEMIT_IDENTITY", + "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION", + "CLOUD_GEMIT_AMPS", + "CLOUD_GEMIT_AQUA", + "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA", + "CLOUD_GEMIT_GSM8K_SCHEMA" ], "enumDescriptions": [ "", @@ -36831,8 +36889,6 @@ "Mobile assistant finetune datasets.", "", "Genesis fine tuned datasets.", - "Cloud Security fine tuned datasets.", - "", "LABS AQA fine-tune datasets.", "", "", @@ -36868,6 +36924,9 @@ "", "", "Gemit Bridge ULM FT dataset", + "Cloud Security fine tuned datasets.", + "", + "", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -36983,6 +37042,11 @@ "", "", "", + "", + "Cloud gemit ultra FT datasets.", + "", + "", + "", "" ], "type": "string" @@ -37264,8 +37328,6 @@ "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", "GENESIS_NEWS_INSIGHTS", - "CLOUD_SECURITY_PRETRAINING", - "CLOUD_SECURITY_FINETUNING", "LABS_AQA_DSCOUT", "LABS_AQA_TAILWIND", "LABS_AQA_DELEWARE", @@ -37301,6 +37363,9 @@ "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", "GEMIT_BRIDGE_SUFFIX_FT", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "CLOUD_SECURITY_RAG_CISA", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -37416,7 +37481,12 @@ "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", "CLOUD_GEMIT_CODE_IF_V1", "CLOUD_GEMIT_CODE_SELF_REPAIR", - "CLOUD_GEMIT_IDENTITY" + "CLOUD_GEMIT_IDENTITY", + "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION", + "CLOUD_GEMIT_AMPS", + "CLOUD_GEMIT_AQUA", + "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA", + "CLOUD_GEMIT_GSM8K_SCHEMA" ], "enumDescriptions": [ "", @@ -37583,8 +37653,6 @@ "Mobile assistant finetune datasets.", "", "Genesis fine tuned datasets.", - "Cloud Security fine tuned datasets.", - "", "LABS AQA fine-tune datasets.", "", "", @@ -37620,6 +37688,9 @@ "", "", "Gemit Bridge ULM FT dataset", + "Cloud Security fine tuned datasets.", + "", + "", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -37735,6 +37806,11 @@ "", "", "", + "", + "Cloud gemit ultra FT datasets.", + "", + "", + "", "" ], "type": "string" @@ -37876,6 +37952,186 @@ }, "type": "object" }, + "LearningGenaiRootCodeyChatMetadata": { + "description": "Stores all metadata relating to AIDA DoConversation.", + "id": "LearningGenaiRootCodeyChatMetadata", + "properties": { + "codeLanguage": { + "description": "Indicates the programming language of the code if the message is a code chunk.", + "enum": [ + "UNSPECIFIED", + "ALL", + "TEXT", + "CPP", + "PYTHON", + "KOTLIN", + "JAVA", + "JAVASCRIPT", + "GO", + "R", + "JUPYTER_NOTEBOOK", + "TYPESCRIPT", + "HTML", + "SQL", + "BASH", + "C", + "DART", + "GRADLE", + "JAVADOC", + "JSON", + "MAKEFILE", + "MARKDOWN", + "PROTO", + "XML", + "YAML" + ], + "enumDescriptions": [ + "Unspecified Language.", + "All languages.", + "Not code.", + "The most common, well-supported languages. C++ code.", + "Python code.", + "Kotlin code.", + "Java code.", + "JavaScript code.", + "Go code.", + "R code.", + "Jupyter notebook.", + "TypeScript code.", + "HTML code.", + "SQL code.", + "Other languages in alphabetical order. BASH code.", + "C code.", + "Dart code.", + "Gradle code.", + "API documentation.", + "JSON code.", + "Makefile code.", + "Markdown code.", + "Protocol buffer.", + "XML code.", + "YAML code." + ], + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootCodeyCheckpoint": { + "description": "Describes a sample at a checkpoint for post-processing.", + "id": "LearningGenaiRootCodeyCheckpoint", + "properties": { + "codeyTruncatorMetadata": { + "$ref": "LearningGenaiRootCodeyTruncatorMetadata", + "description": "Metadata that describes what was truncated at this checkpoint." + }, + "currentSample": { + "description": "Current state of the sample after truncator.", + "type": "string" + }, + "postInferenceStep": { + "description": "Postprocessor run that yielded this checkpoint.", + "enum": [ + "STEP_POST_PROCESSING_STEP_UNSPECIFIED", + "STEP_ORIGINAL_MODEL_OUTPUT", + "STEP_MODEL_OUTPUT_DEDUPLICATION", + "STEP_STOP_SEQUENCE_TRUNCATION", + "STEP_HEURISTIC_TRUNCATION", + "STEP_WALD_TRUNCATION", + "STEP_WHITESPACE_TRUNCATION", + "STEP_FINAL_DEDUPLICATION", + "STEP_TOXICITY_CHECK", + "STEP_RECITATION_CHECK", + "STEP_RETURNED", + "STEP_WALKBACK_CORRECTION", + "STEP_SCORE_THRESHOLDING", + "STEP_MODEL_CONFIG_STOP_SEQUENCE_TRUNCATION", + "STEP_CUSTOM_STOP_SEQUENCE_TRUNCATION", + "STEP_EXPECTED_SAMPLE_SIZE" + ], + "enumDeprecated": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "", + "Original model outputs as-is.", + "Original model outputs after deduplication.", + "StopSequencePostProcessor.", + "Heuristic SuffixTruncator step.", + "Go service post-processor.", + "Truncate trailing whitespace and filter whitespace-only completions.", + "Deduplicate after all truncations.", + "Toxicity returns true.", + "Recitation causes BLOCK.", + "Return the response to the API.", + "Correcting walkback constraint (samples are dropped if they don't match the prefix constraint).", + "Thresholding samples based on a minimum score.", + "StopSequencePostProcessor.", + "StopSequencePostProcessor.", + "Drop extra number of samples that exceeds expected_samples." + ], + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootCodeyCompletionMetadata": { + "description": "Stores all metadata relating to Completion.", + "id": "LearningGenaiRootCodeyCompletionMetadata", + "properties": { + "checkpoints": { + "items": { + "$ref": "LearningGenaiRootCodeyCheckpoint" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootCodeyOutput": { + "description": "Top-level wrapper used to store all things codey-related.", + "id": "LearningGenaiRootCodeyOutput", + "properties": { + "codeyChatMetadata": { + "$ref": "LearningGenaiRootCodeyChatMetadata" + }, + "codeyCompletionMetadata": { + "$ref": "LearningGenaiRootCodeyCompletionMetadata" + } + }, + "type": "object" + }, + "LearningGenaiRootCodeyTruncatorMetadata": { + "description": "Metadata describing what was truncated at each checkpoint.", + "id": "LearningGenaiRootCodeyTruncatorMetadata", + "properties": { + "cutoffIndex": { + "description": "Index of the current sample that trims off truncated text.", + "format": "int32", + "type": "integer" + }, + "truncatedText": { + "description": "Text that was truncated at a specific checkpoint.", + "type": "string" + } + }, + "type": "object" + }, "LearningGenaiRootDataProviderOutput": { "id": "LearningGenaiRootDataProviderOutput", "properties": { @@ -38843,6 +39099,10 @@ "$ref": "LearningGenaiRootClassifierOutputSummary", "description": "Summary of classifier output. We attach this to all messages regardless of whether classification rules triggered or not." }, + "codeyOutput": { + "$ref": "LearningGenaiRootCodeyOutput", + "description": "Contains metadata related to Codey Processors." + }, "currentStreamTextLength": { "format": "uint32", "type": "integer" diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 2f591df879..0fb37adc19 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -1312,6 +1312,7 @@ type CloudAiLargeModelsVisionFilteredText struct { // "CHILD_TEXT" // "DANGEROUS_CONTENT" - Text category from SafetyCat v3 // "RECITATION_TEXT" + // "CELEBRITY_IMG" Category string `json:"category,omitempty"` // Confidence: Filtered category @@ -1417,12 +1418,15 @@ type CloudAiLargeModelsVisionImage struct { // ImageRaiScores: RAI scores for generated image. ImageRaiScores *CloudAiLargeModelsVisionImageRAIScores `json:"imageRaiScores,omitempty"` - // RaiInfo: RAI info for image + // RaiInfo: RAI info for image. RaiInfo *CloudAiLargeModelsVisionRaiInfo `json:"raiInfo,omitempty"` // SemanticFilterResponse: Semantic filter info for image. SemanticFilterResponse *CloudAiLargeModelsVisionSemanticFilterResponse `json:"semanticFilterResponse,omitempty"` + // Text: Text/Expanded text input for imagen. + Text string `json:"text,omitempty"` + // Uri: Path to another storage (typically Google Cloud Storage). Uri string `json:"uri,omitempty"` @@ -2565,11 +2569,11 @@ type CloudAiNlLlmProtoServiceSafetyRating struct { // Severity: Harm severity levels in the content. // // Possible values: - // "HARM_PROBABILITY_UNSPECIFIED" - Harm probability unspecified. - // "NEGLIGIBLE" - Negligible level of harm. - // "LOW" - Low level of harm. - // "MEDIUM" - Medium level of harm. - // "HIGH" - High level of harm. + // "HARM_SEVERITY_UNSPECIFIED" - Harm severity unspecified. + // "HARM_SEVERITY_NEGLIGIBLE" - Negligible level of harm severity. + // "HARM_SEVERITY_LOW" - Low level of harm severity. + // "HARM_SEVERITY_MEDIUM" - Medium level of harm severity. + // "HARM_SEVERITY_HIGH" - High level of harm severity. Severity string `json:"severity,omitempty"` // SeverityScore: Harm severity score. @@ -7019,10 +7023,18 @@ type GoogleCloudAiplatformV1DatasetVersion struct { // created. CreateTime string `json:"createTime,omitempty"` + // DisplayName: The user-defined name of the DatasetVersion. The name + // can be up to 128 characters long and can consist of any UTF-8 + // characters. + DisplayName string `json:"displayName,omitempty"` + // Etag: Used to perform consistent read-modify-write updates. If not // set, a blind "overwrite" update happens. Etag string `json:"etag,omitempty"` + // Metadata: Required. Additional information about the DatasetVersion. + Metadata interface{} `json:"metadata,omitempty"` + // Name: Output only. The resource name of the DatasetVersion. Name string `json:"name,omitempty"` @@ -10701,6 +10713,10 @@ type GoogleCloudAiplatformV1Feature struct { // type. Name string `json:"name,omitempty"` + // PointOfContact: Entity responsible for maintaining this feature. Can + // be comma separated list of email addresses or URIs. + PointOfContact string `json:"pointOfContact,omitempty"` + // UpdateTime: Output only. Only applicable for Vertex AI Feature Store // (Legacy). Timestamp when this EntityType was most recently updated. UpdateTime string `json:"updateTime,omitempty"` @@ -10826,8 +10842,7 @@ type GoogleCloudAiplatformV1FeatureGroupBigQuery struct { BigQuerySource *GoogleCloudAiplatformV1BigQuerySource `json:"bigQuerySource,omitempty"` // EntityIdColumns: Optional. Columns to construct entity_id / row keys. - // Currently only supports 1 entity_id_column. If not provided defaults - // to `entity_id`. + // If not provided defaults to `entity_id`. EntityIdColumns []string `json:"entityIdColumns,omitempty"` // ForceSendFields is a list of field names (e.g. "BigQuerySource") to @@ -11512,7 +11527,6 @@ func (s *GoogleCloudAiplatformV1FeatureView) MarshalJSON() ([]byte, error) { type GoogleCloudAiplatformV1FeatureViewBigQuerySource struct { // EntityIdColumns: Required. Columns to construct entity_id / row keys. - // Start by supporting 1 only. EntityIdColumns []string `json:"entityIdColumns,omitempty"` // Uri: Required. The BigQuery view URI that will be materialized on @@ -11546,10 +11560,14 @@ func (s *GoogleCloudAiplatformV1FeatureViewBigQuerySource) MarshalJSON() ([]byte // GoogleCloudAiplatformV1FeatureViewDataKey: Lookup key for a feature // view. type GoogleCloudAiplatformV1FeatureViewDataKey struct { + // CompositeKey: The actual Entity ID will be composed from this struct. + // This should match with the way ID is defined in the FeatureView spec. + CompositeKey *GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey `json:"compositeKey,omitempty"` + // Key: String key to use for lookup. Key string `json:"key,omitempty"` - // ForceSendFields is a list of field names (e.g. "Key") to + // ForceSendFields is a list of field names (e.g. "CompositeKey") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -11557,7 +11575,37 @@ type GoogleCloudAiplatformV1FeatureViewDataKey struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Key") to include in API + // NullFields is a list of field names (e.g. "CompositeKey") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1FeatureViewDataKey) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1FeatureViewDataKey + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey: ID that is +// comprised from several parts (columns). +type GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey struct { + // Parts: Parts to construct Entity ID. Should match with the same ID + // columns as defined in FeatureView in the same order. + Parts []string `json:"parts,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parts") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Parts") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -11566,8 +11614,8 @@ type GoogleCloudAiplatformV1FeatureViewDataKey struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1FeatureViewDataKey) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1FeatureViewDataKey +func (s *GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1FeatureViewDataKeyCompositeKey raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -13133,38 +13181,6 @@ func (s *GoogleCloudAiplatformV1GenericOperationMetadata) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1GoogleSearchRetrieval: Tool to retrieve public -// web data for grounding, powered by Google. -type GoogleCloudAiplatformV1GoogleSearchRetrieval struct { - // DisableAttribution: Optional. Disable using the result from this tool - // in detecting grounding attribution. This does not affect how the - // result is given to the model for generation. - DisableAttribution bool `json:"disableAttribution,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisableAttribution") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisableAttribution") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1GoogleSearchRetrieval) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1GoogleSearchRetrieval - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1GroundingAttribution: Grounding attribution. type GoogleCloudAiplatformV1GroundingAttribution struct { // ConfidenceScore: Optional. Output only. Confidence score of the @@ -14025,6 +14041,8 @@ type GoogleCloudAiplatformV1IndexDatapointNumericRestriction struct { // query's. // "GREATER" - Datapoints are eligible iff their value is > the // query's. + // "NOT_EQUAL" - Datapoints are eligible iff their value is != the + // query's. Op string `json:"op,omitempty"` // ValueDouble: Represents 64 bit float. @@ -16329,6 +16347,7 @@ type GoogleCloudAiplatformV1MachineSpec struct { // "NVIDIA_TESLA_A100" - Nvidia Tesla A100 GPU. // "NVIDIA_A100_80GB" - Nvidia A100 80GB GPU. // "NVIDIA_L4" - Nvidia L4 GPU. + // "NVIDIA_H100_80GB" - Nvidia H100 80Gb GPU. // "TPU_V2" - TPU v2. // "TPU_V3" - TPU v3. // "TPU_V4_POD" - TPU v4. @@ -21905,13 +21924,20 @@ type GoogleCloudAiplatformV1PublisherModel struct { // // Possible values: // "LAUNCH_STAGE_UNSPECIFIED" - The model launch stage is unspecified. + // "DOGFOOD" - Used to indicate the PublisherModel is at Google + // internal testing launch stage. // "EXPERIMENTAL" - Used to indicate the PublisherModel is at - // Experimental launch stage. + // Experimental launch stage, available to a small set of customers. // "PRIVATE_PREVIEW" - Used to indicate the PublisherModel is at - // Private Preview launch stage. + // Private Preview launch stage, only available to a small set of + // customers, although a larger set of customers than an Experimental + // launch. Previews are the first launch stage used to get feedback from + // customers. // "PUBLIC_PREVIEW" - Used to indicate the PublisherModel is at Public - // Preview launch stage. - // "GA" - Used to indicate the PublisherModel is at GA launch stage. + // Preview launch stage, available to all customers, although not + // supported for production workloads. + // "GA" - Used to indicate the PublisherModel is at GA launch stage, + // available to all customers and ready for production workload. LaunchStage string `json:"launchStage,omitempty"` // Name: Output only. The resource name of the PublisherModel. @@ -23476,41 +23502,6 @@ func (s *GoogleCloudAiplatformV1ResumeScheduleRequest) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1Retrieval: Defines a retrieval tool that model -// can call to access external knowledge. -type GoogleCloudAiplatformV1Retrieval struct { - // DisableAttribution: Optional. Disable using the result from this tool - // in detecting grounding attribution. This does not affect how the - // result is given to the model for generation. - DisableAttribution bool `json:"disableAttribution,omitempty"` - - // VertexAiSearch: Set to use data source powered by Vertex AI Search. - VertexAiSearch *GoogleCloudAiplatformV1VertexAISearch `json:"vertexAiSearch,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DisableAttribution") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DisableAttribution") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1Retrieval) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1Retrieval - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1SafetyRating: Safety rating corresponding to // the generated content. type GoogleCloudAiplatformV1SafetyRating struct { @@ -23540,6 +23531,22 @@ type GoogleCloudAiplatformV1SafetyRating struct { // "HIGH" - High level of harm. Probability string `json:"probability,omitempty"` + // ProbabilityScore: Output only. Harm probability score. + ProbabilityScore float64 `json:"probabilityScore,omitempty"` + + // Severity: Output only. Harm severity levels in the content. + // + // Possible values: + // "HARM_SEVERITY_UNSPECIFIED" - Harm severity unspecified. + // "HARM_SEVERITY_NEGLIGIBLE" - Negligible level of harm severity. + // "HARM_SEVERITY_LOW" - Low level of harm severity. + // "HARM_SEVERITY_MEDIUM" - Medium level of harm severity. + // "HARM_SEVERITY_HIGH" - High level of harm severity. + Severity string `json:"severity,omitempty"` + + // SeverityScore: Output only. Harm severity score. + SeverityScore float64 `json:"severityScore,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blocked") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -23563,6 +23570,22 @@ func (s *GoogleCloudAiplatformV1SafetyRating) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +func (s *GoogleCloudAiplatformV1SafetyRating) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1SafetyRating + var s1 struct { + ProbabilityScore gensupport.JSONFloat64 `json:"probabilityScore"` + SeverityScore gensupport.JSONFloat64 `json:"severityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ProbabilityScore = float64(s1.ProbabilityScore) + s.SeverityScore = float64(s1.SeverityScore) + return nil +} + // GoogleCloudAiplatformV1SafetySetting: Safety settings. type GoogleCloudAiplatformV1SafetySetting struct { // Category: Required. Harm category. @@ -34667,26 +34690,19 @@ func (s *GoogleCloudAiplatformV1TokensInfo) MarshalJSON() ([]byte, error) { // generate response. A `Tool` is a piece of code that enables the // system to interact with external systems to perform an action, or set // of actions, outside of knowledge and scope of the model. A Tool -// object should contain exactly one type of Tool. +// object should contain exactly one type of Tool (e.g +// FunctionDeclaration, Retrieval or GoogleSearchRetrieval). type GoogleCloudAiplatformV1Tool struct { - // FunctionDeclarations: Optional. One or more function declarations to - // be passed to the model along with the current user query. Model may - // decide to call a subset of these functions by populating FunctionCall - // in the response. User should provide a FunctionResponse for each - // function call in the next turn. Based on the function responses, - // Model will generate the final response back to the user. Maximum 64 - // function declarations can be provided. + // FunctionDeclarations: Optional. Function tool type. One or more + // function declarations to be passed to the model along with the + // current user query. Model may decide to call a subset of these + // functions by populating FunctionCall in the response. User should + // provide a FunctionResponse for each function call in the next turn. + // Based on the function responses, Model will generate the final + // response back to the user. Maximum 64 function declarations can be + // provided. FunctionDeclarations []*GoogleCloudAiplatformV1FunctionDeclaration `json:"functionDeclarations,omitempty"` - // GoogleSearchRetrieval: Optional. Specialized retrieval tool that is - // powered by Google search. - GoogleSearchRetrieval *GoogleCloudAiplatformV1GoogleSearchRetrieval `json:"googleSearchRetrieval,omitempty"` - - // Retrieval: Optional. System will always execute the provided - // retrieval tool(s) to get external knowledge to answer the prompt. - // Retrieval results are presented to the model for generation. - Retrieval *GoogleCloudAiplatformV1Retrieval `json:"retrieval,omitempty"` - // ForceSendFields is a list of field names (e.g. // "FunctionDeclarations") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -35922,37 +35938,6 @@ func (s *GoogleCloudAiplatformV1Value) UnmarshalJSON(data []byte) error { return nil } -// GoogleCloudAiplatformV1VertexAISearch: Retrieve from Vertex AI Search -// datastore for grounding. See -// https://cloud.google.com/vertex-ai-search-and-conversation -type GoogleCloudAiplatformV1VertexAISearch struct { - // Datastore: Required. Fully-qualified Vertex AI Search's datastore - // resource ID. projects/<>/locations/<>/collections/<>/dataStores/<> - Datastore string `json:"datastore,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Datastore") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Datastore") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudAiplatformV1VertexAISearch) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1VertexAISearch - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1VideoMetadata: Metadata describes the input // video content. type GoogleCloudAiplatformV1VideoMetadata struct { @@ -37433,6 +37418,7 @@ type LanguageLabsAidaTrustRecitationProtoDocAttribution struct { // "GENESIS_NEWS_INSIGHTS" - Genesis fine-tune datasets. // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine-tune datasets. // "CLOUD_SECURITY_FINETUNING" + // "CLOUD_SECURITY_RAG_CISA" // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. // "LABS_AQA_TAILWIND" // "LABS_AQA_DELEWARE" @@ -37670,6 +37656,12 @@ type LanguageLabsAidaTrustRecitationProtoDocAttribution struct { // "CLOUD_GEMIT_CODE_IF_V1" // "CLOUD_GEMIT_CODE_SELF_REPAIR" // "CLOUD_GEMIT_IDENTITY" + // "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION" - Cloud gemit + // ultra FT datasets. + // "CLOUD_GEMIT_AMPS" + // "CLOUD_GEMIT_AQUA" + // "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA" + // "CLOUD_GEMIT_GSM8K_SCHEMA" Dataset string `json:"dataset,omitempty"` Filepath string `json:"filepath,omitempty"` @@ -38013,6 +38005,7 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { // "GENESIS_NEWS_INSIGHTS" - Genesis fine-tune datasets. // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine-tune datasets. // "CLOUD_SECURITY_FINETUNING" + // "CLOUD_SECURITY_RAG_CISA" // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. // "LABS_AQA_TAILWIND" // "LABS_AQA_DELEWARE" @@ -38250,6 +38243,12 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { // "CLOUD_GEMIT_CODE_IF_V1" // "CLOUD_GEMIT_CODE_SELF_REPAIR" // "CLOUD_GEMIT_IDENTITY" + // "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION" - Cloud gemit + // ultra FT datasets. + // "CLOUD_GEMIT_AMPS" + // "CLOUD_GEMIT_AQUA" + // "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA" + // "CLOUD_GEMIT_GSM8K_SCHEMA" AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains @@ -38586,8 +38585,6 @@ type LearningGenaiRecitationDocAttribution struct { // finetune datasets. // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" // "GENESIS_NEWS_INSIGHTS" - Genesis fine tuned datasets. - // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. - // "CLOUD_SECURITY_FINETUNING" // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. // "LABS_AQA_TAILWIND" // "LABS_AQA_DELEWARE" @@ -38624,6 +38621,9 @@ type LearningGenaiRecitationDocAttribution struct { // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. + // "CLOUD_SECURITY_FINETUNING" + // "CLOUD_SECURITY_RAG_CISA" // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -38825,6 +38825,12 @@ type LearningGenaiRecitationDocAttribution struct { // "CLOUD_GEMIT_CODE_IF_V1" // "CLOUD_GEMIT_CODE_SELF_REPAIR" // "CLOUD_GEMIT_IDENTITY" + // "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION" - Cloud gemit + // ultra FT datasets. + // "CLOUD_GEMIT_AMPS" + // "CLOUD_GEMIT_AQUA" + // "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA" + // "CLOUD_GEMIT_GSM8K_SCHEMA" Dataset string `json:"dataset,omitempty"` Filepath string `json:"filepath,omitempty"` @@ -39166,8 +39172,6 @@ type LearningGenaiRecitationSegmentResult struct { // finetune datasets. // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" // "GENESIS_NEWS_INSIGHTS" - Genesis fine tuned datasets. - // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. - // "CLOUD_SECURITY_FINETUNING" // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. // "LABS_AQA_TAILWIND" // "LABS_AQA_DELEWARE" @@ -39204,6 +39208,9 @@ type LearningGenaiRecitationSegmentResult struct { // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. + // "CLOUD_SECURITY_FINETUNING" + // "CLOUD_SECURITY_RAG_CISA" // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -39405,6 +39412,12 @@ type LearningGenaiRecitationSegmentResult struct { // "CLOUD_GEMIT_CODE_IF_V1" // "CLOUD_GEMIT_CODE_SELF_REPAIR" // "CLOUD_GEMIT_IDENTITY" + // "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION" - Cloud gemit + // ultra FT datasets. + // "CLOUD_GEMIT_AMPS" + // "CLOUD_GEMIT_AQUA" + // "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA" + // "CLOUD_GEMIT_GSM8K_SCHEMA" AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains @@ -39612,6 +39625,217 @@ func (s *LearningGenaiRootClassifierState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LearningGenaiRootCodeyChatMetadata: Stores all metadata relating to +// AIDA DoConversation. +type LearningGenaiRootCodeyChatMetadata struct { + // CodeLanguage: Indicates the programming language of the code if the + // message is a code chunk. + // + // Possible values: + // "UNSPECIFIED" - Unspecified Language. + // "ALL" - All languages. + // "TEXT" - Not code. + // "CPP" - The most common, well-supported languages. C++ code. + // "PYTHON" - Python code. + // "KOTLIN" - Kotlin code. + // "JAVA" - Java code. + // "JAVASCRIPT" - JavaScript code. + // "GO" - Go code. + // "R" - R code. + // "JUPYTER_NOTEBOOK" - Jupyter notebook. + // "TYPESCRIPT" - TypeScript code. + // "HTML" - HTML code. + // "SQL" - SQL code. + // "BASH" - Other languages in alphabetical order. BASH code. + // "C" - C code. + // "DART" - Dart code. + // "GRADLE" - Gradle code. + // "JAVADOC" - API documentation. + // "JSON" - JSON code. + // "MAKEFILE" - Makefile code. + // "MARKDOWN" - Markdown code. + // "PROTO" - Protocol buffer. + // "XML" - XML code. + // "YAML" - YAML code. + CodeLanguage string `json:"codeLanguage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CodeLanguage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CodeLanguage") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootCodeyChatMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCodeyChatMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootCodeyCheckpoint: Describes a sample at a checkpoint +// for post-processing. +type LearningGenaiRootCodeyCheckpoint struct { + // CodeyTruncatorMetadata: Metadata that describes what was truncated at + // this checkpoint. + CodeyTruncatorMetadata *LearningGenaiRootCodeyTruncatorMetadata `json:"codeyTruncatorMetadata,omitempty"` + + // CurrentSample: Current state of the sample after truncator. + CurrentSample string `json:"currentSample,omitempty"` + + // PostInferenceStep: Postprocessor run that yielded this checkpoint. + // + // Possible values: + // "STEP_POST_PROCESSING_STEP_UNSPECIFIED" + // "STEP_ORIGINAL_MODEL_OUTPUT" - Original model outputs as-is. + // "STEP_MODEL_OUTPUT_DEDUPLICATION" - Original model outputs after + // deduplication. + // "STEP_STOP_SEQUENCE_TRUNCATION" - StopSequencePostProcessor. + // "STEP_HEURISTIC_TRUNCATION" - Heuristic SuffixTruncator step. + // "STEP_WALD_TRUNCATION" - Go service post-processor. + // "STEP_WHITESPACE_TRUNCATION" - Truncate trailing whitespace and + // filter whitespace-only completions. + // "STEP_FINAL_DEDUPLICATION" - Deduplicate after all truncations. + // "STEP_TOXICITY_CHECK" - Toxicity returns true. + // "STEP_RECITATION_CHECK" - Recitation causes BLOCK. + // "STEP_RETURNED" - Return the response to the API. + // "STEP_WALKBACK_CORRECTION" - Correcting walkback constraint + // (samples are dropped if they don't match the prefix constraint). + // "STEP_SCORE_THRESHOLDING" - Thresholding samples based on a minimum + // score. + // "STEP_MODEL_CONFIG_STOP_SEQUENCE_TRUNCATION" - + // StopSequencePostProcessor. + // "STEP_CUSTOM_STOP_SEQUENCE_TRUNCATION" - StopSequencePostProcessor. + // "STEP_EXPECTED_SAMPLE_SIZE" - Drop extra number of samples that + // exceeds expected_samples. + PostInferenceStep string `json:"postInferenceStep,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CodeyTruncatorMetadata") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CodeyTruncatorMetadata") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootCodeyCheckpoint) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCodeyCheckpoint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootCodeyCompletionMetadata: Stores all metadata +// relating to Completion. +type LearningGenaiRootCodeyCompletionMetadata struct { + Checkpoints []*LearningGenaiRootCodeyCheckpoint `json:"checkpoints,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Checkpoints") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Checkpoints") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootCodeyCompletionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCodeyCompletionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootCodeyOutput: Top-level wrapper used to store all +// things codey-related. +type LearningGenaiRootCodeyOutput struct { + CodeyChatMetadata *LearningGenaiRootCodeyChatMetadata `json:"codeyChatMetadata,omitempty"` + + CodeyCompletionMetadata *LearningGenaiRootCodeyCompletionMetadata `json:"codeyCompletionMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CodeyChatMetadata") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CodeyChatMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootCodeyOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCodeyOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootCodeyTruncatorMetadata: Metadata describing what was +// truncated at each checkpoint. +type LearningGenaiRootCodeyTruncatorMetadata struct { + // CutoffIndex: Index of the current sample that trims off truncated + // text. + CutoffIndex int64 `json:"cutoffIndex,omitempty"` + + // TruncatedText: Text that was truncated at a specific checkpoint. + TruncatedText string `json:"truncatedText,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CutoffIndex") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CutoffIndex") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootCodeyTruncatorMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCodeyTruncatorMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type LearningGenaiRootDataProviderOutput struct { Name string `json:"name,omitempty"` @@ -41136,6 +41360,9 @@ type LearningServingLlmMessageMetadata struct { // not. ClassifierSummary *LearningGenaiRootClassifierOutputSummary `json:"classifierSummary,omitempty"` + // CodeyOutput: Contains metadata related to Codey Processors. + CodeyOutput *LearningGenaiRootCodeyOutput `json:"codeyOutput,omitempty"` + CurrentStreamTextLength int64 `json:"currentStreamTextLength,omitempty"` // Deleted: Whether the corresponding message has been deleted. diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index b670096f99..f2ac365f47 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -13256,11 +13256,6 @@ "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "location": "query", "type": "string" - }, - "preflightValidations": { - "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", - "location": "query", - "type": "boolean" } }, "path": "v1beta1/{+parent}/pipelineJobs", @@ -17470,7 +17465,7 @@ } } }, - "revision": "20240213", + "revision": "20240219", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -17527,7 +17522,8 @@ "HATE_SYMBOL_IMG", "CHILD_TEXT", "DANGEROUS_CONTENT", - "RECITATION_TEXT" + "RECITATION_TEXT", + "CELEBRITY_IMG" ], "enumDescriptions": [ "", @@ -17563,6 +17559,7 @@ "End of list", "", "Text category from SafetyCat v3", + "", "" ], "type": "string" @@ -17644,12 +17641,16 @@ }, "raiInfo": { "$ref": "CloudAiLargeModelsVisionRaiInfo", - "description": "RAI info for image" + "description": "RAI info for image." }, "semanticFilterResponse": { "$ref": "CloudAiLargeModelsVisionSemanticFilterResponse", "description": "Semantic filter info for image." }, + "text": { + "description": "Text/Expanded text input for imagen.", + "type": "string" + }, "uri": { "description": "Path to another storage (typically Google Cloud Storage).", "type": "string" @@ -18412,18 +18413,18 @@ "severity": { "description": "Harm severity levels in the content.", "enum": [ - "HARM_PROBABILITY_UNSPECIFIED", - "NEGLIGIBLE", - "LOW", - "MEDIUM", - "HIGH" + "HARM_SEVERITY_UNSPECIFIED", + "HARM_SEVERITY_NEGLIGIBLE", + "HARM_SEVERITY_LOW", + "HARM_SEVERITY_MEDIUM", + "HARM_SEVERITY_HIGH" ], "enumDescriptions": [ - "Harm probability unspecified.", - "Negligible level of harm.", - "Low level of harm.", - "Medium level of harm.", - "High level of harm." + "Harm severity unspecified.", + "Negligible level of harm severity.", + "Low level of harm severity.", + "Medium level of harm severity.", + "High level of harm severity." ], "type": "string" }, @@ -20362,10 +20363,6 @@ "pipelineJobId": { "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "type": "string" - }, - "preflightValidations": { - "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", - "type": "boolean" } }, "type": "object" @@ -20926,10 +20923,18 @@ "readOnly": true, "type": "string" }, + "displayName": { + "description": "The user-defined name of the DatasetVersion. The name can be up to 128 characters long and can consist of any UTF-8 characters.", + "type": "string" + }, "etag": { "description": "Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", "type": "string" }, + "metadata": { + "description": "Required. Additional information about the DatasetVersion.", + "type": "any" + }, "name": { "description": "Output only. The resource name of the DatasetVersion.", "readOnly": true, @@ -22840,6 +22845,10 @@ "description": "Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last part feature is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type.", "type": "string" }, + "pointOfContact": { + "description": "Entity responsible for maintaining this feature. Can be comma separated list of email addresses or URIs.", + "type": "string" + }, "updateTime": { "description": "Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was most recently updated.", "format": "google-datetime", @@ -22932,7 +22941,7 @@ "description": "Required. Immutable. The BigQuery source URI that points to either a BigQuery Table or View." }, "entityIdColumns": { - "description": "Optional. Columns to construct entity_id / row keys. Currently only supports 1 entity_id_column. If not provided defaults to `entity_id`.", + "description": "Optional. Columns to construct entity_id / row keys. If not provided defaults to `entity_id`.", "items": { "type": "string" }, @@ -23311,6 +23320,25 @@ "description": "Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", "type": "string" }, + "serviceAccountEmail": { + "description": "Output only. A Service Account unique to this FeatureView. The role bigquery.dataViewer should be granted to this service account to allow Vertex AI Feature Store to sync data to the online store.", + "readOnly": true, + "type": "string" + }, + "serviceAgentType": { + "description": "Optional. Service agent type used during data sync. By default, the Vertex AI Service Agent is used. When using an IAM Policy to isolate this FeatureView within a project (https://cloud.google.com/vertex-ai/docs/featurestore/latest/resource-policy) a separate service account should be provisioned by setting this field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`. This will generate a separate service account to access the BigQuery source table.", + "enum": [ + "SERVICE_AGENT_TYPE_UNSPECIFIED", + "SERVICE_AGENT_TYPE_PROJECT", + "SERVICE_AGENT_TYPE_FEATURE_VIEW" + ], + "enumDescriptions": [ + "By default, the project-level Vertex AI Service Agent is enabled.", + "Indicates the project-level Vertex AI Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) will be used during sync jobs.", + "Enable a FeatureView service account to be created by Vertex AI and output in the field `service_account_email`. This service account will be used to read from the source BigQuery table during sync." + ], + "type": "string" + }, "syncConfig": { "$ref": "GoogleCloudAiplatformV1beta1FeatureViewSyncConfig", "description": "Configures when data is to be synced/updated for this FeatureView. At the end of the sync the latest featureValues for each entityId of this FeatureView are made ready for online serving." @@ -23333,7 +23361,7 @@ "id": "GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource", "properties": { "entityIdColumns": { - "description": "Required. Columns to construct entity_id / row keys. Start by supporting 1 only.", + "description": "Required. Columns to construct entity_id / row keys.", "items": { "type": "string" }, @@ -23350,6 +23378,10 @@ "description": "Lookup key for a feature view.", "id": "GoogleCloudAiplatformV1beta1FeatureViewDataKey", "properties": { + "compositeKey": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewDataKeyCompositeKey", + "description": "The actual Entity ID will be composed from this struct. This should match with the way ID is defined in the FeatureView spec." + }, "key": { "description": "String key to use for lookup.", "type": "string" @@ -23357,6 +23389,20 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1FeatureViewDataKeyCompositeKey": { + "description": "ID that is comprised from several parts (columns).", + "id": "GoogleCloudAiplatformV1beta1FeatureViewDataKeyCompositeKey", + "properties": { + "parts": { + "description": "Parts to construct Entity ID. Should match with the same ID columns as defined in FeatureView in the same order.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource": { "description": "A Feature Registry source for features that need to be synced to Online Store.", "id": "GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource", @@ -24271,6 +24317,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1GenieSource": { + "description": "Contains information about the source of the models generated from Generative AI Studio.", + "id": "GoogleCloudAiplatformV1beta1GenieSource", + "properties": { + "baseModelUri": { + "description": "Required. The public base model URI.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval": { "description": "Tool to retrieve public web data for grounding, powered by Google.", "id": "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval", @@ -24841,7 +24898,8 @@ "LESS_EQUAL", "EQUAL", "GREATER_EQUAL", - "GREATER" + "GREATER", + "NOT_EQUAL" ], "enumDescriptions": [ "Default value of the enum.", @@ -24849,7 +24907,8 @@ "Datapoints are eligible iff their value is \u003c= the query's.", "Datapoints are eligible iff their value is == the query's.", "Datapoints are eligible iff their value is \u003e= the query's.", - "Datapoints are eligible iff their value is \u003e the query's." + "Datapoints are eligible iff their value is \u003e the query's.", + "Datapoints are eligible iff their value is != the query's." ], "type": "string" }, @@ -26528,6 +26587,10 @@ "description": "Immutable. The path to the directory containing the Model artifact and any of its supporting files. Not required for AutoML Models.", "type": "string" }, + "baseModelSource": { + "$ref": "GoogleCloudAiplatformV1beta1ModelBaseModelSource", + "description": "Optional. User input field to specify the base model source. Currently it only supports specifing the Model Garden models and Genie models." + }, "containerSpec": { "$ref": "GoogleCloudAiplatformV1beta1ModelContainerSpec", "description": "Input only. The specification of the container that is to be used when deploying this Model. The specification is ingested upon ModelService.UploadModel, and all binaries it contains are copied and stored internally by Vertex AI. Not required for AutoML Models." @@ -26690,6 +26753,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ModelBaseModelSource": { + "description": "User input field to specify the base model source. Currently it only supports specifing the Model Garden models and Genie models.", + "id": "GoogleCloudAiplatformV1beta1ModelBaseModelSource", + "properties": { + "genieSource": { + "$ref": "GoogleCloudAiplatformV1beta1GenieSource", + "description": "Information about the base model of Genie models." + }, + "modelGardenSource": { + "$ref": "GoogleCloudAiplatformV1beta1ModelGardenSource", + "description": "Source information of Model Garden models." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ModelContainerSpec": { "description": "Specification of a container for serving predictions. Some fields in this message correspond to fields in the [Kubernetes Container v1 core specification](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#container-v1-core).", "id": "GoogleCloudAiplatformV1beta1ModelContainerSpec", @@ -27274,6 +27352,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ModelGardenSource": { + "description": "Contains information about the source of the models generated from Model Garden.", + "id": "GoogleCloudAiplatformV1beta1ModelGardenSource", + "properties": { + "publicModelName": { + "description": "Required. The model garden source model resource name.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig": { "description": "The alert config for model monitoring.", "id": "GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig", @@ -28812,6 +28901,10 @@ "description": "The spec of the pipeline.", "type": "object" }, + "preflightValidations": { + "description": "Optional. Whether to do component level validations before job creation.", + "type": "boolean" + }, "reservedIpRanges": { "description": "A list of names for the reserved ip ranges under the VPC network that can be used for this Pipeline Job's workload. If set, we will deploy the Pipeline Job's workload within the provided ip ranges. Otherwise, the job will be deployed to any ip ranges under the provided VPC network. Example: ['vertex-ai-ip-range'].", "items": { @@ -29486,6 +29579,7 @@ "description": "Optional. Indicates the launch stage of the model.", "enum": [ "LAUNCH_STAGE_UNSPECIFIED", + "DOGFOOD", "EXPERIMENTAL", "PRIVATE_PREVIEW", "PUBLIC_PREVIEW", @@ -29493,10 +29587,11 @@ ], "enumDescriptions": [ "The model launch stage is unspecified.", - "Used to indicate the PublisherModel is at Experimental launch stage.", - "Used to indicate the PublisherModel is at Private Preview launch stage.", - "Used to indicate the PublisherModel is at Public Preview launch stage.", - "Used to indicate the PublisherModel is at GA launch stage." + "Used to indicate the PublisherModel is at Google internal testing launch stage.", + "Used to indicate the PublisherModel is at Experimental launch stage, available to a small set of customers.", + "Used to indicate the PublisherModel is at Private Preview launch stage, only available to a small set of customers, although a larger set of customers than an Experimental launch. Previews are the first launch stage used to get feedback from customers.", + "Used to indicate the PublisherModel is at Public Preview launch stage, available to all customers, although not supported for production workloads.", + "Used to indicate the PublisherModel is at GA launch stage, available to all customers and ready for production workload." ], "type": "string" }, @@ -30594,6 +30689,37 @@ ], "readOnly": true, "type": "string" + }, + "probabilityScore": { + "description": "Output only. Harm probability score.", + "format": "float", + "readOnly": true, + "type": "number" + }, + "severity": { + "description": "Output only. Harm severity levels in the content.", + "enum": [ + "HARM_SEVERITY_UNSPECIFIED", + "HARM_SEVERITY_NEGLIGIBLE", + "HARM_SEVERITY_LOW", + "HARM_SEVERITY_MEDIUM", + "HARM_SEVERITY_HIGH" + ], + "enumDescriptions": [ + "Harm severity unspecified.", + "Negligible level of harm severity.", + "Low level of harm severity.", + "Medium level of harm severity.", + "High level of harm severity." + ], + "readOnly": true, + "type": "string" + }, + "severityScore": { + "description": "Output only. Harm severity score.", + "format": "float", + "readOnly": true, + "type": "number" } }, "type": "object" @@ -36185,11 +36311,11 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1Tool": { - "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool.", + "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. A Tool object should contain exactly one type of Tool (e.g FunctionDeclaration, Retrieval or GoogleSearchRetrieval).", "id": "GoogleCloudAiplatformV1beta1Tool", "properties": { "functionDeclarations": { - "description": "Optional. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.", + "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.", "items": { "$ref": "GoogleCloudAiplatformV1beta1FunctionDeclaration" }, @@ -36197,11 +36323,11 @@ }, "googleSearchRetrieval": { "$ref": "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval", - "description": "Optional. Specialized retrieval tool that is powered by Google search." + "description": "Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search." }, "retrieval": { "$ref": "GoogleCloudAiplatformV1beta1Retrieval", - "description": "Optional. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation." + "description": "Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation." } }, "type": "object" @@ -37651,6 +37777,7 @@ "GENESIS_NEWS_INSIGHTS", "CLOUD_SECURITY_PRETRAINING", "CLOUD_SECURITY_FINETUNING", + "CLOUD_SECURITY_RAG_CISA", "LABS_AQA_DSCOUT", "LABS_AQA_TAILWIND", "LABS_AQA_DELEWARE", @@ -37801,7 +37928,12 @@ "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", "CLOUD_GEMIT_CODE_IF_V1", "CLOUD_GEMIT_CODE_SELF_REPAIR", - "CLOUD_GEMIT_IDENTITY" + "CLOUD_GEMIT_IDENTITY", + "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION", + "CLOUD_GEMIT_AMPS", + "CLOUD_GEMIT_AQUA", + "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA", + "CLOUD_GEMIT_GSM8K_SCHEMA" ], "enumDescriptions": [ "", @@ -37970,6 +38102,7 @@ "Genesis fine-tune datasets.", "Cloud Security fine-tune datasets.", "", + "", "LABS AQA fine-tune datasets.", "", "", @@ -38120,6 +38253,11 @@ "", "", "", + "", + "Cloud gemit ultra FT datasets.", + "", + "", + "", "" ], "type": "string" @@ -38403,6 +38541,7 @@ "GENESIS_NEWS_INSIGHTS", "CLOUD_SECURITY_PRETRAINING", "CLOUD_SECURITY_FINETUNING", + "CLOUD_SECURITY_RAG_CISA", "LABS_AQA_DSCOUT", "LABS_AQA_TAILWIND", "LABS_AQA_DELEWARE", @@ -38553,7 +38692,12 @@ "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", "CLOUD_GEMIT_CODE_IF_V1", "CLOUD_GEMIT_CODE_SELF_REPAIR", - "CLOUD_GEMIT_IDENTITY" + "CLOUD_GEMIT_IDENTITY", + "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION", + "CLOUD_GEMIT_AMPS", + "CLOUD_GEMIT_AQUA", + "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA", + "CLOUD_GEMIT_GSM8K_SCHEMA" ], "enumDescriptions": [ "", @@ -38722,6 +38866,7 @@ "Genesis fine-tune datasets.", "Cloud Security fine-tune datasets.", "", + "", "LABS AQA fine-tune datasets.", "", "", @@ -38872,6 +39017,11 @@ "", "", "", + "", + "Cloud gemit ultra FT datasets.", + "", + "", + "", "" ], "type": "string" @@ -39164,8 +39314,6 @@ "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", "GENESIS_NEWS_INSIGHTS", - "CLOUD_SECURITY_PRETRAINING", - "CLOUD_SECURITY_FINETUNING", "LABS_AQA_DSCOUT", "LABS_AQA_TAILWIND", "LABS_AQA_DELEWARE", @@ -39201,6 +39349,9 @@ "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", "GEMIT_BRIDGE_SUFFIX_FT", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "CLOUD_SECURITY_RAG_CISA", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -39316,7 +39467,12 @@ "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", "CLOUD_GEMIT_CODE_IF_V1", "CLOUD_GEMIT_CODE_SELF_REPAIR", - "CLOUD_GEMIT_IDENTITY" + "CLOUD_GEMIT_IDENTITY", + "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION", + "CLOUD_GEMIT_AMPS", + "CLOUD_GEMIT_AQUA", + "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA", + "CLOUD_GEMIT_GSM8K_SCHEMA" ], "enumDescriptions": [ "", @@ -39483,8 +39639,6 @@ "Mobile assistant finetune datasets.", "", "Genesis fine tuned datasets.", - "Cloud Security fine tuned datasets.", - "", "LABS AQA fine-tune datasets.", "", "", @@ -39520,6 +39674,9 @@ "", "", "Gemit Bridge ULM FT dataset", + "Cloud Security fine tuned datasets.", + "", + "", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -39635,6 +39792,11 @@ "", "", "", + "", + "Cloud gemit ultra FT datasets.", + "", + "", + "", "" ], "type": "string" @@ -39916,8 +40078,6 @@ "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", "GENESIS_NEWS_INSIGHTS", - "CLOUD_SECURITY_PRETRAINING", - "CLOUD_SECURITY_FINETUNING", "LABS_AQA_DSCOUT", "LABS_AQA_TAILWIND", "LABS_AQA_DELEWARE", @@ -39953,6 +40113,9 @@ "GEMINI_IT_CLOUD_SELF_INSTRUCT", "GEMINI_IT_CLOUD_UCS_AQUAMUSE", "GEMIT_BRIDGE_SUFFIX_FT", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "CLOUD_SECURITY_RAG_CISA", "GEMINI_GOOSE_PUBLIC", "GEMINI_GOOSE_SILOED", "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", @@ -40068,7 +40231,12 @@ "CLOUD_GEMIT_COMMIT_MSG_GEN_V3", "CLOUD_GEMIT_CODE_IF_V1", "CLOUD_GEMIT_CODE_SELF_REPAIR", - "CLOUD_GEMIT_IDENTITY" + "CLOUD_GEMIT_IDENTITY", + "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION", + "CLOUD_GEMIT_AMPS", + "CLOUD_GEMIT_AQUA", + "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA", + "CLOUD_GEMIT_GSM8K_SCHEMA" ], "enumDescriptions": [ "", @@ -40235,8 +40403,6 @@ "Mobile assistant finetune datasets.", "", "Genesis fine tuned datasets.", - "Cloud Security fine tuned datasets.", - "", "LABS AQA fine-tune datasets.", "", "", @@ -40272,6 +40438,9 @@ "", "", "Gemit Bridge ULM FT dataset", + "Cloud Security fine tuned datasets.", + "", + "", "Gemini Goose FT datasets.", "", "Gemini V2 datasets", @@ -40387,6 +40556,11 @@ "", "", "", + "", + "Cloud gemit ultra FT datasets.", + "", + "", + "", "" ], "type": "string" @@ -40528,6 +40702,186 @@ }, "type": "object" }, + "LearningGenaiRootCodeyChatMetadata": { + "description": "Stores all metadata relating to AIDA DoConversation.", + "id": "LearningGenaiRootCodeyChatMetadata", + "properties": { + "codeLanguage": { + "description": "Indicates the programming language of the code if the message is a code chunk.", + "enum": [ + "UNSPECIFIED", + "ALL", + "TEXT", + "CPP", + "PYTHON", + "KOTLIN", + "JAVA", + "JAVASCRIPT", + "GO", + "R", + "JUPYTER_NOTEBOOK", + "TYPESCRIPT", + "HTML", + "SQL", + "BASH", + "C", + "DART", + "GRADLE", + "JAVADOC", + "JSON", + "MAKEFILE", + "MARKDOWN", + "PROTO", + "XML", + "YAML" + ], + "enumDescriptions": [ + "Unspecified Language.", + "All languages.", + "Not code.", + "The most common, well-supported languages. C++ code.", + "Python code.", + "Kotlin code.", + "Java code.", + "JavaScript code.", + "Go code.", + "R code.", + "Jupyter notebook.", + "TypeScript code.", + "HTML code.", + "SQL code.", + "Other languages in alphabetical order. BASH code.", + "C code.", + "Dart code.", + "Gradle code.", + "API documentation.", + "JSON code.", + "Makefile code.", + "Markdown code.", + "Protocol buffer.", + "XML code.", + "YAML code." + ], + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootCodeyCheckpoint": { + "description": "Describes a sample at a checkpoint for post-processing.", + "id": "LearningGenaiRootCodeyCheckpoint", + "properties": { + "codeyTruncatorMetadata": { + "$ref": "LearningGenaiRootCodeyTruncatorMetadata", + "description": "Metadata that describes what was truncated at this checkpoint." + }, + "currentSample": { + "description": "Current state of the sample after truncator.", + "type": "string" + }, + "postInferenceStep": { + "description": "Postprocessor run that yielded this checkpoint.", + "enum": [ + "STEP_POST_PROCESSING_STEP_UNSPECIFIED", + "STEP_ORIGINAL_MODEL_OUTPUT", + "STEP_MODEL_OUTPUT_DEDUPLICATION", + "STEP_STOP_SEQUENCE_TRUNCATION", + "STEP_HEURISTIC_TRUNCATION", + "STEP_WALD_TRUNCATION", + "STEP_WHITESPACE_TRUNCATION", + "STEP_FINAL_DEDUPLICATION", + "STEP_TOXICITY_CHECK", + "STEP_RECITATION_CHECK", + "STEP_RETURNED", + "STEP_WALKBACK_CORRECTION", + "STEP_SCORE_THRESHOLDING", + "STEP_MODEL_CONFIG_STOP_SEQUENCE_TRUNCATION", + "STEP_CUSTOM_STOP_SEQUENCE_TRUNCATION", + "STEP_EXPECTED_SAMPLE_SIZE" + ], + "enumDeprecated": [ + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "", + "Original model outputs as-is.", + "Original model outputs after deduplication.", + "StopSequencePostProcessor.", + "Heuristic SuffixTruncator step.", + "Go service post-processor.", + "Truncate trailing whitespace and filter whitespace-only completions.", + "Deduplicate after all truncations.", + "Toxicity returns true.", + "Recitation causes BLOCK.", + "Return the response to the API.", + "Correcting walkback constraint (samples are dropped if they don't match the prefix constraint).", + "Thresholding samples based on a minimum score.", + "StopSequencePostProcessor.", + "StopSequencePostProcessor.", + "Drop extra number of samples that exceeds expected_samples." + ], + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootCodeyCompletionMetadata": { + "description": "Stores all metadata relating to Completion.", + "id": "LearningGenaiRootCodeyCompletionMetadata", + "properties": { + "checkpoints": { + "items": { + "$ref": "LearningGenaiRootCodeyCheckpoint" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootCodeyOutput": { + "description": "Top-level wrapper used to store all things codey-related.", + "id": "LearningGenaiRootCodeyOutput", + "properties": { + "codeyChatMetadata": { + "$ref": "LearningGenaiRootCodeyChatMetadata" + }, + "codeyCompletionMetadata": { + "$ref": "LearningGenaiRootCodeyCompletionMetadata" + } + }, + "type": "object" + }, + "LearningGenaiRootCodeyTruncatorMetadata": { + "description": "Metadata describing what was truncated at each checkpoint.", + "id": "LearningGenaiRootCodeyTruncatorMetadata", + "properties": { + "cutoffIndex": { + "description": "Index of the current sample that trims off truncated text.", + "format": "int32", + "type": "integer" + }, + "truncatedText": { + "description": "Text that was truncated at a specific checkpoint.", + "type": "string" + } + }, + "type": "object" + }, "LearningGenaiRootDataProviderOutput": { "id": "LearningGenaiRootDataProviderOutput", "properties": { @@ -41495,6 +41849,10 @@ "$ref": "LearningGenaiRootClassifierOutputSummary", "description": "Summary of classifier output. We attach this to all messages regardless of whether classification rules triggered or not." }, + "codeyOutput": { + "$ref": "LearningGenaiRootCodeyOutput", + "description": "Contains metadata related to Codey Processors." + }, "currentStreamTextLength": { "format": "uint32", "type": "integer" diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index bdb4649fb4..c28857231c 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -1564,6 +1564,7 @@ type CloudAiLargeModelsVisionFilteredText struct { // "CHILD_TEXT" // "DANGEROUS_CONTENT" - Text category from SafetyCat v3 // "RECITATION_TEXT" + // "CELEBRITY_IMG" Category string `json:"category,omitempty"` // Confidence: Filtered category @@ -1669,12 +1670,15 @@ type CloudAiLargeModelsVisionImage struct { // ImageRaiScores: RAI scores for generated image. ImageRaiScores *CloudAiLargeModelsVisionImageRAIScores `json:"imageRaiScores,omitempty"` - // RaiInfo: RAI info for image + // RaiInfo: RAI info for image. RaiInfo *CloudAiLargeModelsVisionRaiInfo `json:"raiInfo,omitempty"` // SemanticFilterResponse: Semantic filter info for image. SemanticFilterResponse *CloudAiLargeModelsVisionSemanticFilterResponse `json:"semanticFilterResponse,omitempty"` + // Text: Text/Expanded text input for imagen. + Text string `json:"text,omitempty"` + // Uri: Path to another storage (typically Google Cloud Storage). Uri string `json:"uri,omitempty"` @@ -2817,11 +2821,11 @@ type CloudAiNlLlmProtoServiceSafetyRating struct { // Severity: Harm severity levels in the content. // // Possible values: - // "HARM_PROBABILITY_UNSPECIFIED" - Harm probability unspecified. - // "NEGLIGIBLE" - Negligible level of harm. - // "LOW" - Low level of harm. - // "MEDIUM" - Medium level of harm. - // "HIGH" - High level of harm. + // "HARM_SEVERITY_UNSPECIFIED" - Harm severity unspecified. + // "HARM_SEVERITY_NEGLIGIBLE" - Negligible level of harm severity. + // "HARM_SEVERITY_LOW" - Low level of harm severity. + // "HARM_SEVERITY_MEDIUM" - Medium level of harm severity. + // "HARM_SEVERITY_HIGH" - High level of harm severity. Severity string `json:"severity,omitempty"` // SeverityScore: Harm severity score. @@ -6626,11 +6630,6 @@ type GoogleCloudAiplatformV1beta1CreatePipelineJobRequest struct { // characters, and valid characters are `/a-z-/`. PipelineJobId string `json:"pipelineJobId,omitempty"` - // PreflightValidations: Optional. Whether to do component level - // validations before job creation. Currently we only support Google - // First Party Component/Pipelines. - PreflightValidations bool `json:"preflightValidations,omitempty"` - // ForceSendFields is a list of field names (e.g. "Parent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -7518,10 +7517,18 @@ type GoogleCloudAiplatformV1beta1DatasetVersion struct { // created. CreateTime string `json:"createTime,omitempty"` + // DisplayName: The user-defined name of the DatasetVersion. The name + // can be up to 128 characters long and can consist of any UTF-8 + // characters. + DisplayName string `json:"displayName,omitempty"` + // Etag: Used to perform consistent read-modify-write updates. If not // set, a blind "overwrite" update happens. Etag string `json:"etag,omitempty"` + // Metadata: Required. Additional information about the DatasetVersion. + Metadata interface{} `json:"metadata,omitempty"` + // Name: Output only. The resource name of the DatasetVersion. Name string `json:"name,omitempty"` @@ -11209,6 +11216,10 @@ type GoogleCloudAiplatformV1beta1Feature struct { // type. Name string `json:"name,omitempty"` + // PointOfContact: Entity responsible for maintaining this feature. Can + // be comma separated list of email addresses or URIs. + PointOfContact string `json:"pointOfContact,omitempty"` + // UpdateTime: Output only. Only applicable for Vertex AI Feature Store // (Legacy). Timestamp when this EntityType was most recently updated. UpdateTime string `json:"updateTime,omitempty"` @@ -11334,8 +11345,7 @@ type GoogleCloudAiplatformV1beta1FeatureGroupBigQuery struct { BigQuerySource *GoogleCloudAiplatformV1beta1BigQuerySource `json:"bigQuerySource,omitempty"` // EntityIdColumns: Optional. Columns to construct entity_id / row keys. - // Currently only supports 1 entity_id_column. If not provided defaults - // to `entity_id`. + // If not provided defaults to `entity_id`. EntityIdColumns []string `json:"entityIdColumns,omitempty"` // ForceSendFields is a list of field names (e.g. "BigQuerySource") to @@ -12083,6 +12093,33 @@ type GoogleCloudAiplatformV1beta1FeatureView struct { // online_store}/featureViews/{feature_view}` Name string `json:"name,omitempty"` + // ServiceAccountEmail: Output only. A Service Account unique to this + // FeatureView. The role bigquery.dataViewer should be granted to this + // service account to allow Vertex AI Feature Store to sync data to the + // online store. + ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"` + + // ServiceAgentType: Optional. Service agent type used during data sync. + // By default, the Vertex AI Service Agent is used. When using an IAM + // Policy to isolate this FeatureView within a project + // (https://cloud.google.com/vertex-ai/docs/featurestore/latest/resource-policy) + // a separate service account should be provisioned by setting this + // field to `SERVICE_AGENT_TYPE_FEATURE_VIEW`. This will generate a + // separate service account to access the BigQuery source table. + // + // Possible values: + // "SERVICE_AGENT_TYPE_UNSPECIFIED" - By default, the project-level + // Vertex AI Service Agent is enabled. + // "SERVICE_AGENT_TYPE_PROJECT" - Indicates the project-level Vertex + // AI Service Agent + // (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + // will be used during sync jobs. + // "SERVICE_AGENT_TYPE_FEATURE_VIEW" - Enable a FeatureView service + // account to be created by Vertex AI and output in the field + // `service_account_email`. This service account will be used to read + // from the source BigQuery table during sync. + ServiceAgentType string `json:"serviceAgentType,omitempty"` + // SyncConfig: Configures when data is to be synced/updated for this // FeatureView. At the end of the sync the latest featureValues for each // entityId of this FeatureView are made ready for online serving. @@ -12126,7 +12163,6 @@ func (s *GoogleCloudAiplatformV1beta1FeatureView) MarshalJSON() ([]byte, error) type GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource struct { // EntityIdColumns: Required. Columns to construct entity_id / row keys. - // Start by supporting 1 only. EntityIdColumns []string `json:"entityIdColumns,omitempty"` // Uri: Required. The BigQuery view URI that will be materialized on @@ -12160,10 +12196,14 @@ func (s *GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource) MarshalJSON() ([ // GoogleCloudAiplatformV1beta1FeatureViewDataKey: Lookup key for a // feature view. type GoogleCloudAiplatformV1beta1FeatureViewDataKey struct { + // CompositeKey: The actual Entity ID will be composed from this struct. + // This should match with the way ID is defined in the FeatureView spec. + CompositeKey *GoogleCloudAiplatformV1beta1FeatureViewDataKeyCompositeKey `json:"compositeKey,omitempty"` + // Key: String key to use for lookup. Key string `json:"key,omitempty"` - // ForceSendFields is a list of field names (e.g. "Key") to + // ForceSendFields is a list of field names (e.g. "CompositeKey") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -12171,7 +12211,37 @@ type GoogleCloudAiplatformV1beta1FeatureViewDataKey struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Key") to include in API + // NullFields is a list of field names (e.g. "CompositeKey") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureViewDataKey) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewDataKey + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureViewDataKeyCompositeKey: ID that +// is comprised from several parts (columns). +type GoogleCloudAiplatformV1beta1FeatureViewDataKeyCompositeKey struct { + // Parts: Parts to construct Entity ID. Should match with the same ID + // columns as defined in FeatureView in the same order. + Parts []string `json:"parts,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parts") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Parts") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -12180,8 +12250,8 @@ type GoogleCloudAiplatformV1beta1FeatureViewDataKey struct { NullFields []string `json:"-"` } -func (s *GoogleCloudAiplatformV1beta1FeatureViewDataKey) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1FeatureViewDataKey +func (s *GoogleCloudAiplatformV1beta1FeatureViewDataKeyCompositeKey) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewDataKeyCompositeKey raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -13958,6 +14028,35 @@ func (s *GoogleCloudAiplatformV1beta1GenericOperationMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1GenieSource: Contains information about +// the source of the models generated from Generative AI Studio. +type GoogleCloudAiplatformV1beta1GenieSource struct { + // BaseModelUri: Required. The public base model URI. + BaseModelUri string `json:"baseModelUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BaseModelUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BaseModelUri") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1GenieSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GenieSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1GoogleSearchRetrieval: Tool to retrieve // public web data for grounding, powered by Google. type GoogleCloudAiplatformV1beta1GoogleSearchRetrieval struct { @@ -14881,6 +14980,8 @@ type GoogleCloudAiplatformV1beta1IndexDatapointNumericRestriction struct { // query's. // "GREATER" - Datapoints are eligible iff their value is > the // query's. + // "NOT_EQUAL" - Datapoints are eligible iff their value is != the + // query's. Op string `json:"op,omitempty"` // ValueDouble: Represents 64 bit float. @@ -18184,6 +18285,11 @@ type GoogleCloudAiplatformV1beta1Model struct { // AutoML Models. ArtifactUri string `json:"artifactUri,omitempty"` + // BaseModelSource: Optional. User input field to specify the base model + // source. Currently it only supports specifing the Model Garden models + // and Genie models. + BaseModelSource *GoogleCloudAiplatformV1beta1ModelBaseModelSource `json:"baseModelSource,omitempty"` + // ContainerSpec: Input only. The specification of the container that is // to be used when deploying this Model. The specification is ingested // upon ModelService.UploadModel, and all binaries it contains are @@ -18409,6 +18515,39 @@ func (s *GoogleCloudAiplatformV1beta1Model) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ModelBaseModelSource: User input field to +// specify the base model source. Currently it only supports specifing +// the Model Garden models and Genie models. +type GoogleCloudAiplatformV1beta1ModelBaseModelSource struct { + // GenieSource: Information about the base model of Genie models. + GenieSource *GoogleCloudAiplatformV1beta1GenieSource `json:"genieSource,omitempty"` + + // ModelGardenSource: Source information of Model Garden models. + ModelGardenSource *GoogleCloudAiplatformV1beta1ModelGardenSource `json:"modelGardenSource,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenieSource") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenieSource") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ModelBaseModelSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ModelBaseModelSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ModelContainerSpec: Specification of a // container for serving predictions. Some fields in this message // correspond to fields in the Kubernetes Container v1 core @@ -19497,6 +19636,37 @@ func (s *GoogleCloudAiplatformV1beta1ModelExportFormat) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ModelGardenSource: Contains information +// about the source of the models generated from Model Garden. +type GoogleCloudAiplatformV1beta1ModelGardenSource struct { + // PublicModelName: Required. The model garden source model resource + // name. + PublicModelName string `json:"publicModelName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PublicModelName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PublicModelName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ModelGardenSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ModelGardenSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig: The alert // config for model monitoring. type GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig struct { @@ -21938,6 +22108,10 @@ type GoogleCloudAiplatformV1beta1PipelineJob struct { // PipelineSpec: The spec of the pipeline. PipelineSpec googleapi.RawMessage `json:"pipelineSpec,omitempty"` + // PreflightValidations: Optional. Whether to do component level + // validations before job creation. + PreflightValidations bool `json:"preflightValidations,omitempty"` + // ReservedIpRanges: A list of names for the reserved ip ranges under // the VPC network that can be used for this Pipeline Job's workload. If // set, we will deploy the Pipeline Job's workload within the provided @@ -23029,13 +23203,20 @@ type GoogleCloudAiplatformV1beta1PublisherModel struct { // // Possible values: // "LAUNCH_STAGE_UNSPECIFIED" - The model launch stage is unspecified. + // "DOGFOOD" - Used to indicate the PublisherModel is at Google + // internal testing launch stage. // "EXPERIMENTAL" - Used to indicate the PublisherModel is at - // Experimental launch stage. + // Experimental launch stage, available to a small set of customers. // "PRIVATE_PREVIEW" - Used to indicate the PublisherModel is at - // Private Preview launch stage. + // Private Preview launch stage, only available to a small set of + // customers, although a larger set of customers than an Experimental + // launch. Previews are the first launch stage used to get feedback from + // customers. // "PUBLIC_PREVIEW" - Used to indicate the PublisherModel is at Public - // Preview launch stage. - // "GA" - Used to indicate the PublisherModel is at GA launch stage. + // Preview launch stage, available to all customers, although not + // supported for production workloads. + // "GA" - Used to indicate the PublisherModel is at GA launch stage, + // available to all customers and ready for production workload. LaunchStage string `json:"launchStage,omitempty"` // Name: Output only. The resource name of the PublisherModel. @@ -25089,6 +25270,22 @@ type GoogleCloudAiplatformV1beta1SafetyRating struct { // "HIGH" - High level of harm. Probability string `json:"probability,omitempty"` + // ProbabilityScore: Output only. Harm probability score. + ProbabilityScore float64 `json:"probabilityScore,omitempty"` + + // Severity: Output only. Harm severity levels in the content. + // + // Possible values: + // "HARM_SEVERITY_UNSPECIFIED" - Harm severity unspecified. + // "HARM_SEVERITY_NEGLIGIBLE" - Negligible level of harm severity. + // "HARM_SEVERITY_LOW" - Low level of harm severity. + // "HARM_SEVERITY_MEDIUM" - Medium level of harm severity. + // "HARM_SEVERITY_HIGH" - High level of harm severity. + Severity string `json:"severity,omitempty"` + + // SeverityScore: Output only. Harm severity score. + SeverityScore float64 `json:"severityScore,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blocked") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -25112,6 +25309,22 @@ func (s *GoogleCloudAiplatformV1beta1SafetyRating) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +func (s *GoogleCloudAiplatformV1beta1SafetyRating) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1SafetyRating + var s1 struct { + ProbabilityScore gensupport.JSONFloat64 `json:"probabilityScore"` + SeverityScore gensupport.JSONFloat64 `json:"severityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ProbabilityScore = float64(s1.ProbabilityScore) + s.SeverityScore = float64(s1.SeverityScore) + return nil +} + // GoogleCloudAiplatformV1beta1SafetySetting: Safety settings. type GoogleCloudAiplatformV1beta1SafetySetting struct { // Category: Required. Harm category. @@ -36187,24 +36400,27 @@ func (s *GoogleCloudAiplatformV1beta1TokensInfo) MarshalJSON() ([]byte, error) { // to generate response. A `Tool` is a piece of code that enables the // system to interact with external systems to perform an action, or set // of actions, outside of knowledge and scope of the model. A Tool -// object should contain exactly one type of Tool. +// object should contain exactly one type of Tool (e.g +// FunctionDeclaration, Retrieval or GoogleSearchRetrieval). type GoogleCloudAiplatformV1beta1Tool struct { - // FunctionDeclarations: Optional. One or more function declarations to - // be passed to the model along with the current user query. Model may - // decide to call a subset of these functions by populating FunctionCall - // in the response. User should provide a FunctionResponse for each - // function call in the next turn. Based on the function responses, - // Model will generate the final response back to the user. Maximum 64 - // function declarations can be provided. + // FunctionDeclarations: Optional. Function tool type. One or more + // function declarations to be passed to the model along with the + // current user query. Model may decide to call a subset of these + // functions by populating FunctionCall in the response. User should + // provide a FunctionResponse for each function call in the next turn. + // Based on the function responses, Model will generate the final + // response back to the user. Maximum 64 function declarations can be + // provided. FunctionDeclarations []*GoogleCloudAiplatformV1beta1FunctionDeclaration `json:"functionDeclarations,omitempty"` - // GoogleSearchRetrieval: Optional. Specialized retrieval tool that is - // powered by Google search. + // GoogleSearchRetrieval: Optional. GoogleSearchRetrieval tool type. + // Specialized retrieval tool that is powered by Google search. GoogleSearchRetrieval *GoogleCloudAiplatformV1beta1GoogleSearchRetrieval `json:"googleSearchRetrieval,omitempty"` - // Retrieval: Optional. System will always execute the provided - // retrieval tool(s) to get external knowledge to answer the prompt. - // Retrieval results are presented to the model for generation. + // Retrieval: Optional. Retrieval tool type. System will always execute + // the provided retrieval tool(s) to get external knowledge to answer + // the prompt. Retrieval results are presented to the model for + // generation. Retrieval *GoogleCloudAiplatformV1beta1Retrieval `json:"retrieval,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -39126,6 +39342,7 @@ type LanguageLabsAidaTrustRecitationProtoDocAttribution struct { // "GENESIS_NEWS_INSIGHTS" - Genesis fine-tune datasets. // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine-tune datasets. // "CLOUD_SECURITY_FINETUNING" + // "CLOUD_SECURITY_RAG_CISA" // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. // "LABS_AQA_TAILWIND" // "LABS_AQA_DELEWARE" @@ -39363,6 +39580,12 @@ type LanguageLabsAidaTrustRecitationProtoDocAttribution struct { // "CLOUD_GEMIT_CODE_IF_V1" // "CLOUD_GEMIT_CODE_SELF_REPAIR" // "CLOUD_GEMIT_IDENTITY" + // "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION" - Cloud gemit + // ultra FT datasets. + // "CLOUD_GEMIT_AMPS" + // "CLOUD_GEMIT_AQUA" + // "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA" + // "CLOUD_GEMIT_GSM8K_SCHEMA" Dataset string `json:"dataset,omitempty"` Filepath string `json:"filepath,omitempty"` @@ -39706,6 +39929,7 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { // "GENESIS_NEWS_INSIGHTS" - Genesis fine-tune datasets. // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine-tune datasets. // "CLOUD_SECURITY_FINETUNING" + // "CLOUD_SECURITY_RAG_CISA" // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. // "LABS_AQA_TAILWIND" // "LABS_AQA_DELEWARE" @@ -39943,6 +40167,12 @@ type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { // "CLOUD_GEMIT_CODE_IF_V1" // "CLOUD_GEMIT_CODE_SELF_REPAIR" // "CLOUD_GEMIT_IDENTITY" + // "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION" - Cloud gemit + // ultra FT datasets. + // "CLOUD_GEMIT_AMPS" + // "CLOUD_GEMIT_AQUA" + // "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA" + // "CLOUD_GEMIT_GSM8K_SCHEMA" AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains @@ -40279,8 +40509,6 @@ type LearningGenaiRecitationDocAttribution struct { // finetune datasets. // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" // "GENESIS_NEWS_INSIGHTS" - Genesis fine tuned datasets. - // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. - // "CLOUD_SECURITY_FINETUNING" // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. // "LABS_AQA_TAILWIND" // "LABS_AQA_DELEWARE" @@ -40317,6 +40545,9 @@ type LearningGenaiRecitationDocAttribution struct { // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. + // "CLOUD_SECURITY_FINETUNING" + // "CLOUD_SECURITY_RAG_CISA" // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -40518,6 +40749,12 @@ type LearningGenaiRecitationDocAttribution struct { // "CLOUD_GEMIT_CODE_IF_V1" // "CLOUD_GEMIT_CODE_SELF_REPAIR" // "CLOUD_GEMIT_IDENTITY" + // "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION" - Cloud gemit + // ultra FT datasets. + // "CLOUD_GEMIT_AMPS" + // "CLOUD_GEMIT_AQUA" + // "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA" + // "CLOUD_GEMIT_GSM8K_SCHEMA" Dataset string `json:"dataset,omitempty"` Filepath string `json:"filepath,omitempty"` @@ -40859,8 +41096,6 @@ type LearningGenaiRecitationSegmentResult struct { // finetune datasets. // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" // "GENESIS_NEWS_INSIGHTS" - Genesis fine tuned datasets. - // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. - // "CLOUD_SECURITY_FINETUNING" // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. // "LABS_AQA_TAILWIND" // "LABS_AQA_DELEWARE" @@ -40897,6 +41132,9 @@ type LearningGenaiRecitationSegmentResult struct { // "GEMINI_IT_CLOUD_SELF_INSTRUCT" // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. + // "CLOUD_SECURITY_FINETUNING" + // "CLOUD_SECURITY_RAG_CISA" // "GEMINI_GOOSE_PUBLIC" - Gemini Goose FT datasets. // "GEMINI_GOOSE_SILOED" // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 @@ -41098,6 +41336,12 @@ type LearningGenaiRecitationSegmentResult struct { // "CLOUD_GEMIT_CODE_IF_V1" // "CLOUD_GEMIT_CODE_SELF_REPAIR" // "CLOUD_GEMIT_IDENTITY" + // "CLOUD_GEMIT_SEARCH_AUGMENTED_RESPONSE_GENERATION" - Cloud gemit + // ultra FT datasets. + // "CLOUD_GEMIT_AMPS" + // "CLOUD_GEMIT_AQUA" + // "CLOUD_GEMIT_COMMON_SENSE_REASONING_SCHEMA" + // "CLOUD_GEMIT_GSM8K_SCHEMA" AttributionDataset string `json:"attributionDataset,omitempty"` // DisplayAttributionMessage: human-friendly string that contains @@ -41305,6 +41549,217 @@ func (s *LearningGenaiRootClassifierState) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LearningGenaiRootCodeyChatMetadata: Stores all metadata relating to +// AIDA DoConversation. +type LearningGenaiRootCodeyChatMetadata struct { + // CodeLanguage: Indicates the programming language of the code if the + // message is a code chunk. + // + // Possible values: + // "UNSPECIFIED" - Unspecified Language. + // "ALL" - All languages. + // "TEXT" - Not code. + // "CPP" - The most common, well-supported languages. C++ code. + // "PYTHON" - Python code. + // "KOTLIN" - Kotlin code. + // "JAVA" - Java code. + // "JAVASCRIPT" - JavaScript code. + // "GO" - Go code. + // "R" - R code. + // "JUPYTER_NOTEBOOK" - Jupyter notebook. + // "TYPESCRIPT" - TypeScript code. + // "HTML" - HTML code. + // "SQL" - SQL code. + // "BASH" - Other languages in alphabetical order. BASH code. + // "C" - C code. + // "DART" - Dart code. + // "GRADLE" - Gradle code. + // "JAVADOC" - API documentation. + // "JSON" - JSON code. + // "MAKEFILE" - Makefile code. + // "MARKDOWN" - Markdown code. + // "PROTO" - Protocol buffer. + // "XML" - XML code. + // "YAML" - YAML code. + CodeLanguage string `json:"codeLanguage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CodeLanguage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CodeLanguage") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootCodeyChatMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCodeyChatMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootCodeyCheckpoint: Describes a sample at a checkpoint +// for post-processing. +type LearningGenaiRootCodeyCheckpoint struct { + // CodeyTruncatorMetadata: Metadata that describes what was truncated at + // this checkpoint. + CodeyTruncatorMetadata *LearningGenaiRootCodeyTruncatorMetadata `json:"codeyTruncatorMetadata,omitempty"` + + // CurrentSample: Current state of the sample after truncator. + CurrentSample string `json:"currentSample,omitempty"` + + // PostInferenceStep: Postprocessor run that yielded this checkpoint. + // + // Possible values: + // "STEP_POST_PROCESSING_STEP_UNSPECIFIED" + // "STEP_ORIGINAL_MODEL_OUTPUT" - Original model outputs as-is. + // "STEP_MODEL_OUTPUT_DEDUPLICATION" - Original model outputs after + // deduplication. + // "STEP_STOP_SEQUENCE_TRUNCATION" - StopSequencePostProcessor. + // "STEP_HEURISTIC_TRUNCATION" - Heuristic SuffixTruncator step. + // "STEP_WALD_TRUNCATION" - Go service post-processor. + // "STEP_WHITESPACE_TRUNCATION" - Truncate trailing whitespace and + // filter whitespace-only completions. + // "STEP_FINAL_DEDUPLICATION" - Deduplicate after all truncations. + // "STEP_TOXICITY_CHECK" - Toxicity returns true. + // "STEP_RECITATION_CHECK" - Recitation causes BLOCK. + // "STEP_RETURNED" - Return the response to the API. + // "STEP_WALKBACK_CORRECTION" - Correcting walkback constraint + // (samples are dropped if they don't match the prefix constraint). + // "STEP_SCORE_THRESHOLDING" - Thresholding samples based on a minimum + // score. + // "STEP_MODEL_CONFIG_STOP_SEQUENCE_TRUNCATION" - + // StopSequencePostProcessor. + // "STEP_CUSTOM_STOP_SEQUENCE_TRUNCATION" - StopSequencePostProcessor. + // "STEP_EXPECTED_SAMPLE_SIZE" - Drop extra number of samples that + // exceeds expected_samples. + PostInferenceStep string `json:"postInferenceStep,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CodeyTruncatorMetadata") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CodeyTruncatorMetadata") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootCodeyCheckpoint) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCodeyCheckpoint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootCodeyCompletionMetadata: Stores all metadata +// relating to Completion. +type LearningGenaiRootCodeyCompletionMetadata struct { + Checkpoints []*LearningGenaiRootCodeyCheckpoint `json:"checkpoints,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Checkpoints") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Checkpoints") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootCodeyCompletionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCodeyCompletionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootCodeyOutput: Top-level wrapper used to store all +// things codey-related. +type LearningGenaiRootCodeyOutput struct { + CodeyChatMetadata *LearningGenaiRootCodeyChatMetadata `json:"codeyChatMetadata,omitempty"` + + CodeyCompletionMetadata *LearningGenaiRootCodeyCompletionMetadata `json:"codeyCompletionMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CodeyChatMetadata") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CodeyChatMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootCodeyOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCodeyOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootCodeyTruncatorMetadata: Metadata describing what was +// truncated at each checkpoint. +type LearningGenaiRootCodeyTruncatorMetadata struct { + // CutoffIndex: Index of the current sample that trims off truncated + // text. + CutoffIndex int64 `json:"cutoffIndex,omitempty"` + + // TruncatedText: Text that was truncated at a specific checkpoint. + TruncatedText string `json:"truncatedText,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CutoffIndex") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CutoffIndex") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootCodeyTruncatorMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCodeyTruncatorMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type LearningGenaiRootDataProviderOutput struct { Name string `json:"name,omitempty"` @@ -42829,6 +43284,9 @@ type LearningServingLlmMessageMetadata struct { // not. ClassifierSummary *LearningGenaiRootClassifierOutputSummary `json:"classifierSummary,omitempty"` + // CodeyOutput: Contains metadata related to Codey Processors. + CodeyOutput *LearningGenaiRootCodeyOutput `json:"codeyOutput,omitempty"` + CurrentStreamTextLength int64 `json:"currentStreamTextLength,omitempty"` // Deleted: Whether the corresponding message has been deleted. @@ -109225,15 +109683,6 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) PipelineJobId(pipelineJobId st return c } -// PreflightValidations sets the optional parameter -// "preflightValidations": Whether to do component level validations -// before job creation. Currently we only support Google First Party -// Component/Pipelines. -func (c *ProjectsLocationsPipelineJobsCreateCall) PreflightValidations(preflightValidations bool) *ProjectsLocationsPipelineJobsCreateCall { - c.urlParams_.Set("preflightValidations", fmt.Sprint(preflightValidations)) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -109345,11 +109794,6 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOptio // "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" - // }, - // "preflightValidations": { - // "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", - // "location": "query", - // "type": "boolean" // } // }, // "path": "v1beta1/{+parent}/pipelineJobs",