shengsuanyun-gemini-api 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.mjs","sources":["../../src/types.ts","../../src/_transformers.ts","../../src/cross/sentencepiece/_model.ts","../../src/cross/sentencepiece/_prefix_matcher.ts","../../src/cross/sentencepiece/_priority_queue.ts","../../src/cross/sentencepiece/sentencepiece_model.pb.js","../../src/cross/sentencepiece/_processor.ts","../../src/cross/tokenizer/_loader.ts","../../src/cross/tokenizer/_texts_accumulator.ts","../../src/cross/tokenizer/_local_tokenizer_impl.ts","../../src/node/_node_tokenizer_platform.ts","../../src/node/local_tokenizer.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// Code generated by the Google Gen AI SDK generator DO NOT EDIT.\n\nimport type {ReferenceImageAPIInternal} from './_internal_types.js';\nimport {\n generateVideosOperationFromMldev,\n generateVideosOperationFromVertex,\n importFileOperationFromMldev,\n uploadToFileSearchStoreOperationFromMldev,\n} from './converters/_operations_converters.js';\n\n/** Outcome of the code execution. */\nexport enum Outcome {\n /**\n * Unspecified status. This value should not be used.\n */\n OUTCOME_UNSPECIFIED = 'OUTCOME_UNSPECIFIED',\n /**\n * Code execution completed successfully.\n */\n OUTCOME_OK = 'OUTCOME_OK',\n /**\n * Code execution finished but with a failure. `stderr` should contain the reason.\n */\n OUTCOME_FAILED = 'OUTCOME_FAILED',\n /**\n * Code execution ran for too long, and was cancelled. There may or may not be a partial output present.\n */\n OUTCOME_DEADLINE_EXCEEDED = 'OUTCOME_DEADLINE_EXCEEDED',\n}\n\n/** Programming language of the `code`. */\nexport enum Language {\n /**\n * Unspecified language. This value should not be used.\n */\n LANGUAGE_UNSPECIFIED = 'LANGUAGE_UNSPECIFIED',\n /**\n * Python >= 3.10, with numpy and simpy available.\n */\n PYTHON = 'PYTHON',\n}\n\n/** Specifies how the response should be scheduled in the conversation. */\nexport enum FunctionResponseScheduling {\n /**\n * This value is unused.\n */\n SCHEDULING_UNSPECIFIED = 'SCHEDULING_UNSPECIFIED',\n /**\n * Only add the result to the conversation context, do not interrupt or trigger generation.\n */\n SILENT = 'SILENT',\n /**\n * Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.\n */\n WHEN_IDLE = 'WHEN_IDLE',\n /**\n * Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.\n */\n INTERRUPT = 'INTERRUPT',\n}\n\n/** The type of the data. */\nexport enum Type {\n /**\n * Not specified, should not be used.\n */\n TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED',\n /**\n * OpenAPI string type\n */\n STRING = 'STRING',\n /**\n * OpenAPI number type\n */\n NUMBER = 'NUMBER',\n /**\n * OpenAPI integer type\n */\n INTEGER = 'INTEGER',\n /**\n * OpenAPI boolean type\n */\n BOOLEAN = 'BOOLEAN',\n /**\n * OpenAPI array type\n */\n ARRAY = 'ARRAY',\n /**\n * OpenAPI object type\n */\n OBJECT = 'OBJECT',\n /**\n * Null type\n */\n NULL = 'NULL',\n}\n\n/** The API spec that the external API implements. This enum is not supported in Gemini API. */\nexport enum ApiSpec {\n /**\n * Unspecified API spec. This value should not be used.\n */\n API_SPEC_UNSPECIFIED = 'API_SPEC_UNSPECIFIED',\n /**\n * Simple search API spec.\n */\n SIMPLE_SEARCH = 'SIMPLE_SEARCH',\n /**\n * Elastic search API spec.\n */\n ELASTIC_SEARCH = 'ELASTIC_SEARCH',\n}\n\n/** Type of auth scheme. This enum is not supported in Gemini API. */\nexport enum AuthType {\n AUTH_TYPE_UNSPECIFIED = 'AUTH_TYPE_UNSPECIFIED',\n /**\n * No Auth.\n */\n NO_AUTH = 'NO_AUTH',\n /**\n * API Key Auth.\n */\n API_KEY_AUTH = 'API_KEY_AUTH',\n /**\n * HTTP Basic Auth.\n */\n HTTP_BASIC_AUTH = 'HTTP_BASIC_AUTH',\n /**\n * Google Service Account Auth.\n */\n GOOGLE_SERVICE_ACCOUNT_AUTH = 'GOOGLE_SERVICE_ACCOUNT_AUTH',\n /**\n * OAuth auth.\n */\n OAUTH = 'OAUTH',\n /**\n * OpenID Connect (OIDC) Auth.\n */\n OIDC_AUTH = 'OIDC_AUTH',\n}\n\n/** The location of the API key. This enum is not supported in Gemini API. */\nexport enum HttpElementLocation {\n HTTP_IN_UNSPECIFIED = 'HTTP_IN_UNSPECIFIED',\n /**\n * Element is in the HTTP request query.\n */\n HTTP_IN_QUERY = 'HTTP_IN_QUERY',\n /**\n * Element is in the HTTP request header.\n */\n HTTP_IN_HEADER = 'HTTP_IN_HEADER',\n /**\n * Element is in the HTTP request path.\n */\n HTTP_IN_PATH = 'HTTP_IN_PATH',\n /**\n * Element is in the HTTP request body.\n */\n HTTP_IN_BODY = 'HTTP_IN_BODY',\n /**\n * Element is in the HTTP request cookie.\n */\n HTTP_IN_COOKIE = 'HTTP_IN_COOKIE',\n}\n\n/** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */\nexport enum PhishBlockThreshold {\n /**\n * Defaults to unspecified.\n */\n PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 'PHISH_BLOCK_THRESHOLD_UNSPECIFIED',\n /**\n * Blocks Low and above confidence URL that is risky.\n */\n BLOCK_LOW_AND_ABOVE = 'BLOCK_LOW_AND_ABOVE',\n /**\n * Blocks Medium and above confidence URL that is risky.\n */\n BLOCK_MEDIUM_AND_ABOVE = 'BLOCK_MEDIUM_AND_ABOVE',\n /**\n * Blocks High and above confidence URL that is risky.\n */\n BLOCK_HIGH_AND_ABOVE = 'BLOCK_HIGH_AND_ABOVE',\n /**\n * Blocks Higher and above confidence URL that is risky.\n */\n BLOCK_HIGHER_AND_ABOVE = 'BLOCK_HIGHER_AND_ABOVE',\n /**\n * Blocks Very high and above confidence URL that is risky.\n */\n BLOCK_VERY_HIGH_AND_ABOVE = 'BLOCK_VERY_HIGH_AND_ABOVE',\n /**\n * Blocks Extremely high confidence URL that is risky.\n */\n BLOCK_ONLY_EXTREMELY_HIGH = 'BLOCK_ONLY_EXTREMELY_HIGH',\n}\n\n/** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */\nexport enum Behavior {\n /**\n * This value is unused.\n */\n UNSPECIFIED = 'UNSPECIFIED',\n /**\n * If set, the system will wait to receive the function response before continuing the conversation.\n */\n BLOCKING = 'BLOCKING',\n /**\n * If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model.\n */\n NON_BLOCKING = 'NON_BLOCKING',\n}\n\n/** The mode of the predictor to be used in dynamic retrieval. */\nexport enum DynamicRetrievalConfigMode {\n /**\n * Always trigger retrieval.\n */\n MODE_UNSPECIFIED = 'MODE_UNSPECIFIED',\n /**\n * Run retrieval only when system decides it is necessary.\n */\n MODE_DYNAMIC = 'MODE_DYNAMIC',\n}\n\n/** Function calling mode. */\nexport enum FunctionCallingConfigMode {\n /**\n * Unspecified function calling mode. This value should not be used.\n */\n MODE_UNSPECIFIED = 'MODE_UNSPECIFIED',\n /**\n * Default model behavior, model decides to predict either function calls or natural language response.\n */\n AUTO = 'AUTO',\n /**\n * Model is constrained to always predicting function calls only. If \"allowed_function_names\" are set, the predicted function calls will be limited to any one of \"allowed_function_names\", else the predicted function calls will be any one of the provided \"function_declarations\".\n */\n ANY = 'ANY',\n /**\n * Model will not predict any function calls. Model behavior is same as when not passing any function declarations.\n */\n NONE = 'NONE',\n /**\n * Model is constrained to predict either function calls or natural language response. If \"allowed_function_names\" are set, the predicted function calls will be limited to any one of \"allowed_function_names\", else the predicted function calls will be any one of the provided \"function_declarations\".\n */\n VALIDATED = 'VALIDATED',\n}\n\n/** The number of thoughts tokens that the model should generate. */\nexport enum ThinkingLevel {\n /**\n * Unspecified thinking level.\n */\n THINKING_LEVEL_UNSPECIFIED = 'THINKING_LEVEL_UNSPECIFIED',\n /**\n * Low thinking level.\n */\n LOW = 'LOW',\n /**\n * Medium thinking level.\n */\n MEDIUM = 'MEDIUM',\n /**\n * High thinking level.\n */\n HIGH = 'HIGH',\n /**\n * MINIMAL thinking level.\n */\n MINIMAL = 'MINIMAL',\n}\n\n/** Harm category. */\nexport enum HarmCategory {\n /**\n * The harm category is unspecified.\n */\n HARM_CATEGORY_UNSPECIFIED = 'HARM_CATEGORY_UNSPECIFIED',\n /**\n * The harm category is harassment.\n */\n HARM_CATEGORY_HARASSMENT = 'HARM_CATEGORY_HARASSMENT',\n /**\n * The harm category is hate speech.\n */\n HARM_CATEGORY_HATE_SPEECH = 'HARM_CATEGORY_HATE_SPEECH',\n /**\n * The harm category is sexually explicit content.\n */\n HARM_CATEGORY_SEXUALLY_EXPLICIT = 'HARM_CATEGORY_SEXUALLY_EXPLICIT',\n /**\n * The harm category is dangerous content.\n */\n HARM_CATEGORY_DANGEROUS_CONTENT = 'HARM_CATEGORY_DANGEROUS_CONTENT',\n /**\n * Deprecated: Election filter is not longer supported. The harm category is civic integrity.\n */\n HARM_CATEGORY_CIVIC_INTEGRITY = 'HARM_CATEGORY_CIVIC_INTEGRITY',\n /**\n * The harm category is image hate. This enum value is not supported in Gemini API.\n */\n HARM_CATEGORY_IMAGE_HATE = 'HARM_CATEGORY_IMAGE_HATE',\n /**\n * The harm category is image dangerous content. This enum value is not supported in Gemini API.\n */\n HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT = 'HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT',\n /**\n * The harm category is image harassment. This enum value is not supported in Gemini API.\n */\n HARM_CATEGORY_IMAGE_HARASSMENT = 'HARM_CATEGORY_IMAGE_HARASSMENT',\n /**\n * The harm category is image sexually explicit content. This enum value is not supported in Gemini API.\n */\n HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT = 'HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT',\n /**\n * The harm category is for jailbreak prompts. This enum value is not supported in Gemini API.\n */\n HARM_CATEGORY_JAILBREAK = 'HARM_CATEGORY_JAILBREAK',\n}\n\n/** Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score. This enum is not supported in Gemini API. */\nexport enum HarmBlockMethod {\n /**\n * The harm block method is unspecified.\n */\n HARM_BLOCK_METHOD_UNSPECIFIED = 'HARM_BLOCK_METHOD_UNSPECIFIED',\n /**\n * The harm block method uses both probability and severity scores.\n */\n SEVERITY = 'SEVERITY',\n /**\n * The harm block method uses the probability score.\n */\n PROBABILITY = 'PROBABILITY',\n}\n\n/** The harm block threshold. */\nexport enum HarmBlockThreshold {\n /**\n * Unspecified harm block threshold.\n */\n HARM_BLOCK_THRESHOLD_UNSPECIFIED = 'HARM_BLOCK_THRESHOLD_UNSPECIFIED',\n /**\n * Block low threshold and above (i.e. block more).\n */\n BLOCK_LOW_AND_ABOVE = 'BLOCK_LOW_AND_ABOVE',\n /**\n * Block medium threshold and above.\n */\n BLOCK_MEDIUM_AND_ABOVE = 'BLOCK_MEDIUM_AND_ABOVE',\n /**\n * Block only high threshold (i.e. block less).\n */\n BLOCK_ONLY_HIGH = 'BLOCK_ONLY_HIGH',\n /**\n * Block none.\n */\n BLOCK_NONE = 'BLOCK_NONE',\n /**\n * Turn off the safety filter.\n */\n OFF = 'OFF',\n}\n\n/** Output only. The reason why the model stopped generating tokens.\n\nIf empty, the model has not stopped generating the tokens. */\nexport enum FinishReason {\n /**\n * The finish reason is unspecified.\n */\n FINISH_REASON_UNSPECIFIED = 'FINISH_REASON_UNSPECIFIED',\n /**\n * Token generation reached a natural stopping point or a configured stop sequence.\n */\n STOP = 'STOP',\n /**\n * Token generation reached the configured maximum output tokens.\n */\n MAX_TOKENS = 'MAX_TOKENS',\n /**\n * Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, [content][] is empty if content filters blocks the output.\n */\n SAFETY = 'SAFETY',\n /**\n * The token generation stopped because of potential recitation.\n */\n RECITATION = 'RECITATION',\n /**\n * The token generation stopped because of using an unsupported language.\n */\n LANGUAGE = 'LANGUAGE',\n /**\n * All other reasons that stopped the token generation.\n */\n OTHER = 'OTHER',\n /**\n * Token generation stopped because the content contains forbidden terms.\n */\n BLOCKLIST = 'BLOCKLIST',\n /**\n * Token generation stopped for potentially containing prohibited content.\n */\n PROHIBITED_CONTENT = 'PROHIBITED_CONTENT',\n /**\n * Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).\n */\n SPII = 'SPII',\n /**\n * The function call generated by the model is invalid.\n */\n MALFORMED_FUNCTION_CALL = 'MALFORMED_FUNCTION_CALL',\n /**\n * Token generation stopped because generated images have safety violations.\n */\n IMAGE_SAFETY = 'IMAGE_SAFETY',\n /**\n * The tool call generated by the model is invalid.\n */\n UNEXPECTED_TOOL_CALL = 'UNEXPECTED_TOOL_CALL',\n /**\n * Image generation stopped because the generated images have prohibited content.\n */\n IMAGE_PROHIBITED_CONTENT = 'IMAGE_PROHIBITED_CONTENT',\n /**\n * The model was expected to generate an image, but none was generated.\n */\n NO_IMAGE = 'NO_IMAGE',\n /**\n * Image generation stopped because the generated image may be a recitation from a source.\n */\n IMAGE_RECITATION = 'IMAGE_RECITATION',\n /**\n * Image generation stopped for a reason not otherwise specified.\n */\n IMAGE_OTHER = 'IMAGE_OTHER',\n}\n\n/** Output only. Harm probability levels in the content. */\nexport enum HarmProbability {\n /**\n * Harm probability unspecified.\n */\n HARM_PROBABILITY_UNSPECIFIED = 'HARM_PROBABILITY_UNSPECIFIED',\n /**\n * Negligible level of harm.\n */\n NEGLIGIBLE = 'NEGLIGIBLE',\n /**\n * Low level of harm.\n */\n LOW = 'LOW',\n /**\n * Medium level of harm.\n */\n MEDIUM = 'MEDIUM',\n /**\n * High level of harm.\n */\n HIGH = 'HIGH',\n}\n\n/** Output only. Harm severity levels in the content. This enum is not supported in Gemini API. */\nexport enum HarmSeverity {\n /**\n * Harm severity unspecified.\n */\n HARM_SEVERITY_UNSPECIFIED = 'HARM_SEVERITY_UNSPECIFIED',\n /**\n * Negligible level of harm severity.\n */\n HARM_SEVERITY_NEGLIGIBLE = 'HARM_SEVERITY_NEGLIGIBLE',\n /**\n * Low level of harm severity.\n */\n HARM_SEVERITY_LOW = 'HARM_SEVERITY_LOW',\n /**\n * Medium level of harm severity.\n */\n HARM_SEVERITY_MEDIUM = 'HARM_SEVERITY_MEDIUM',\n /**\n * High level of harm severity.\n */\n HARM_SEVERITY_HIGH = 'HARM_SEVERITY_HIGH',\n}\n\n/** Status of the url retrieval. */\nexport enum UrlRetrievalStatus {\n /**\n * Default value. This value is unused.\n */\n URL_RETRIEVAL_STATUS_UNSPECIFIED = 'URL_RETRIEVAL_STATUS_UNSPECIFIED',\n /**\n * Url retrieval is successful.\n */\n URL_RETRIEVAL_STATUS_SUCCESS = 'URL_RETRIEVAL_STATUS_SUCCESS',\n /**\n * Url retrieval is failed due to error.\n */\n URL_RETRIEVAL_STATUS_ERROR = 'URL_RETRIEVAL_STATUS_ERROR',\n /**\n * Url retrieval is failed because the content is behind paywall. This enum value is not supported in Vertex AI.\n */\n URL_RETRIEVAL_STATUS_PAYWALL = 'URL_RETRIEVAL_STATUS_PAYWALL',\n /**\n * Url retrieval is failed because the content is unsafe. This enum value is not supported in Vertex AI.\n */\n URL_RETRIEVAL_STATUS_UNSAFE = 'URL_RETRIEVAL_STATUS_UNSAFE',\n}\n\n/** Output only. The reason why the prompt was blocked. */\nexport enum BlockedReason {\n /**\n * The blocked reason is unspecified.\n */\n BLOCKED_REASON_UNSPECIFIED = 'BLOCKED_REASON_UNSPECIFIED',\n /**\n * The prompt was blocked for safety reasons.\n */\n SAFETY = 'SAFETY',\n /**\n * The prompt was blocked for other reasons. For example, it may be due to the prompt's language, or because it contains other harmful content.\n */\n OTHER = 'OTHER',\n /**\n * The prompt was blocked because it contains a term from the terminology blocklist.\n */\n BLOCKLIST = 'BLOCKLIST',\n /**\n * The prompt was blocked because it contains prohibited content.\n */\n PROHIBITED_CONTENT = 'PROHIBITED_CONTENT',\n /**\n * The prompt was blocked because it contains content that is unsafe for image generation.\n */\n IMAGE_SAFETY = 'IMAGE_SAFETY',\n /**\n * The prompt was blocked by Model Armor. This enum value is not supported in Gemini API.\n */\n MODEL_ARMOR = 'MODEL_ARMOR',\n /**\n * The prompt was blocked as a jailbreak attempt. This enum value is not supported in Gemini API.\n */\n JAILBREAK = 'JAILBREAK',\n}\n\n/** Output only. The traffic type for this request. This enum is not supported in Gemini API. */\nexport enum TrafficType {\n /**\n * Unspecified request traffic type.\n */\n TRAFFIC_TYPE_UNSPECIFIED = 'TRAFFIC_TYPE_UNSPECIFIED',\n /**\n * The request was processed using Pay-As-You-Go quota.\n */\n ON_DEMAND = 'ON_DEMAND',\n /**\n * Type for Provisioned Throughput traffic.\n */\n PROVISIONED_THROUGHPUT = 'PROVISIONED_THROUGHPUT',\n}\n\n/** Server content modalities. */\nexport enum Modality {\n /**\n * The modality is unspecified.\n */\n MODALITY_UNSPECIFIED = 'MODALITY_UNSPECIFIED',\n /**\n * Indicates the model should return text\n */\n TEXT = 'TEXT',\n /**\n * Indicates the model should return images.\n */\n IMAGE = 'IMAGE',\n /**\n * Indicates the model should return audio.\n */\n AUDIO = 'AUDIO',\n}\n\n/** The media resolution to use. */\nexport enum MediaResolution {\n /**\n * Media resolution has not been set\n */\n MEDIA_RESOLUTION_UNSPECIFIED = 'MEDIA_RESOLUTION_UNSPECIFIED',\n /**\n * Media resolution set to low (64 tokens).\n */\n MEDIA_RESOLUTION_LOW = 'MEDIA_RESOLUTION_LOW',\n /**\n * Media resolution set to medium (256 tokens).\n */\n MEDIA_RESOLUTION_MEDIUM = 'MEDIA_RESOLUTION_MEDIUM',\n /**\n * Media resolution set to high (zoomed reframing with 256 tokens).\n */\n MEDIA_RESOLUTION_HIGH = 'MEDIA_RESOLUTION_HIGH',\n}\n\n/** Tuning mode. This enum is not supported in Gemini API. */\nexport enum TuningMode {\n /**\n * Tuning mode is unspecified.\n */\n TUNING_MODE_UNSPECIFIED = 'TUNING_MODE_UNSPECIFIED',\n /**\n * Full fine-tuning mode.\n */\n TUNING_MODE_FULL = 'TUNING_MODE_FULL',\n /**\n * PEFT adapter tuning mode.\n */\n TUNING_MODE_PEFT_ADAPTER = 'TUNING_MODE_PEFT_ADAPTER',\n}\n\n/** Adapter size for tuning. This enum is not supported in Gemini API. */\nexport enum AdapterSize {\n /**\n * Adapter size is unspecified.\n */\n ADAPTER_SIZE_UNSPECIFIED = 'ADAPTER_SIZE_UNSPECIFIED',\n /**\n * Adapter size 1.\n */\n ADAPTER_SIZE_ONE = 'ADAPTER_SIZE_ONE',\n /**\n * Adapter size 2.\n */\n ADAPTER_SIZE_TWO = 'ADAPTER_SIZE_TWO',\n /**\n * Adapter size 4.\n */\n ADAPTER_SIZE_FOUR = 'ADAPTER_SIZE_FOUR',\n /**\n * Adapter size 8.\n */\n ADAPTER_SIZE_EIGHT = 'ADAPTER_SIZE_EIGHT',\n /**\n * Adapter size 16.\n */\n ADAPTER_SIZE_SIXTEEN = 'ADAPTER_SIZE_SIXTEEN',\n /**\n * Adapter size 32.\n */\n ADAPTER_SIZE_THIRTY_TWO = 'ADAPTER_SIZE_THIRTY_TWO',\n}\n\n/** Job state. */\nexport enum JobState {\n /**\n * The job state is unspecified.\n */\n JOB_STATE_UNSPECIFIED = 'JOB_STATE_UNSPECIFIED',\n /**\n * The job has been just created or resumed and processing has not yet begun.\n */\n JOB_STATE_QUEUED = 'JOB_STATE_QUEUED',\n /**\n * The service is preparing to run the job.\n */\n JOB_STATE_PENDING = 'JOB_STATE_PENDING',\n /**\n * The job is in progress.\n */\n JOB_STATE_RUNNING = 'JOB_STATE_RUNNING',\n /**\n * The job completed successfully.\n */\n JOB_STATE_SUCCEEDED = 'JOB_STATE_SUCCEEDED',\n /**\n * The job failed.\n */\n JOB_STATE_FAILED = 'JOB_STATE_FAILED',\n /**\n * The job is being cancelled. From this state the job may only go to either `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`.\n */\n JOB_STATE_CANCELLING = 'JOB_STATE_CANCELLING',\n /**\n * The job has been cancelled.\n */\n JOB_STATE_CANCELLED = 'JOB_STATE_CANCELLED',\n /**\n * The job has been stopped, and can be resumed.\n */\n JOB_STATE_PAUSED = 'JOB_STATE_PAUSED',\n /**\n * The job has expired.\n */\n JOB_STATE_EXPIRED = 'JOB_STATE_EXPIRED',\n /**\n * The job is being updated. Only jobs in the `JOB_STATE_RUNNING` state can be updated. After updating, the job goes back to the `JOB_STATE_RUNNING` state.\n */\n JOB_STATE_UPDATING = 'JOB_STATE_UPDATING',\n /**\n * The job is partially succeeded, some results may be missing due to errors.\n */\n JOB_STATE_PARTIALLY_SUCCEEDED = 'JOB_STATE_PARTIALLY_SUCCEEDED',\n}\n\n/** The tuning task. Either I2V or T2V. This enum is not supported in Gemini API. */\nexport enum TuningTask {\n /**\n * Default value. This value is unused.\n */\n TUNING_TASK_UNSPECIFIED = 'TUNING_TASK_UNSPECIFIED',\n /**\n * Tuning task for image to video.\n */\n TUNING_TASK_I2V = 'TUNING_TASK_I2V',\n /**\n * Tuning task for text to video.\n */\n TUNING_TASK_T2V = 'TUNING_TASK_T2V',\n /**\n * Tuning task for reference to video.\n */\n TUNING_TASK_R2V = 'TUNING_TASK_R2V',\n}\n\n/** The tokenization quality used for given media. */\nexport enum PartMediaResolutionLevel {\n /**\n * Media resolution has not been set.\n */\n MEDIA_RESOLUTION_UNSPECIFIED = 'MEDIA_RESOLUTION_UNSPECIFIED',\n /**\n * Media resolution set to low.\n */\n MEDIA_RESOLUTION_LOW = 'MEDIA_RESOLUTION_LOW',\n /**\n * Media resolution set to medium.\n */\n MEDIA_RESOLUTION_MEDIUM = 'MEDIA_RESOLUTION_MEDIUM',\n /**\n * Media resolution set to high.\n */\n MEDIA_RESOLUTION_HIGH = 'MEDIA_RESOLUTION_HIGH',\n /**\n * Media resolution set to ultra high.\n */\n MEDIA_RESOLUTION_ULTRA_HIGH = 'MEDIA_RESOLUTION_ULTRA_HIGH',\n}\n\n/** Resource scope. */\nexport enum ResourceScope {\n /**\n * When setting base_url, this value configures resource scope to be the collection.\n The resource name will not include api version, project, or location.\n For example, if base_url is set to \"https://aiplatform.googleapis.com\",\n then the resource name for a Model would be\n \"https://aiplatform.googleapis.com/publishers/google/models/gemini-3-pro-preview\n */\n COLLECTION = 'COLLECTION',\n}\n\n/** Options for feature selection preference. */\nexport enum FeatureSelectionPreference {\n FEATURE_SELECTION_PREFERENCE_UNSPECIFIED = 'FEATURE_SELECTION_PREFERENCE_UNSPECIFIED',\n PRIORITIZE_QUALITY = 'PRIORITIZE_QUALITY',\n BALANCED = 'BALANCED',\n PRIORITIZE_COST = 'PRIORITIZE_COST',\n}\n\n/** The environment being operated. */\nexport enum Environment {\n /**\n * Defaults to browser.\n */\n ENVIRONMENT_UNSPECIFIED = 'ENVIRONMENT_UNSPECIFIED',\n /**\n * Operates in a web browser.\n */\n ENVIRONMENT_BROWSER = 'ENVIRONMENT_BROWSER',\n}\n\n/** Enum that controls the safety filter level for objectionable content. */\nexport enum SafetyFilterLevel {\n BLOCK_LOW_AND_ABOVE = 'BLOCK_LOW_AND_ABOVE',\n BLOCK_MEDIUM_AND_ABOVE = 'BLOCK_MEDIUM_AND_ABOVE',\n BLOCK_ONLY_HIGH = 'BLOCK_ONLY_HIGH',\n BLOCK_NONE = 'BLOCK_NONE',\n}\n\n/** Enum that controls the generation of people. */\nexport enum PersonGeneration {\n /**\n * Block generation of images of people.\n */\n DONT_ALLOW = 'DONT_ALLOW',\n /**\n * Generate images of adults, but not children.\n */\n ALLOW_ADULT = 'ALLOW_ADULT',\n /**\n * Generate images that include adults and children.\n */\n ALLOW_ALL = 'ALLOW_ALL',\n}\n\n/** Enum that specifies the language of the text in the prompt. */\nexport enum ImagePromptLanguage {\n /**\n * Auto-detect the language.\n */\n auto = 'auto',\n /**\n * English\n */\n en = 'en',\n /**\n * Japanese\n */\n ja = 'ja',\n /**\n * Korean\n */\n ko = 'ko',\n /**\n * Hindi\n */\n hi = 'hi',\n /**\n * Chinese\n */\n zh = 'zh',\n /**\n * Portuguese\n */\n pt = 'pt',\n /**\n * Spanish\n */\n es = 'es',\n}\n\n/** Enum representing the mask mode of a mask reference image. */\nexport enum MaskReferenceMode {\n MASK_MODE_DEFAULT = 'MASK_MODE_DEFAULT',\n MASK_MODE_USER_PROVIDED = 'MASK_MODE_USER_PROVIDED',\n MASK_MODE_BACKGROUND = 'MASK_MODE_BACKGROUND',\n MASK_MODE_FOREGROUND = 'MASK_MODE_FOREGROUND',\n MASK_MODE_SEMANTIC = 'MASK_MODE_SEMANTIC',\n}\n\n/** Enum representing the control type of a control reference image. */\nexport enum ControlReferenceType {\n CONTROL_TYPE_DEFAULT = 'CONTROL_TYPE_DEFAULT',\n CONTROL_TYPE_CANNY = 'CONTROL_TYPE_CANNY',\n CONTROL_TYPE_SCRIBBLE = 'CONTROL_TYPE_SCRIBBLE',\n CONTROL_TYPE_FACE_MESH = 'CONTROL_TYPE_FACE_MESH',\n}\n\n/** Enum representing the subject type of a subject reference image. */\nexport enum SubjectReferenceType {\n SUBJECT_TYPE_DEFAULT = 'SUBJECT_TYPE_DEFAULT',\n SUBJECT_TYPE_PERSON = 'SUBJECT_TYPE_PERSON',\n SUBJECT_TYPE_ANIMAL = 'SUBJECT_TYPE_ANIMAL',\n SUBJECT_TYPE_PRODUCT = 'SUBJECT_TYPE_PRODUCT',\n}\n\n/** Enum representing the editing mode. */\nexport enum EditMode {\n EDIT_MODE_DEFAULT = 'EDIT_MODE_DEFAULT',\n EDIT_MODE_INPAINT_REMOVAL = 'EDIT_MODE_INPAINT_REMOVAL',\n EDIT_MODE_INPAINT_INSERTION = 'EDIT_MODE_INPAINT_INSERTION',\n EDIT_MODE_OUTPAINT = 'EDIT_MODE_OUTPAINT',\n EDIT_MODE_CONTROLLED_EDITING = 'EDIT_MODE_CONTROLLED_EDITING',\n EDIT_MODE_STYLE = 'EDIT_MODE_STYLE',\n EDIT_MODE_BGSWAP = 'EDIT_MODE_BGSWAP',\n EDIT_MODE_PRODUCT_IMAGE = 'EDIT_MODE_PRODUCT_IMAGE',\n}\n\n/** Enum that represents the segmentation mode. */\nexport enum SegmentMode {\n FOREGROUND = 'FOREGROUND',\n BACKGROUND = 'BACKGROUND',\n PROMPT = 'PROMPT',\n SEMANTIC = 'SEMANTIC',\n INTERACTIVE = 'INTERACTIVE',\n}\n\n/** Enum for the reference type of a video generation reference image. */\nexport enum VideoGenerationReferenceType {\n /**\n * A reference image that provides assets to the generated video,\n such as the scene, an object, a character, etc.\n */\n ASSET = 'ASSET',\n /**\n * A reference image that provides aesthetics including colors,\n lighting, texture, etc., to be used as the style of the generated video,\n such as 'anime', 'photography', 'origami', etc.\n */\n STYLE = 'STYLE',\n}\n\n/** Enum for the mask mode of a video generation mask. */\nexport enum VideoGenerationMaskMode {\n /**\n * The image mask contains a masked rectangular region which is\n applied on the first frame of the input video. The object described in\n the prompt is inserted into this region and will appear in subsequent\n frames.\n */\n INSERT = 'INSERT',\n /**\n * The image mask is used to determine an object in the\n first video frame to track. This object is removed from the video.\n */\n REMOVE = 'REMOVE',\n /**\n * The image mask is used to determine a region in the\n video. Objects in this region will be removed.\n */\n REMOVE_STATIC = 'REMOVE_STATIC',\n /**\n * The image mask contains a masked rectangular region where\n the input video will go. The remaining area will be generated. Video\n masks are not supported.\n */\n OUTPAINT = 'OUTPAINT',\n}\n\n/** Enum that controls the compression quality of the generated videos. */\nexport enum VideoCompressionQuality {\n /**\n * Optimized video compression quality. This will produce videos\n with a compressed, smaller file size.\n */\n OPTIMIZED = 'OPTIMIZED',\n /**\n * Lossless video compression quality. This will produce videos\n with a larger file size.\n */\n LOSSLESS = 'LOSSLESS',\n}\n\n/** Enum representing the tuning method. */\nexport enum TuningMethod {\n /**\n * Supervised fine tuning.\n */\n SUPERVISED_FINE_TUNING = 'SUPERVISED_FINE_TUNING',\n /**\n * Preference optimization tuning.\n */\n PREFERENCE_TUNING = 'PREFERENCE_TUNING',\n}\n\n/** State for the lifecycle of a Document. */\nexport enum DocumentState {\n STATE_UNSPECIFIED = 'STATE_UNSPECIFIED',\n STATE_PENDING = 'STATE_PENDING',\n STATE_ACTIVE = 'STATE_ACTIVE',\n STATE_FAILED = 'STATE_FAILED',\n}\n\n/** State for the lifecycle of a File. */\nexport enum FileState {\n STATE_UNSPECIFIED = 'STATE_UNSPECIFIED',\n PROCESSING = 'PROCESSING',\n ACTIVE = 'ACTIVE',\n FAILED = 'FAILED',\n}\n\n/** Source of the File. */\nexport enum FileSource {\n SOURCE_UNSPECIFIED = 'SOURCE_UNSPECIFIED',\n UPLOADED = 'UPLOADED',\n GENERATED = 'GENERATED',\n REGISTERED = 'REGISTERED',\n}\n\n/** The reason why the turn is complete. */\nexport enum TurnCompleteReason {\n /**\n * Default value. Reason is unspecified.\n */\n TURN_COMPLETE_REASON_UNSPECIFIED = 'TURN_COMPLETE_REASON_UNSPECIFIED',\n /**\n * The function call generated by the model is invalid.\n */\n MALFORMED_FUNCTION_CALL = 'MALFORMED_FUNCTION_CALL',\n /**\n * The response is rejected by the model.\n */\n RESPONSE_REJECTED = 'RESPONSE_REJECTED',\n /**\n * Needs more input from the user.\n */\n NEED_MORE_INPUT = 'NEED_MORE_INPUT',\n}\n\n/** Server content modalities. */\nexport enum MediaModality {\n /**\n * The modality is unspecified.\n */\n MODALITY_UNSPECIFIED = 'MODALITY_UNSPECIFIED',\n /**\n * Plain text.\n */\n TEXT = 'TEXT',\n /**\n * Images.\n */\n IMAGE = 'IMAGE',\n /**\n * Video.\n */\n VIDEO = 'VIDEO',\n /**\n * Audio.\n */\n AUDIO = 'AUDIO',\n /**\n * Document, e.g. PDF.\n */\n DOCUMENT = 'DOCUMENT',\n}\n\n/** The type of the VAD signal. */\nexport enum VadSignalType {\n /**\n * The default is VAD_SIGNAL_TYPE_UNSPECIFIED.\n */\n VAD_SIGNAL_TYPE_UNSPECIFIED = 'VAD_SIGNAL_TYPE_UNSPECIFIED',\n /**\n * Start of sentence signal.\n */\n VAD_SIGNAL_TYPE_SOS = 'VAD_SIGNAL_TYPE_SOS',\n /**\n * End of sentence signal.\n */\n VAD_SIGNAL_TYPE_EOS = 'VAD_SIGNAL_TYPE_EOS',\n}\n\n/** The type of the voice activity signal. */\nexport enum VoiceActivityType {\n /**\n * The default is VOICE_ACTIVITY_TYPE_UNSPECIFIED.\n */\n TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED',\n /**\n * Start of sentence signal.\n */\n ACTIVITY_START = 'ACTIVITY_START',\n /**\n * End of sentence signal.\n */\n ACTIVITY_END = 'ACTIVITY_END',\n}\n\n/** Start of speech sensitivity. */\nexport enum StartSensitivity {\n /**\n * The default is START_SENSITIVITY_LOW.\n */\n START_SENSITIVITY_UNSPECIFIED = 'START_SENSITIVITY_UNSPECIFIED',\n /**\n * Automatic detection will detect the start of speech more often.\n */\n START_SENSITIVITY_HIGH = 'START_SENSITIVITY_HIGH',\n /**\n * Automatic detection will detect the start of speech less often.\n */\n START_SENSITIVITY_LOW = 'START_SENSITIVITY_LOW',\n}\n\n/** End of speech sensitivity. */\nexport enum EndSensitivity {\n /**\n * The default is END_SENSITIVITY_LOW.\n */\n END_SENSITIVITY_UNSPECIFIED = 'END_SENSITIVITY_UNSPECIFIED',\n /**\n * Automatic detection ends speech more often.\n */\n END_SENSITIVITY_HIGH = 'END_SENSITIVITY_HIGH',\n /**\n * Automatic detection ends speech less often.\n */\n END_SENSITIVITY_LOW = 'END_SENSITIVITY_LOW',\n}\n\n/** The different ways of handling user activity. */\nexport enum ActivityHandling {\n /**\n * If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.\n */\n ACTIVITY_HANDLING_UNSPECIFIED = 'ACTIVITY_HANDLING_UNSPECIFIED',\n /**\n * If true, start of activity will interrupt the model's response (also called \"barge in\"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.\n */\n START_OF_ACTIVITY_INTERRUPTS = 'START_OF_ACTIVITY_INTERRUPTS',\n /**\n * The model's response will not be interrupted.\n */\n NO_INTERRUPTION = 'NO_INTERRUPTION',\n}\n\n/** Options about which input is included in the user's turn. */\nexport enum TurnCoverage {\n /**\n * If unspecified, the default behavior is `TURN_INCLUDES_ONLY_ACTIVITY`.\n */\n TURN_COVERAGE_UNSPECIFIED = 'TURN_COVERAGE_UNSPECIFIED',\n /**\n * The users turn only includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream). This is the default behavior.\n */\n TURN_INCLUDES_ONLY_ACTIVITY = 'TURN_INCLUDES_ONLY_ACTIVITY',\n /**\n * The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).\n */\n TURN_INCLUDES_ALL_INPUT = 'TURN_INCLUDES_ALL_INPUT',\n}\n\n/** Scale of the generated music. */\nexport enum Scale {\n /**\n * Default value. This value is unused.\n */\n SCALE_UNSPECIFIED = 'SCALE_UNSPECIFIED',\n /**\n * C major or A minor.\n */\n C_MAJOR_A_MINOR = 'C_MAJOR_A_MINOR',\n /**\n * Db major or Bb minor.\n */\n D_FLAT_MAJOR_B_FLAT_MINOR = 'D_FLAT_MAJOR_B_FLAT_MINOR',\n /**\n * D major or B minor.\n */\n D_MAJOR_B_MINOR = 'D_MAJOR_B_MINOR',\n /**\n * Eb major or C minor\n */\n E_FLAT_MAJOR_C_MINOR = 'E_FLAT_MAJOR_C_MINOR',\n /**\n * E major or Db minor.\n */\n E_MAJOR_D_FLAT_MINOR = 'E_MAJOR_D_FLAT_MINOR',\n /**\n * F major or D minor.\n */\n F_MAJOR_D_MINOR = 'F_MAJOR_D_MINOR',\n /**\n * Gb major or Eb minor.\n */\n G_FLAT_MAJOR_E_FLAT_MINOR = 'G_FLAT_MAJOR_E_FLAT_MINOR',\n /**\n * G major or E minor.\n */\n G_MAJOR_E_MINOR = 'G_MAJOR_E_MINOR',\n /**\n * Ab major or F minor.\n */\n A_FLAT_MAJOR_F_MINOR = 'A_FLAT_MAJOR_F_MINOR',\n /**\n * A major or Gb minor.\n */\n A_MAJOR_G_FLAT_MINOR = 'A_MAJOR_G_FLAT_MINOR',\n /**\n * Bb major or G minor.\n */\n B_FLAT_MAJOR_G_MINOR = 'B_FLAT_MAJOR_G_MINOR',\n /**\n * B major or Ab minor.\n */\n B_MAJOR_A_FLAT_MINOR = 'B_MAJOR_A_FLAT_MINOR',\n}\n\n/** The mode of music generation. */\nexport enum MusicGenerationMode {\n /**\n * Rely on the server default generation mode.\n */\n MUSIC_GENERATION_MODE_UNSPECIFIED = 'MUSIC_GENERATION_MODE_UNSPECIFIED',\n /**\n * Steer text prompts to regions of latent space with higher quality\n music.\n */\n QUALITY = 'QUALITY',\n /**\n * Steer text prompts to regions of latent space with a larger\n diversity of music.\n */\n DIVERSITY = 'DIVERSITY',\n /**\n * Steer text prompts to regions of latent space more likely to\n generate music with vocals.\n */\n VOCALIZATION = 'VOCALIZATION',\n}\n\n/** The playback control signal to apply to the music generation. */\nexport enum LiveMusicPlaybackControl {\n /**\n * This value is unused.\n */\n PLAYBACK_CONTROL_UNSPECIFIED = 'PLAYBACK_CONTROL_UNSPECIFIED',\n /**\n * Start generating the music.\n */\n PLAY = 'PLAY',\n /**\n * Hold the music generation. Use PLAY to resume from the current position.\n */\n PAUSE = 'PAUSE',\n /**\n * Stop the music generation and reset the context (prompts retained).\n Use PLAY to restart the music generation.\n */\n STOP = 'STOP',\n /**\n * Reset the context of the music generation without stopping it.\n Retains the current prompts and config.\n */\n RESET_CONTEXT = 'RESET_CONTEXT',\n}\n\n/** Media resolution for the input media. */\nexport declare interface PartMediaResolution {\n /** The tokenization quality used for given media.\n */\n level?: PartMediaResolutionLevel;\n /** Specifies the required sequence length for media tokenization.\n */\n numTokens?: number;\n}\n\n/** Result of executing the [ExecutableCode]. Only generated when using the [CodeExecution] tool, and always follows a `part` containing the [ExecutableCode]. */\nexport declare interface CodeExecutionResult {\n /** Required. Outcome of the code execution. */\n outcome?: Outcome;\n /** Optional. Contains stdout when code execution is successful, stderr or other description otherwise. */\n output?: string;\n}\n\n/** Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the [CodeExecution] tool, in which the code will be automatically executed, and a corresponding [CodeExecutionResult] will also be generated. */\nexport declare interface ExecutableCode {\n /** Required. The code to be executed. */\n code?: string;\n /** Required. Programming language of the `code`. */\n language?: Language;\n}\n\n/** URI based data. */\nexport declare interface FileData {\n /** Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API. */\n displayName?: string;\n /** Required. URI. */\n fileUri?: string;\n /** Required. The IANA standard MIME type of the source data. */\n mimeType?: string;\n}\n\n/** Partial argument value of the function call. This data type is not supported in Gemini API. */\nexport declare interface PartialArg {\n /** Optional. Represents a null value. */\n nullValue?: 'NULL_VALUE';\n /** Optional. Represents a double value. */\n numberValue?: number;\n /** Optional. Represents a string value. */\n stringValue?: string;\n /** Optional. Represents a boolean value. */\n boolValue?: boolean;\n /** Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\". */\n jsonPath?: string;\n /** Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow. */\n willContinue?: boolean;\n}\n\n/** A function call. */\nexport declare interface FunctionCall {\n /** The unique id of the function call. If populated, the client to execute the\n `function_call` and return the response with the matching `id`. */\n id?: string;\n /** Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details. */\n args?: Record<string, unknown>;\n /** Optional. The name of the function to call. Matches [FunctionDeclaration.name]. */\n name?: string;\n /** Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API. */\n partialArgs?: PartialArg[];\n /** Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API. */\n willContinue?: boolean;\n}\n\n/** Raw media bytes for function response.\n\nText should not be sent as raw bytes, use the FunctionResponse.response\nfield. */\nexport class FunctionResponseBlob {\n /** Required. The IANA standard MIME type of the source data. */\n mimeType?: string;\n /** Required. Inline media bytes.\n * @remarks Encoded as base64 string. */\n data?: string;\n /** Optional. Display name of the blob.\n Used to provide a label or filename to distinguish blobs. */\n displayName?: string;\n}\n\n/** URI based data for function response. */\nexport class FunctionResponseFileData {\n /** Required. URI. */\n fileUri?: string;\n /** Required. The IANA standard MIME type of the source data. */\n mimeType?: string;\n /** Optional. Display name of the file.\n Used to provide a label or filename to distinguish files. */\n displayName?: string;\n}\n\n/** A datatype containing media that is part of a `FunctionResponse` message.\n\nA `FunctionResponsePart` consists of data which has an associated datatype. A\n`FunctionResponsePart` can only contain one of the accepted types in\n`FunctionResponsePart.data`.\n\nA `FunctionResponsePart` must have a fixed IANA MIME type identifying the\ntype and subtype of the media if the `inline_data` field is filled with raw\nbytes. */\nexport class FunctionResponsePart {\n /** Optional. Inline media bytes. */\n inlineData?: FunctionResponseBlob;\n /** Optional. URI based data. */\n fileData?: FunctionResponseFileData;\n}\n/**\n * Creates a `FunctionResponsePart` object from a `base64` encoded `string`.\n */\nexport function createFunctionResponsePartFromBase64(\n data: string,\n mimeType: string,\n): FunctionResponsePart {\n return {\n inlineData: {\n data: data,\n mimeType: mimeType,\n },\n };\n}\n/**\n * Creates a `FunctionResponsePart` object from a `URI` string.\n */\nexport function createFunctionResponsePartFromUri(\n uri: string,\n mimeType: string,\n): FunctionResponsePart {\n return {\n fileData: {\n fileUri: uri,\n mimeType: mimeType,\n },\n };\n}\n\n/** A function response. */\nexport class FunctionResponse {\n /** Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls (see FunctionDeclaration.behavior for details), ignored otherwise. If false, the default, future responses will not be considered. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. */\n willContinue?: boolean;\n /** Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. */\n scheduling?: FunctionResponseScheduling;\n /** List of parts that constitute a function response. Each part may\n have a different IANA MIME type. */\n parts?: FunctionResponsePart[];\n /** Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`. */\n id?: string;\n /** Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name]. */\n name?: string;\n /** Required. The function response in JSON object format. Use \"output\" key to specify function output and \"error\" key to specify error details (if any). If \"output\" and \"error\" keys are not specified, then whole \"response\" is treated as function output. */\n response?: Record<string, unknown>;\n}\n\n/** Content blob. */\nexport declare interface Blob {\n /** Required. Raw bytes.\n * @remarks Encoded as base64 string. */\n data?: string;\n /** Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API. */\n displayName?: string;\n /** Required. The IANA standard MIME type of the source data. */\n mimeType?: string;\n}\n\n/** Metadata describes the input video content. */\nexport declare interface VideoMetadata {\n /** Optional. The end offset of the video. */\n endOffset?: string;\n /** Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0]. */\n fps?: number;\n /** Optional. The start offset of the video. */\n startOffset?: string;\n}\n\n/** A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid. */\nexport declare interface Part {\n /** Media resolution for the input media.\n */\n mediaResolution?: PartMediaResolution;\n /** Optional. Result of executing the [ExecutableCode]. */\n codeExecutionResult?: CodeExecutionResult;\n /** Optional. Code generated by the model that is meant to be executed. */\n executableCode?: ExecutableCode;\n /** Optional. URI based data. */\n fileData?: FileData;\n /** Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values. */\n functionCall?: FunctionCall;\n /** Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model. */\n functionResponse?: FunctionResponse;\n /** Optional. Inlined bytes data. */\n inlineData?: Blob;\n /** Optional. Text part (can be code). */\n text?: string;\n /** Optional. Indicates if the part is thought from the model. */\n thought?: boolean;\n /** Optional. An opaque signature for the thought so it can be reused in subsequent requests.\n * @remarks Encoded as base64 string. */\n thoughtSignature?: string;\n /** Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data. */\n videoMetadata?: VideoMetadata;\n}\n/**\n * Creates a `Part` object from a `URI` string.\n */\nexport function createPartFromUri(\n uri: string,\n mimeType: string,\n mediaResolution?: PartMediaResolutionLevel,\n): Part {\n return {\n fileData: {\n fileUri: uri,\n mimeType: mimeType,\n },\n ...(mediaResolution && {mediaResolution: {level: mediaResolution}}),\n };\n}\n/**\n * Creates a `Part` object from a `text` string.\n */\nexport function createPartFromText(text: string): Part {\n return {\n text: text,\n };\n}\n/**\n * Creates a `Part` object from a `FunctionCall` object.\n */\nexport function createPartFromFunctionCall(\n name: string,\n args: Record<string, unknown>,\n): Part {\n return {\n functionCall: {\n name: name,\n args: args,\n },\n };\n}\n/**\n * Creates a `Part` object from a `FunctionResponse` object.\n */\nexport function createPartFromFunctionResponse(\n id: string,\n name: string,\n response: Record<string, unknown>,\n parts: FunctionResponsePart[] = [],\n): Part {\n return {\n functionResponse: {\n id: id,\n name: name,\n response: response,\n ...(parts.length > 0 && {parts}),\n },\n };\n}\n/**\n * Creates a `Part` object from a `base64` encoded `string`.\n */\nexport function createPartFromBase64(\n data: string,\n mimeType: string,\n mediaResolution?: PartMediaResolutionLevel,\n): Part {\n return {\n inlineData: {\n data: data,\n mimeType: mimeType,\n },\n ...(mediaResolution && {mediaResolution: {level: mediaResolution}}),\n };\n}\n/**\n * Creates a `Part` object from the `outcome` and `output` of a `CodeExecutionResult` object.\n */\nexport function createPartFromCodeExecutionResult(\n outcome: Outcome,\n output: string,\n): Part {\n return {\n codeExecutionResult: {\n outcome: outcome,\n output: output,\n },\n };\n}\n/**\n * Creates a `Part` object from the `code` and `language` of an `ExecutableCode` object.\n */\nexport function createPartFromExecutableCode(\n code: string,\n language: Language,\n): Part {\n return {\n executableCode: {\n code: code,\n language: language,\n },\n };\n}\n\n/** Contains the multi-part content of a message. */\nexport declare interface Content {\n /** List of parts that constitute a single message. Each part may have\n a different IANA MIME type. */\n parts?: Part[];\n /** Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset. */\n role?: string;\n}\nfunction _isPart(obj: unknown): obj is Part {\n if (typeof obj === 'object' && obj !== null) {\n return (\n 'fileData' in obj ||\n 'text' in obj ||\n 'functionCall' in obj ||\n 'functionResponse' in obj ||\n 'inlineData' in obj ||\n 'videoMetadata' in obj ||\n 'codeExecutionResult' in obj ||\n 'executableCode' in obj\n );\n }\n return false;\n}\nfunction _toParts(partOrString: PartListUnion | string): Part[] {\n const parts: Part[] = [];\n if (typeof partOrString === 'string') {\n parts.push(createPartFromText(partOrString));\n } else if (_isPart(partOrString)) {\n parts.push(partOrString);\n } else if (Array.isArray(partOrString)) {\n if (partOrString.length === 0) {\n throw new Error('partOrString cannot be an empty array');\n }\n for (const part of partOrString) {\n if (typeof part === 'string') {\n parts.push(createPartFromText(part));\n } else if (_isPart(part)) {\n parts.push(part);\n } else {\n throw new Error('element in PartUnion must be a Part object or string');\n }\n }\n } else {\n throw new Error('partOrString must be a Part object, string, or array');\n }\n return parts;\n}\n/**\n * Creates a `Content` object with a user role from a `PartListUnion` object or `string`.\n */\nexport function createUserContent(\n partOrString: PartListUnion | string,\n): Content {\n return {\n role: 'user',\n parts: _toParts(partOrString),\n };\n}\n\n/**\n * Creates a `Content` object with a model role from a `PartListUnion` object or `string`.\n */\nexport function createModelContent(\n partOrString: PartListUnion | string,\n): Content {\n return {\n role: 'model',\n parts: _toParts(partOrString),\n };\n}\n/** HTTP options to be used in each of the requests. */\nexport declare interface HttpOptions {\n /** The base URL for the AI platform service endpoint. */\n baseUrl?: string;\n /** The resource scope used to constructing the resource name when base_url is set */\n baseUrlResourceScope?: ResourceScope;\n /** Specifies the version of the API to use. */\n apiVersion?: string;\n /** Additional HTTP headers to be sent with the request. */\n headers?: Record<string, string>;\n /** Timeout for the request in milliseconds. */\n timeout?: number;\n /** Extra parameters to add to the request body.\n The structure must match the backend API's request structure.\n - VertexAI backend API docs: https://cloud.google.com/vertex-ai/docs/reference/rest\n - GeminiAPI backend API docs: https://ai.google.dev/api/rest */\n extraBody?: Record<string, unknown>;\n}\n\n/** Schema is used to define the format of input/output data.\n\nRepresents a select subset of an [OpenAPI 3.0 schema\nobject](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may\nbe added in the future as needed. */\nexport declare interface Schema {\n /** Optional. The value should be validated against any (one or more) of the subschemas in the list. */\n anyOf?: Schema[];\n /** Optional. Default value of the data. */\n default?: unknown;\n /** Optional. The description of the data. */\n description?: string;\n /** Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:[\"101\", \"201\", \"301\"]} */\n enum?: string[];\n /** Optional. Example of the object. Will only populated when the object is the root. */\n example?: unknown;\n /** Optional. The format of the data. Supported formats: for NUMBER type: \"float\", \"double\" for INTEGER type: \"int32\", \"int64\" for STRING type: \"email\", \"byte\", etc */\n format?: string;\n /** Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY. */\n items?: Schema;\n /** Optional. Maximum number of the elements for Type.ARRAY. */\n maxItems?: string;\n /** Optional. Maximum length of the Type.STRING */\n maxLength?: string;\n /** Optional. Maximum number of the properties for Type.OBJECT. */\n maxProperties?: string;\n /** Optional. Maximum value of the Type.INTEGER and Type.NUMBER */\n maximum?: number;\n /** Optional. Minimum number of the elements for Type.ARRAY. */\n minItems?: string;\n /** Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING */\n minLength?: string;\n /** Optional. Minimum number of the properties for Type.OBJECT. */\n minProperties?: string;\n /** Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER */\n minimum?: number;\n /** Optional. Indicates if the value may be null. */\n nullable?: boolean;\n /** Optional. Pattern of the Type.STRING to restrict a string to a regular expression. */\n pattern?: string;\n /** Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT. */\n properties?: Record<string, Schema>;\n /** Optional. The order of the properties. Not a standard field in open api spec. Only used to support the order of the properties. */\n propertyOrdering?: string[];\n /** Optional. Required properties of Type.OBJECT. */\n required?: string[];\n /** Optional. The title of the Schema. */\n title?: string;\n /** Optional. The type of the data. */\n type?: Type;\n}\n\n/** Config for model selection. */\nexport declare interface ModelSelectionConfig {\n /** Options for feature selection preference. */\n featureSelectionPreference?: FeatureSelectionPreference;\n}\n\n/** Tool to support computer use. */\nexport declare interface ComputerUse {\n /** Required. The environment being operated. */\n environment?: Environment;\n /** By default, predefined functions are included in the final model call.\n Some of them can be explicitly excluded from being automatically included.\n This can serve two purposes:\n 1. Using a more restricted / different action space.\n 2. Improving the definitions / instructions of predefined functions. */\n excludedPredefinedFunctions?: string[];\n}\n\n/** Tool to retrieve knowledge from the File Search Stores. */\nexport declare interface FileSearch {\n /** The names of the file_search_stores to retrieve from.\n Example: `fileSearchStores/my-file-search-store-123` */\n fileSearchStoreNames?: string[];\n /** The number of file search retrieval chunks to retrieve. */\n topK?: number;\n /** Metadata filter to apply to the file search retrieval documents. See https://google.aip.dev/160 for the syntax of the filter expression. */\n metadataFilter?: string;\n}\n\n/** The API secret. This data type is not supported in Gemini API. */\nexport declare interface ApiAuthApiKeyConfig {\n /** Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version} */\n apiKeySecretVersion?: string;\n /** The API key string. Either this or `api_key_secret_version` must be set. */\n apiKeyString?: string;\n}\n\n/** The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. This data type is not supported in Gemini API. */\nexport declare interface ApiAuth {\n /** The API secret. */\n apiKeyConfig?: ApiAuthApiKeyConfig;\n}\n\n/** Config for authentication with API key. This data type is not supported in Gemini API. */\nexport declare interface ApiKeyConfig {\n /** Optional. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If both `api_key_secret` and `api_key_string` are specified, this field takes precedence over `api_key_string`. - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource. */\n apiKeySecret?: string;\n /** Optional. The API key to be used in the request directly. */\n apiKeyString?: string;\n /** Optional. The location of the API key. */\n httpElementLocation?: HttpElementLocation;\n /** Optional. The parameter name of the API key. E.g. If the API request is \"https://example.com/act?api_key=\", \"api_key\" would be the parameter name. */\n name?: string;\n}\n\n/** Config for Google Service Account Authentication. This data type is not supported in Gemini API. */\nexport declare interface AuthConfigGoogleServiceAccountConfig {\n /** Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension. */\n serviceAccount?: string;\n}\n\n/** Config for HTTP Basic Authentication. This data type is not supported in Gemini API. */\nexport declare interface AuthConfigHttpBasicAuthConfig {\n /** Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource. */\n credentialSecret?: string;\n}\n\n/** Config for user oauth. This data type is not supported in Gemini API. */\nexport declare interface AuthConfigOauthConfig {\n /** Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time. */\n accessToken?: string;\n /** The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account. */\n serviceAccount?: string;\n}\n\n/** Config for user OIDC auth. This data type is not supported in Gemini API. */\nexport declare interface AuthConfigOidcConfig {\n /** OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time. */\n idToken?: string;\n /** The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents). */\n serviceAccount?: string;\n}\n\n/** Auth configuration to run the extension. This data type is not supported in Gemini API. */\nexport declare interface AuthConfig {\n /** Config for API key auth. */\n apiKeyConfig?: ApiKeyConfig;\n /** Type of auth scheme. */\n authType?: AuthType;\n /** Config for Google Service Account auth. */\n googleServiceAccountConfig?: AuthConfigGoogleServiceAccountConfig;\n /** Config for HTTP Basic auth. */\n httpBasicAuthConfig?: AuthConfigHttpBasicAuthConfig;\n /** Config for user oauth. */\n oauthConfig?: AuthConfigOauthConfig;\n /** Config for user OIDC auth. */\n oidcConfig?: AuthConfigOidcConfig;\n}\n\n/** The search parameters to use for the ELASTIC_SEARCH spec. This data type is not supported in Gemini API. */\nexport declare interface ExternalApiElasticSearchParams {\n /** The ElasticSearch index to use. */\n index?: string;\n /** Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param. */\n numHits?: number;\n /** The ElasticSearch search template to use. */\n searchTemplate?: string;\n}\n\n/** The search parameters to use for SIMPLE_SEARCH spec. This data type is not supported in Gemini API. */\nexport declare interface ExternalApiSimpleSearchParams {}\n\n/** Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec. This data type is not supported in Gemini API. */\nexport declare interface ExternalApi {\n /** The authentication config to access the API. Deprecated. Please use auth_config instead. */\n apiAuth?: ApiAuth;\n /** The API spec that the external API implements. */\n apiSpec?: ApiSpec;\n /** The authentication config to access the API. */\n authConfig?: AuthConfig;\n /** Parameters for the elastic search API. */\n elasticSearchParams?: ExternalApiElasticSearchParams;\n /** The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search */\n endpoint?: string;\n /** Parameters for the simple search API. */\n simpleSearchParams?: ExternalApiSimpleSearchParams;\n}\n\n/** Define data stores within engine to filter on in a search call and configurations for those data stores. For more information, see https://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec. This data type is not supported in Gemini API. */\nexport declare interface VertexAISearchDataStoreSpec {\n /** Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */\n dataStore?: string;\n /** Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */\n filter?: string;\n}\n\n/** Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive. See https://cloud.google.com/products/agent-builder. This data type is not supported in Gemini API. */\nexport declare interface VertexAISearch {\n /** Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used. */\n dataStoreSpecs?: VertexAISearchDataStoreSpec[];\n /** Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` */\n datastore?: string;\n /** Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` */\n engine?: string;\n /** Optional. Filter strings to be passed to the search API. */\n filter?: string;\n /** Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10. */\n maxResults?: number;\n}\n\n/** The definition of the Rag resource. This data type is not supported in Gemini API. */\nexport declare interface VertexRagStoreRagResource {\n /** Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` */\n ragCorpus?: string;\n /** Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field. */\n ragFileIds?: string[];\n}\n\n/** Config for filters. This data type is not supported in Gemini API. */\nexport declare interface RagRetrievalConfigFilter {\n /** Optional. String for metadata filtering. */\n metadataFilter?: string;\n /** Optional. Only returns contexts with vector distance smaller than the threshold. */\n vectorDistanceThreshold?: number;\n /** Optional. Only returns contexts with vector similarity larger than the threshold. */\n vectorSimilarityThreshold?: number;\n}\n\n/** Config for Hybrid Search. This data type is not supported in Gemini API. */\nexport declare interface RagRetrievalConfigHybridSearch {\n /** Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally. */\n alpha?: number;\n}\n\n/** Config for LlmRanker. This data type is not supported in Gemini API. */\nexport declare interface RagRetrievalConfigRankingLlmRanker {\n /** Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models). */\n modelName?: string;\n}\n\n/** Config for Rank Service. This data type is not supported in Gemini API. */\nexport declare interface RagRetrievalConfigRankingRankService {\n /** Optional. The model name of the rank service. Format: `semantic-ranker-512@latest` */\n modelName?: string;\n}\n\n/** Config for ranking and reranking. This data type is not supported in Gemini API. */\nexport declare interface RagRetrievalConfigRanking {\n /** Optional. Config for LlmRanker. */\n llmRanker?: RagRetrievalConfigRankingLlmRanker;\n /** Optional. Config for Rank Service. */\n rankService?: RagRetrievalConfigRankingRankService;\n}\n\n/** Specifies the context retrieval config. This data type is not supported in Gemini API. */\nexport declare interface RagRetrievalConfig {\n /** Optional. Config for filters. */\n filter?: RagRetrievalConfigFilter;\n /** Optional. Config for Hybrid Search. */\n hybridSearch?: RagRetrievalConfigHybridSearch;\n /** Optional. Config for ranking and reranking. */\n ranking?: RagRetrievalConfigRanking;\n /** Optional. The number of contexts to retrieve. */\n topK?: number;\n}\n\n/** Retrieve from Vertex RAG Store for grounding. This data type is not supported in Gemini API. */\nexport declare interface VertexRagStore {\n /** Optional. Deprecated. Please use rag_resources instead. */\n ragCorpora?: string[];\n /** Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support. */\n ragResources?: VertexRagStoreRagResource[];\n /** Optional. The retrieval config for the Rag query. */\n ragRetrievalConfig?: RagRetrievalConfig;\n /** Optional. Number of top k results to return from the selected corpora. */\n similarityTopK?: number;\n /** Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users' ongoing and future interactions. */\n storeContext?: boolean;\n /** Optional. Only return results with vector distance smaller than the threshold. */\n vectorDistanceThreshold?: number;\n}\n\n/** Defines a retrieval tool that model can call to access external knowledge. This data type is not supported in Gemini API. */\nexport declare interface Retrieval {\n /** Optional. Deprecated. This option is no longer supported. */\n disableAttribution?: boolean;\n /** Use data source powered by external API for grounding. */\n externalApi?: ExternalApi;\n /** Set to use data source powered by Vertex AI Search. */\n vertexAiSearch?: VertexAISearch;\n /** Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService. */\n vertexRagStore?: VertexRagStore;\n}\n\n/** Tool that executes code generated by the model, and automatically returns the result to the model. See also [ExecutableCode]and [CodeExecutionResult] which are input and output to this tool. This data type is not supported in Gemini API. */\nexport declare interface ToolCodeExecution {}\n\n/** Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. This data type is not supported in Gemini API. */\nexport declare interface EnterpriseWebSearch {\n /** Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. */\n excludeDomains?: string[];\n /** Optional. Sites with confidence level chosen & above this value will be blocked from the search results. */\n blockingConfidence?: PhishBlockThreshold;\n}\n\n/** Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client. */\nexport declare interface FunctionDeclaration {\n /** Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function. */\n description?: string;\n /** Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64. */\n name?: string;\n /** Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1 */\n parameters?: Schema;\n /** Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`. */\n parametersJsonSchema?: unknown;\n /** Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function. */\n response?: Schema;\n /** Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. */\n responseJsonSchema?: unknown;\n /** Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This field is not supported in Vertex AI. */\n behavior?: Behavior;\n}\n\n/** Tool to retrieve public maps data for grounding, powered by Google. */\nexport declare interface GoogleMaps {\n /** The authentication config to access the API. Only API key is supported. This field is not supported in Gemini API. */\n authConfig?: AuthConfig;\n /** Optional. If true, include the widget context token in the response. */\n enableWidget?: boolean;\n}\n\n/** Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. */\nexport declare interface Interval {\n /** Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. */\n endTime?: string;\n /** Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. */\n startTime?: string;\n}\n\n/** GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */\nexport declare interface GoogleSearch {\n /** Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: [\"amazon.com\", \"facebook.com\"]. This field is not supported in Gemini API. */\n excludeDomains?: string[];\n /** Optional. Sites with confidence level chosen & above this value will be blocked from the search results. This field is not supported in Gemini API. */\n blockingConfidence?: PhishBlockThreshold;\n /** Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa). This field is not supported in Vertex AI. */\n timeRangeFilter?: Interval;\n}\n\n/** Describes the options to customize dynamic retrieval. */\nexport declare interface DynamicRetrievalConfig {\n /** Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used. */\n dynamicThreshold?: number;\n /** The mode of the predictor to be used in dynamic retrieval. */\n mode?: DynamicRetrievalConfigMode;\n}\n\n/** Tool to retrieve public web data for grounding, powered by Google. */\nexport declare interface GoogleSearchRetrieval {\n /** Specifies the dynamic retrieval configuration for the given source. */\n dynamicRetrievalConfig?: DynamicRetrievalConfig;\n}\n\n/** Tool to support URL context. */\nexport declare interface UrlContext {}\n\n/** Tool details of a tool that the model may use to generate a response. */\nexport declare interface Tool {\n /** 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. This field is not supported in Gemini API. */\n retrieval?: Retrieval;\n /** Optional. Tool to support the model interacting directly with the\n computer. If enabled, it automatically populates computer-use specific\n Function Declarations. */\n computerUse?: ComputerUse;\n /** Optional. Tool to retrieve knowledge from the File Search Stores. */\n fileSearch?: FileSearch;\n /** Optional. CodeExecution tool type. Enables the model to execute code as part of generation. */\n codeExecution?: ToolCodeExecution;\n /** Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance. This field is not supported in Gemini API. */\n enterpriseWebSearch?: EnterpriseWebSearch;\n /** 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 512 function declarations can be provided. */\n functionDeclarations?: FunctionDeclaration[];\n /** Optional. GoogleMaps tool type. Tool to support Google Maps in Model. */\n googleMaps?: GoogleMaps;\n /** Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. */\n googleSearch?: GoogleSearch;\n /** Optional. Specialized retrieval tool that is powered by Google Search. */\n googleSearchRetrieval?: GoogleSearchRetrieval;\n /** Optional. Tool to support URL context retrieval. */\n urlContext?: UrlContext;\n}\n\n/** An object that represents a latitude/longitude pair.\n\nThis is expressed as a pair of doubles to represent degrees latitude and\ndegrees longitude. Unless specified otherwise, this object must conform to the\n<a href=\"https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version\">\nWGS84 standard</a>. Values must be within normalized ranges. */\nexport declare interface LatLng {\n /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */\n latitude?: number;\n /** The longitude in degrees. It must be in the range [-180.0, +180.0] */\n longitude?: number;\n}\n\n/** Retrieval config.\n */\nexport declare interface RetrievalConfig {\n /** Optional. The location of the user. */\n latLng?: LatLng;\n /** The language code of the user. */\n languageCode?: string;\n}\n\n/** Function calling config. */\nexport declare interface FunctionCallingConfig {\n /** Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided. */\n allowedFunctionNames?: string[];\n /** Optional. Function calling mode. */\n mode?: FunctionCallingConfigMode;\n /** Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field. This field is not supported in Gemini API. */\n streamFunctionCallArguments?: boolean;\n}\n\n/** Tool config.\n\nThis config is shared for all tools provided in the request. */\nexport declare interface ToolConfig {\n /** Optional. Retrieval config. */\n retrievalConfig?: RetrievalConfig;\n /** Optional. Function calling config. */\n functionCallingConfig?: FunctionCallingConfig;\n}\n\n/** ReplicatedVoiceConfig is used to configure replicated voice. */\nexport declare interface ReplicatedVoiceConfig {\n /** The mime type of the replicated voice.\n */\n mimeType?: string;\n /** The sample audio of the replicated voice.\n \n * @remarks Encoded as base64 string. */\n voiceSampleAudio?: string;\n}\n\n/** The configuration for the prebuilt speaker to use. */\nexport declare interface PrebuiltVoiceConfig {\n /** The name of the preset voice to use. */\n voiceName?: string;\n}\n\nexport declare interface VoiceConfig {\n /** If true, the model will use a replicated voice for the response. */\n replicatedVoiceConfig?: ReplicatedVoiceConfig;\n /** The configuration for the prebuilt voice to use. */\n prebuiltVoiceConfig?: PrebuiltVoiceConfig;\n}\n\n/** Configuration for a single speaker in a multi speaker setup. */\nexport declare interface SpeakerVoiceConfig {\n /** Required. The name of the speaker. This should be the same as the speaker name used in the prompt. */\n speaker?: string;\n /** Required. The configuration for the voice of this speaker. */\n voiceConfig?: VoiceConfig;\n}\n\n/** Configuration for a multi-speaker text-to-speech request. */\nexport declare interface MultiSpeakerVoiceConfig {\n /** Required. A list of configurations for the voices of the speakers. Exactly two speaker voice configurations must be provided. */\n speakerVoiceConfigs?: SpeakerVoiceConfig[];\n}\n\nexport declare interface SpeechConfig {\n /** Configuration for the voice of the response. */\n voiceConfig?: VoiceConfig;\n /** Optional. Language code (ISO 639. e.g. en-US) for the speech synthesization. */\n languageCode?: string;\n /** The configuration for a multi-speaker text-to-speech request. This field is mutually exclusive with `voice_config`. */\n multiSpeakerVoiceConfig?: MultiSpeakerVoiceConfig;\n}\n\n/** The configuration for automatic function calling. */\nexport declare interface AutomaticFunctionCallingConfig {\n /** Whether to disable automatic function calling.\n If not set or set to False, will enable automatic function calling.\n If set to True, will disable automatic function calling.\n */\n disable?: boolean;\n /** If automatic function calling is enabled,\n maximum number of remote calls for automatic function calling.\n This number should be a positive integer.\n If not set, SDK will set maximum number of remote calls to 10.\n */\n maximumRemoteCalls?: number;\n /** If automatic function calling is enabled,\n whether to ignore call history to the response.\n If not set, SDK will set ignore_call_history to false,\n and will append the call history to\n GenerateContentResponse.automatic_function_calling_history.\n */\n ignoreCallHistory?: boolean;\n}\n\n/** The thinking features configuration. */\nexport declare interface ThinkingConfig {\n /** Indicates whether to include thoughts in the response. If true, thoughts are returned only if the model supports thought and thoughts are available.\n */\n includeThoughts?: boolean;\n /** Indicates the thinking budget in tokens. 0 is DISABLED. -1 is AUTOMATIC. The default values and allowed ranges are model dependent.\n */\n thinkingBudget?: number;\n /** Optional. The number of thoughts tokens that the model should generate. */\n thinkingLevel?: ThinkingLevel;\n}\n\n/** The image generation configuration to be used in GenerateContentConfig. */\nexport declare interface ImageConfig {\n /** Aspect ratio of the generated images. Supported values are\n \"1:1\", \"2:3\", \"3:2\", \"3:4\", \"4:3\", \"9:16\", \"16:9\", and \"21:9\". */\n aspectRatio?: string;\n /** Optional. Specifies the size of generated images. Supported\n values are `1K`, `2K`, `4K`. If not specified, the model will use default\n value `1K`. */\n imageSize?: string;\n /** Controls the generation of people. Supported values are:\n ALLOW_ALL, ALLOW_ADULT, ALLOW_NONE. */\n personGeneration?: string;\n /** MIME type of the generated image. This field is not\n supported in Gemini API. */\n outputMimeType?: string;\n /** Compression quality of the generated image (for\n ``image/jpeg`` only). This field is not supported in Gemini API. */\n outputCompressionQuality?: number;\n}\n\n/** When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference. This data type is not supported in Gemini API. */\nexport declare interface GenerationConfigRoutingConfigAutoRoutingMode {\n /** The model routing preference. */\n modelRoutingPreference?:\n | 'UNKNOWN'\n | 'PRIORITIZE_QUALITY'\n | 'BALANCED'\n | 'PRIORITIZE_COST';\n}\n\n/** When manual routing is set, the specified model will be used directly. This data type is not supported in Gemini API. */\nexport declare interface GenerationConfigRoutingConfigManualRoutingMode {\n /** The model name to use. Only the public LLM models are accepted. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models). */\n modelName?: string;\n}\n\n/** The configuration for routing the request to a specific model. This data type is not supported in Gemini API. */\nexport declare interface GenerationConfigRoutingConfig {\n /** Automated routing. */\n autoMode?: GenerationConfigRoutingConfigAutoRoutingMode;\n /** Manual routing. */\n manualMode?: GenerationConfigRoutingConfigManualRoutingMode;\n}\n\n/** Safety settings. */\nexport declare interface SafetySetting {\n /** Required. Harm category. */\n category?: HarmCategory;\n /** Optional. Specify if the threshold is used for probability or severity score. If not specified, the threshold is used for probability score. This field is not supported in Gemini API. */\n method?: HarmBlockMethod;\n /** Required. The harm block threshold. */\n threshold?: HarmBlockThreshold;\n}\n\n/** Configuration for Model Armor integrations of prompt and responses. This data type is not supported in Gemini API. */\nexport declare interface ModelArmorConfig {\n /** Optional. The name of the Model Armor template to use for prompt sanitization. */\n promptTemplateName?: string;\n /** Optional. The name of the Model Armor template to use for response sanitization. */\n responseTemplateName?: string;\n}\n\n/** Optional model configuration parameters.\n\nFor more information, see `Content generation parameters\n<https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/content-generation-parameters>`_. */\nexport declare interface GenerateContentConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** Instructions for the model to steer it toward better performance.\n For example, \"Answer as concisely as possible\" or \"Don't use technical\n terms in your response\".\n */\n systemInstruction?: ContentUnion;\n /** Value that controls the degree of randomness in token selection.\n Lower temperatures are good for prompts that require a less open-ended or\n creative response, while higher temperatures can lead to more diverse or\n creative results.\n */\n temperature?: number;\n /** Tokens are selected from the most to least probable until the sum\n of their probabilities equals this value. Use a lower value for less\n random responses and a higher value for more random responses.\n */\n topP?: number;\n /** For each token selection step, the ``top_k`` tokens with the\n highest probabilities are sampled. Then tokens are further filtered based\n on ``top_p`` with the final token selected using temperature sampling. Use\n a lower number for less random responses and a higher number for more\n random responses.\n */\n topK?: number;\n /** Number of response variations to return.\n */\n candidateCount?: number;\n /** Maximum number of tokens that can be generated in the response.\n */\n maxOutputTokens?: number;\n /** List of strings that tells the model to stop generating text if one\n of the strings is encountered in the response.\n */\n stopSequences?: string[];\n /** Whether to return the log probabilities of the tokens that were\n chosen by the model at each step.\n */\n responseLogprobs?: boolean;\n /** Number of top candidate tokens to return the log probabilities for\n at each generation step.\n */\n logprobs?: number;\n /** Positive values penalize tokens that already appear in the\n generated text, increasing the probability of generating more diverse\n content.\n */\n presencePenalty?: number;\n /** Positive values penalize tokens that repeatedly appear in the\n generated text, increasing the probability of generating more diverse\n content.\n */\n frequencyPenalty?: number;\n /** When ``seed`` is fixed to a specific number, the model makes a best\n effort to provide the same response for repeated requests. By default, a\n random number is used.\n */\n seed?: number;\n /** Output response mimetype of the generated candidate text.\n Supported mimetype:\n - `text/plain`: (default) Text output.\n - `application/json`: JSON response in the candidates.\n The model needs to be prompted to output the appropriate response type,\n otherwise the behavior is undefined.\n This is a preview feature.\n */\n responseMimeType?: string;\n /** The `Schema` object allows the definition of input and output data types.\n These types can be objects, but also primitives and arrays.\n Represents a select subset of an [OpenAPI 3.0 schema\n object](https://spec.openapis.org/oas/v3.0.3#schema).\n If set, a compatible response_mime_type must also be set.\n Compatible mimetypes: `application/json`: Schema for JSON response.\n\n If `response_schema` doesn't process your schema correctly, try using\n `response_json_schema` instead.\n */\n responseSchema?: SchemaUnion;\n /** Optional. Output schema of the generated response.\n This is an alternative to `response_schema` that accepts [JSON\n Schema](https://json-schema.org/). If set, `response_schema` must be\n omitted, but `response_mime_type` is required. While the full JSON Schema\n may be sent, not all features are supported. Specifically, only the\n following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor`\n - `type` - `format` - `title` - `description` - `enum` (for strings and\n numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` -\n `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) -\n `properties` - `additionalProperties` - `required` The non-standard\n `propertyOrdering` property may also be set. Cyclic references are\n unrolled to a limited degree and, as such, may only be used within\n non-required properties. (Nullable properties are not sufficient.) If\n `$ref` is set on a sub-schema, no other properties, except for than those\n starting as a `$`, may be set. */\n responseJsonSchema?: unknown;\n /** Configuration for model router requests.\n */\n routingConfig?: GenerationConfigRoutingConfig;\n /** Configuration for model selection.\n */\n modelSelectionConfig?: ModelSelectionConfig;\n /** Safety settings in the request to block unsafe content in the\n response.\n */\n safetySettings?: SafetySetting[];\n /** Code that enables the system to interact with external systems to\n perform an action outside of the knowledge and scope of the model.\n */\n tools?: ToolListUnion;\n /** Associates model output to a specific function call.\n */\n toolConfig?: ToolConfig;\n /** Labels with user-defined metadata to break down billed charges. */\n labels?: Record<string, string>;\n /** Resource name of a context cache that can be used in subsequent\n requests.\n */\n cachedContent?: string;\n /** The requested modalities of the response. Represents the set of\n modalities that the model can return.\n */\n responseModalities?: string[];\n /** If specified, the media resolution specified will be used.\n */\n mediaResolution?: MediaResolution;\n /** The speech generation configuration.\n */\n speechConfig?: SpeechConfigUnion;\n /** If enabled, audio timestamp will be included in the request to the\n model.\n */\n audioTimestamp?: boolean;\n /** The configuration for automatic function calling.\n */\n automaticFunctionCalling?: AutomaticFunctionCallingConfig;\n /** The thinking features configuration.\n */\n thinkingConfig?: ThinkingConfig;\n /** The image generation configuration.\n */\n imageConfig?: ImageConfig;\n /** Enables enhanced civic answers. It may not be available for all\n models. This field is not supported in Vertex AI.\n */\n enableEnhancedCivicAnswers?: boolean;\n /** Settings for prompt and response sanitization using the Model Armor\n service. If supplied, safety_settings must not be supplied.\n */\n modelArmorConfig?: ModelArmorConfig;\n}\n\n/** Config for models.generate_content parameters. */\nexport declare interface GenerateContentParameters {\n /** ID of the model to use. For a list of models, see `Google models\n <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. */\n model: string;\n /** Content of the request.\n */\n contents: ContentListUnion;\n /** Configuration that contains optional model parameters.\n */\n config?: GenerateContentConfig;\n}\n\n/** A wrapper class for the http response. */\nexport class HttpResponse {\n /** Used to retain the processed HTTP headers in the response. */\n headers?: Record<string, string>;\n /**\n * The original http response.\n */\n responseInternal: Response;\n\n constructor(response: Response) {\n // Process the headers.\n const headers: Record<string, string> = {};\n for (const pair of response.headers.entries()) {\n headers[pair[0]] = pair[1];\n }\n this.headers = headers;\n\n // Keep the original response.\n this.responseInternal = response;\n }\n\n json(): Promise<unknown> {\n return this.responseInternal.json();\n }\n}\n\n/** Callbacks for the live API. */\nexport interface LiveCallbacks {\n /**\n * Called when the websocket connection is established.\n */\n onopen?: (() => void) | null;\n /**\n * Called when a message is received from the server.\n */\n onmessage: (e: LiveServerMessage) => void;\n /**\n * Called when an error occurs.\n */\n onerror?: ((e: ErrorEvent) => void) | null;\n /**\n * Called when the websocket connection is closed.\n */\n onclose?: ((e: CloseEvent) => void) | null;\n}\n\n/** Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp. This data type is not supported in Gemini API. */\nexport declare interface GoogleTypeDate {\n /** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */\n day?: number;\n /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */\n month?: number;\n /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */\n year?: number;\n}\n\n/** Source attributions for content. This data type is not supported in Gemini API. */\nexport declare interface Citation {\n /** Output only. End index into the content. */\n endIndex?: number;\n /** Output only. License of the attribution. */\n license?: string;\n /** Output only. Publication date of the attribution. */\n publicationDate?: GoogleTypeDate;\n /** Output only. Start index into the content. */\n startIndex?: number;\n /** Output only. Title of the attribution. */\n title?: string;\n /** Output only. Url reference of the attribution. */\n uri?: string;\n}\n\n/** Citation information when the model quotes another source. */\nexport declare interface CitationMetadata {\n /** Contains citation information when the model directly quotes, at\n length, from another source. Can include traditional websites and code\n repositories.\n */\n citations?: Citation[];\n}\n\n/** Author attribution for a photo or review. This data type is not supported in Gemini API. */\nexport declare interface GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution {\n /** Name of the author of the Photo or Review. */\n displayName?: string;\n /** Profile photo URI of the author of the Photo or Review. */\n photoUri?: string;\n /** URI of the author of the Photo or Review. */\n uri?: string;\n}\n\n/** Encapsulates a review snippet. This data type is not supported in Gemini API. */\nexport declare interface GroundingChunkMapsPlaceAnswerSourcesReviewSnippet {\n /** This review's author. */\n authorAttribution?: GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution;\n /** A link where users can flag a problem with the review. */\n flagContentUri?: string;\n /** A link to show the review on Google Maps. */\n googleMapsUri?: string;\n /** A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country. */\n relativePublishTimeDescription?: string;\n /** A reference representing this place review which may be used to look up this place review again. */\n review?: string;\n /** Id of the review referencing the place. */\n reviewId?: string;\n /** Title of the review. */\n title?: string;\n}\n\n/** Sources used to generate the place answer. This data type is not supported in Gemini API. */\nexport declare interface GroundingChunkMapsPlaceAnswerSources {\n /** A link where users can flag a problem with the generated answer. */\n flagContentUri?: string;\n /** Snippets of reviews that are used to generate the answer. */\n reviewSnippets?: GroundingChunkMapsPlaceAnswerSourcesReviewSnippet[];\n}\n\n/** Chunk from Google Maps. This data type is not supported in Gemini API. */\nexport declare interface GroundingChunkMaps {\n /** Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content. */\n placeAnswerSources?: GroundingChunkMapsPlaceAnswerSources;\n /** This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place. */\n placeId?: string;\n /** Text of the place answer. */\n text?: string;\n /** Title of the place. */\n title?: string;\n /** URI reference of the place. */\n uri?: string;\n}\n\n/** Represents where the chunk starts and ends in the document. This data type is not supported in Gemini API. */\nexport declare interface RagChunkPageSpan {\n /** Page where chunk starts in the document. Inclusive. 1-indexed. */\n firstPage?: number;\n /** Page where chunk ends in the document. Inclusive. 1-indexed. */\n lastPage?: number;\n}\n\n/** A RagChunk includes the content of a chunk of a RagFile, and associated metadata. This data type is not supported in Gemini API. */\nexport declare interface RagChunk {\n /** If populated, represents where the chunk starts and ends in the document. */\n pageSpan?: RagChunkPageSpan;\n /** The content of the chunk. */\n text?: string;\n}\n\n/** Chunk from context retrieved by the retrieval tools. This data type is not supported in Gemini API. */\nexport declare interface GroundingChunkRetrievedContext {\n /** Output only. The full document name for the referenced Vertex AI Search document. */\n documentName?: string;\n /** Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool. */\n ragChunk?: RagChunk;\n /** Text of the attribution. */\n text?: string;\n /** Title of the attribution. */\n title?: string;\n /** URI reference of the attribution. */\n uri?: string;\n}\n\n/** Chunk from the web. */\nexport declare interface GroundingChunkWeb {\n /** Domain of the (original) URI. This field is not supported in Gemini API. */\n domain?: string;\n /** Title of the chunk. */\n title?: string;\n /** URI reference of the chunk. */\n uri?: string;\n}\n\n/** Grounding chunk. */\nexport declare interface GroundingChunk {\n /** Grounding chunk from Google Maps. This field is not supported in Gemini API. */\n maps?: GroundingChunkMaps;\n /** Grounding chunk from context retrieved by the retrieval tools. This field is not supported in Gemini API. */\n retrievedContext?: GroundingChunkRetrievedContext;\n /** Grounding chunk from the web. */\n web?: GroundingChunkWeb;\n}\n\n/** Segment of the content. */\nexport declare interface Segment {\n /** Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. */\n endIndex?: number;\n /** Output only. The index of a Part object within its parent Content object. */\n partIndex?: number;\n /** Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. */\n startIndex?: number;\n /** Output only. The text corresponding to the segment from the response. */\n text?: string;\n}\n\n/** Grounding support. */\nexport declare interface GroundingSupport {\n /** Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. For Gemini 2.0 and before, this list must have the same size as the grounding_chunk_indices. For Gemini 2.5 and after, this list will be empty and should be ignored. */\n confidenceScores?: number[];\n /** A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. */\n groundingChunkIndices?: number[];\n /** Segment of the content this support belongs to. */\n segment?: Segment;\n}\n\n/** Metadata related to retrieval in the grounding flow. */\nexport declare interface RetrievalMetadata {\n /** Optional. Score indicating how likely information from Google Search could help answer the prompt. The score is in the range `[0, 1]`, where 0 is the least likely and 1 is the most likely. This score is only populated when Google Search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger Google Search. */\n googleSearchDynamicRetrievalScore?: number;\n}\n\n/** Google search entry point. */\nexport declare interface SearchEntryPoint {\n /** Optional. Web content snippet that can be embedded in a web page or an app webview. */\n renderedContent?: string;\n /** Optional. Base64 encoded JSON representing array of tuple.\n * @remarks Encoded as base64 string. */\n sdkBlob?: string;\n}\n\n/** Source content flagging uri for a place or review. This is currently populated only for Google Maps grounding. This data type is not supported in Gemini API. */\nexport declare interface GroundingMetadataSourceFlaggingUri {\n /** A link where users can flag a problem with the source (place or review). */\n flagContentUri?: string;\n /** Id of the place or review. */\n sourceId?: string;\n}\n\n/** Metadata returned to client when grounding is enabled. */\nexport declare interface GroundingMetadata {\n /** Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding. This field is not supported in Gemini API. */\n googleMapsWidgetContextToken?: string;\n /** List of supporting references retrieved from specified grounding source. */\n groundingChunks?: GroundingChunk[];\n /** Optional. List of grounding support. */\n groundingSupports?: GroundingSupport[];\n /** Optional. Output only. Retrieval metadata. */\n retrievalMetadata?: RetrievalMetadata;\n /** Optional. Queries executed by the retrieval tools. This field is not supported in Gemini API. */\n retrievalQueries?: string[];\n /** Optional. Google search entry for the following-up web searches. */\n searchEntryPoint?: SearchEntryPoint;\n /** Optional. Output only. List of source flagging uris. This is currently populated only for Google Maps grounding. This field is not supported in Gemini API. */\n sourceFlaggingUris?: GroundingMetadataSourceFlaggingUri[];\n /** Optional. Web search queries for the following-up web search. */\n webSearchQueries?: string[];\n}\n\n/** Candidate for the logprobs token and score. */\nexport declare interface LogprobsResultCandidate {\n /** The candidate's log probability. */\n logProbability?: number;\n /** The candidate's token string value. */\n token?: string;\n /** The candidate's token id value. */\n tokenId?: number;\n}\n\n/** Candidates with top log probabilities at each decoding step. */\nexport declare interface LogprobsResultTopCandidates {\n /** Sorted by log probability in descending order. */\n candidates?: LogprobsResultCandidate[];\n}\n\n/** Logprobs Result */\nexport declare interface LogprobsResult {\n /** Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. */\n chosenCandidates?: LogprobsResultCandidate[];\n /** Length = total number of decoding steps. */\n topCandidates?: LogprobsResultTopCandidates[];\n}\n\n/** Safety rating corresponding to the generated content. */\nexport declare interface SafetyRating {\n /** Output only. Indicates whether the content was filtered out because of this rating. */\n blocked?: boolean;\n /** Output only. Harm category. */\n category?: HarmCategory;\n /** Output only. The overwritten threshold for the safety category of Gemini 2.0 image out. If minors are detected in the output image, the threshold of each safety category will be overwritten if user sets a lower threshold. This field is not supported in Gemini API. */\n overwrittenThreshold?: HarmBlockThreshold;\n /** Output only. Harm probability levels in the content. */\n probability?: HarmProbability;\n /** Output only. Harm probability score. This field is not supported in Gemini API. */\n probabilityScore?: number;\n /** Output only. Harm severity levels in the content. This field is not supported in Gemini API. */\n severity?: HarmSeverity;\n /** Output only. Harm severity score. This field is not supported in Gemini API. */\n severityScore?: number;\n}\n\n/** Context of the a single url retrieval. */\nexport declare interface UrlMetadata {\n /** Retrieved url by the tool. */\n retrievedUrl?: string;\n /** Status of the url retrieval. */\n urlRetrievalStatus?: UrlRetrievalStatus;\n}\n\n/** Metadata related to url context retrieval tool. */\nexport declare interface UrlContextMetadata {\n /** Output only. List of url context. */\n urlMetadata?: UrlMetadata[];\n}\n\n/** A response candidate generated from the model. */\nexport declare interface Candidate {\n /** Contains the multi-part content of the response.\n */\n content?: Content;\n /** Source attribution of the generated content.\n */\n citationMetadata?: CitationMetadata;\n /** Describes the reason the model stopped generating tokens.\n */\n finishMessage?: string;\n /** Number of tokens for this candidate.\n */\n tokenCount?: number;\n /** The reason why the model stopped generating tokens.\n If empty, the model has not stopped generating the tokens.\n */\n finishReason?: FinishReason;\n /** Output only. Average log probability score of the candidate. */\n avgLogprobs?: number;\n /** Output only. Metadata specifies sources used to ground generated content. */\n groundingMetadata?: GroundingMetadata;\n /** Output only. Index of the candidate. */\n index?: number;\n /** Output only. Log-likelihood scores for the response tokens and top tokens */\n logprobsResult?: LogprobsResult;\n /** Output only. List of ratings for the safety of a response candidate. There is at most one rating per category. */\n safetyRatings?: SafetyRating[];\n /** Output only. Metadata related to url context retrieval tool. */\n urlContextMetadata?: UrlContextMetadata;\n}\n\n/** Content filter results for a prompt sent in the request. Note: This is sent only in the first stream chunk and only if no candidates were generated due to content violations. */\nexport class GenerateContentResponsePromptFeedback {\n /** Output only. The reason why the prompt was blocked. */\n blockReason?: BlockedReason;\n /** Output only. A readable message that explains the reason why the prompt was blocked. This field is not supported in Gemini API. */\n blockReasonMessage?: string;\n /** Output only. A list of safety ratings for the prompt. There is one rating per category. */\n safetyRatings?: SafetyRating[];\n}\n\n/** Represents token counting info for a single modality. */\nexport declare interface ModalityTokenCount {\n /** The modality associated with this token count. */\n modality?: MediaModality;\n /** Number of tokens. */\n tokenCount?: number;\n}\n\n/** Usage metadata about the content generation request and response. This message provides a detailed breakdown of token usage and other relevant metrics. This data type is not supported in Gemini API. */\nexport class GenerateContentResponseUsageMetadata {\n /** Output only. A detailed breakdown of the token count for each modality in the cached content. */\n cacheTokensDetails?: ModalityTokenCount[];\n /** Output only. The number of tokens in the cached content that was used for this request. */\n cachedContentTokenCount?: number;\n /** The total number of tokens in the generated candidates. */\n candidatesTokenCount?: number;\n /** Output only. A detailed breakdown of the token count for each modality in the generated candidates. */\n candidatesTokensDetails?: ModalityTokenCount[];\n /** The total number of tokens in the prompt. This includes any text, images, or other media provided in the request. When `cached_content` is set, this also includes the number of tokens in the cached content. */\n promptTokenCount?: number;\n /** Output only. A detailed breakdown of the token count for each modality in the prompt. */\n promptTokensDetails?: ModalityTokenCount[];\n /** Output only. The number of tokens that were part of the model's generated \"thoughts\" output, if applicable. */\n thoughtsTokenCount?: number;\n /** Output only. The number of tokens in the results from tool executions, which are provided back to the model as input, if applicable. */\n toolUsePromptTokenCount?: number;\n /** Output only. A detailed breakdown by modality of the token counts from the results of tool executions, which are provided back to the model as input. */\n toolUsePromptTokensDetails?: ModalityTokenCount[];\n /** The total number of tokens for the entire request. This is the sum of `prompt_token_count`, `candidates_token_count`, `tool_use_prompt_token_count`, and `thoughts_token_count`. */\n totalTokenCount?: number;\n /** Output only. The traffic type for this request. */\n trafficType?: TrafficType;\n}\n\n/** Response message for PredictionService.GenerateContent. */\nexport class GenerateContentResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** Response variations returned by the model.\n */\n candidates?: Candidate[];\n /** Timestamp when the request is made to the server.\n */\n createTime?: string;\n /** The history of automatic function calling.\n */\n automaticFunctionCallingHistory?: Content[];\n /** Output only. The model version used to generate the response. */\n modelVersion?: string;\n /** Output only. Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations. */\n promptFeedback?: GenerateContentResponsePromptFeedback;\n /** Output only. response_id is used to identify each response. It is the encoding of the event_id. */\n responseId?: string;\n /** Usage metadata about the response(s). */\n usageMetadata?: GenerateContentResponseUsageMetadata;\n /**\n * Returns the concatenation of all text parts from the first candidate in the response.\n *\n * @remarks\n * If there are multiple candidates in the response, the text from the first\n * one will be returned.\n * If there are non-text parts in the response, the concatenation of all text\n * parts will be returned, and a warning will be logged.\n * If there are thought parts in the response, the concatenation of all text\n * parts excluding the thought parts will be returned.\n *\n * @example\n * ```ts\n * const response = await ai.models.generateContent({\n * model: 'gemini-2.0-flash',\n * contents:\n * 'Why is the sky blue?',\n * });\n *\n * console.debug(response.text);\n * ```\n */\n get text(): string | undefined {\n if (this.candidates?.[0]?.content?.parts?.length === 0) {\n return undefined;\n }\n if (this.candidates && this.candidates.length > 1) {\n console.warn(\n 'there are multiple candidates in the response, returning text from the first one.',\n );\n }\n let text = '';\n let anyTextPartText = false;\n const nonTextParts = [];\n for (const part of this.candidates?.[0]?.content?.parts ?? []) {\n for (const [fieldName, fieldValue] of Object.entries(part)) {\n if (\n fieldName !== 'text' &&\n fieldName !== 'thought' &&\n fieldName !== 'thoughtSignature' &&\n (fieldValue !== null || fieldValue !== undefined)\n ) {\n nonTextParts.push(fieldName);\n }\n }\n if (typeof part.text === 'string') {\n if (typeof part.thought === 'boolean' && part.thought) {\n continue;\n }\n anyTextPartText = true;\n text += part.text;\n }\n }\n if (nonTextParts.length > 0) {\n console.warn(\n `there are non-text parts ${nonTextParts} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`,\n );\n }\n // part.text === '' is different from part.text is null\n return anyTextPartText ? text : undefined;\n }\n\n /**\n * Returns the concatenation of all inline data parts from the first candidate\n * in the response.\n *\n * @remarks\n * If there are multiple candidates in the response, the inline data from the\n * first one will be returned. If there are non-inline data parts in the\n * response, the concatenation of all inline data parts will be returned, and\n * a warning will be logged.\n */\n get data(): string | undefined {\n if (this.candidates?.[0]?.content?.parts?.length === 0) {\n return undefined;\n }\n if (this.candidates && this.candidates.length > 1) {\n console.warn(\n 'there are multiple candidates in the response, returning data from the first one.',\n );\n }\n let data = '';\n const nonDataParts = [];\n for (const part of this.candidates?.[0]?.content?.parts ?? []) {\n for (const [fieldName, fieldValue] of Object.entries(part)) {\n if (\n fieldName !== 'inlineData' &&\n (fieldValue !== null || fieldValue !== undefined)\n ) {\n nonDataParts.push(fieldName);\n }\n }\n if (part.inlineData && typeof part.inlineData.data === 'string') {\n data += atob(part.inlineData.data);\n }\n }\n if (nonDataParts.length > 0) {\n console.warn(\n `there are non-data parts ${nonDataParts} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`,\n );\n }\n return data.length > 0 ? btoa(data) : undefined;\n }\n\n /**\n * Returns the function calls from the first candidate in the response.\n *\n * @remarks\n * If there are multiple candidates in the response, the function calls from\n * the first one will be returned.\n * If there are no function calls in the response, undefined will be returned.\n *\n * @example\n * ```ts\n * const controlLightFunctionDeclaration: FunctionDeclaration = {\n * name: 'controlLight',\n * parameters: {\n * type: Type.OBJECT,\n * description: 'Set the brightness and color temperature of a room light.',\n * properties: {\n * brightness: {\n * type: Type.NUMBER,\n * description:\n * 'Light level from 0 to 100. Zero is off and 100 is full brightness.',\n * },\n * colorTemperature: {\n * type: Type.STRING,\n * description:\n * 'Color temperature of the light fixture which can be `daylight`, `cool` or `warm`.',\n * },\n * },\n * required: ['brightness', 'colorTemperature'],\n * };\n * const response = await ai.models.generateContent({\n * model: 'gemini-2.0-flash',\n * contents: 'Dim the lights so the room feels cozy and warm.',\n * config: {\n * tools: [{functionDeclarations: [controlLightFunctionDeclaration]}],\n * toolConfig: {\n * functionCallingConfig: {\n * mode: FunctionCallingConfigMode.ANY,\n * allowedFunctionNames: ['controlLight'],\n * },\n * },\n * },\n * });\n * console.debug(JSON.stringify(response.functionCalls));\n * ```\n */\n get functionCalls(): FunctionCall[] | undefined {\n if (this.candidates?.[0]?.content?.parts?.length === 0) {\n return undefined;\n }\n if (this.candidates && this.candidates.length > 1) {\n console.warn(\n 'there are multiple candidates in the response, returning function calls from the first one.',\n );\n }\n const functionCalls = this.candidates?.[0]?.content?.parts\n ?.filter((part) => part.functionCall)\n .map((part) => part.functionCall)\n .filter(\n (functionCall): functionCall is FunctionCall =>\n functionCall !== undefined,\n );\n if (functionCalls?.length === 0) {\n return undefined;\n }\n return functionCalls;\n }\n /**\n * Returns the first executable code from the first candidate in the response.\n *\n * @remarks\n * If there are multiple candidates in the response, the executable code from\n * the first one will be returned.\n * If there are no executable code in the response, undefined will be\n * returned.\n *\n * @example\n * ```ts\n * const response = await ai.models.generateContent({\n * model: 'gemini-2.0-flash',\n * contents:\n * 'What is the sum of the first 50 prime numbers? Generate and run code for the calculation, and make sure you get all 50.'\n * config: {\n * tools: [{codeExecution: {}}],\n * },\n * });\n *\n * console.debug(response.executableCode);\n * ```\n */\n get executableCode(): string | undefined {\n if (this.candidates?.[0]?.content?.parts?.length === 0) {\n return undefined;\n }\n if (this.candidates && this.candidates.length > 1) {\n console.warn(\n 'there are multiple candidates in the response, returning executable code from the first one.',\n );\n }\n const executableCode = this.candidates?.[0]?.content?.parts\n ?.filter((part) => part.executableCode)\n .map((part) => part.executableCode)\n .filter(\n (executableCode): executableCode is ExecutableCode =>\n executableCode !== undefined,\n );\n if (executableCode?.length === 0) {\n return undefined;\n }\n\n return executableCode?.[0]?.code;\n }\n /**\n * Returns the first code execution result from the first candidate in the response.\n *\n * @remarks\n * If there are multiple candidates in the response, the code execution result from\n * the first one will be returned.\n * If there are no code execution result in the response, undefined will be returned.\n *\n * @example\n * ```ts\n * const response = await ai.models.generateContent({\n * model: 'gemini-2.0-flash',\n * contents:\n * 'What is the sum of the first 50 prime numbers? Generate and run code for the calculation, and make sure you get all 50.'\n * config: {\n * tools: [{codeExecution: {}}],\n * },\n * });\n *\n * console.debug(response.codeExecutionResult);\n * ```\n */\n get codeExecutionResult(): string | undefined {\n if (this.candidates?.[0]?.content?.parts?.length === 0) {\n return undefined;\n }\n if (this.candidates && this.candidates.length > 1) {\n console.warn(\n 'there are multiple candidates in the response, returning code execution result from the first one.',\n );\n }\n const codeExecutionResult = this.candidates?.[0]?.content?.parts\n ?.filter((part) => part.codeExecutionResult)\n .map((part) => part.codeExecutionResult)\n .filter(\n (codeExecutionResult): codeExecutionResult is CodeExecutionResult =>\n codeExecutionResult !== undefined,\n );\n if (codeExecutionResult?.length === 0) {\n return undefined;\n }\n return codeExecutionResult?.[0]?.output;\n }\n}\n\nexport type ReferenceImage =\n | RawReferenceImage\n | MaskReferenceImage\n | ControlReferenceImage\n | StyleReferenceImage\n | SubjectReferenceImage\n | ContentReferenceImage;\n\n/** Parameters for the request to edit an image. */\nexport declare interface EditImageParameters {\n /** The model to use. */\n model: string;\n /** A text description of the edit to apply to the image. */\n prompt: string;\n /** The reference images for Imagen 3 editing. */\n referenceImages: ReferenceImage[];\n /** Configuration for editing. */\n config?: EditImageConfig;\n}\n\n/** Optional parameters for the embed_content method. */\nexport declare interface EmbedContentConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** Type of task for which the embedding will be used.\n */\n taskType?: string;\n /** Title for the text. Only applicable when TaskType is\n `RETRIEVAL_DOCUMENT`.\n */\n title?: string;\n /** Reduced dimension for the output embedding. If set,\n excessive values in the output embedding are truncated from the end.\n Supported by newer models since 2024 only. You cannot set this value if\n using the earlier model (`models/embedding-001`).\n */\n outputDimensionality?: number;\n /** Vertex API only. The MIME type of the input.\n */\n mimeType?: string;\n /** Vertex API only. Whether to silently truncate inputs longer than\n the max sequence length. If this option is set to false, oversized inputs\n will lead to an INVALID_ARGUMENT error, similar to other text APIs.\n */\n autoTruncate?: boolean;\n}\n\n/** Parameters for the embed_content method. */\nexport declare interface EmbedContentParameters {\n /** ID of the model to use. For a list of models, see `Google models\n <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. */\n model: string;\n /** The content to embed. Only the `parts.text` fields will be counted.\n */\n contents: ContentListUnion;\n /** Configuration that contains optional parameters.\n */\n config?: EmbedContentConfig;\n}\n\n/** Statistics of the input text associated with the result of content embedding. */\nexport declare interface ContentEmbeddingStatistics {\n /** Vertex API only. If the input text was truncated due to having\n a length longer than the allowed maximum input.\n */\n truncated?: boolean;\n /** Vertex API only. Number of tokens of the input text.\n */\n tokenCount?: number;\n}\n\n/** The embedding generated from an input content. */\nexport declare interface ContentEmbedding {\n /** A list of floats representing an embedding.\n */\n values?: number[];\n /** Vertex API only. Statistics of the input text associated with this\n embedding.\n */\n statistics?: ContentEmbeddingStatistics;\n}\n\n/** Request-level metadata for the Vertex Embed Content API. */\nexport declare interface EmbedContentMetadata {\n /** Vertex API only. The total number of billable characters included\n in the request.\n */\n billableCharacterCount?: number;\n}\n\n/** Response for the embed_content method. */\nexport class EmbedContentResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** The embeddings for each request, in the same order as provided in\n the batch request.\n */\n embeddings?: ContentEmbedding[];\n /** Vertex API only. Metadata about the request.\n */\n metadata?: EmbedContentMetadata;\n}\n\n/** The config for generating an images. */\nexport declare interface GenerateImagesConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** Cloud Storage URI used to store the generated images. */\n outputGcsUri?: string;\n /** Description of what to discourage in the generated images. */\n negativePrompt?: string;\n /** Number of images to generate. */\n numberOfImages?: number;\n /** Aspect ratio of the generated images. Supported values are\n \"1:1\", \"3:4\", \"4:3\", \"9:16\", and \"16:9\". */\n aspectRatio?: string;\n /** Controls how much the model adheres to the text prompt. Large\n values increase output and prompt alignment, but may compromise image\n quality. */\n guidanceScale?: number;\n /** Random seed for image generation. This is not available when\n ``add_watermark`` is set to true. */\n seed?: number;\n /** Filter level for safety filtering. */\n safetyFilterLevel?: SafetyFilterLevel;\n /** Allows generation of people by the model. */\n personGeneration?: PersonGeneration;\n /** Whether to report the safety scores of each generated image and\n the positive prompt in the response. */\n includeSafetyAttributes?: boolean;\n /** Whether to include the Responsible AI filter reason if the image\n is filtered out of the response. */\n includeRaiReason?: boolean;\n /** Language of the text in the prompt. */\n language?: ImagePromptLanguage;\n /** MIME type of the generated image. */\n outputMimeType?: string;\n /** Compression quality of the generated image (for ``image/jpeg``\n only). */\n outputCompressionQuality?: number;\n /** Whether to add a watermark to the generated images. */\n addWatermark?: boolean;\n /** User specified labels to track billing usage. */\n labels?: Record<string, string>;\n /** The size of the largest dimension of the generated image.\n Supported sizes are 1K and 2K (not supported for Imagen 3 models). */\n imageSize?: string;\n /** Whether to use the prompt rewriting logic. */\n enhancePrompt?: boolean;\n}\n\n/** The parameters for generating images. */\nexport declare interface GenerateImagesParameters {\n /** ID of the model to use. For a list of models, see `Google models\n <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. */\n model: string;\n /** Text prompt that typically describes the images to output.\n */\n prompt: string;\n /** Configuration for generating images.\n */\n config?: GenerateImagesConfig;\n}\n\n/** An image. */\nexport declare interface Image {\n /** The Cloud Storage URI of the image. ``Image`` can contain a value\n for this field or the ``image_bytes`` field but not both. */\n gcsUri?: string;\n /** The image bytes data. ``Image`` can contain a value for this field\n or the ``gcs_uri`` field but not both.\n * @remarks Encoded as base64 string. */\n imageBytes?: string;\n /** The MIME type of the image. */\n mimeType?: string;\n}\n\n/** Safety attributes of a GeneratedImage or the user-provided prompt. */\nexport declare interface SafetyAttributes {\n /** List of RAI categories. */\n categories?: string[];\n /** List of scores of each categories. */\n scores?: number[];\n /** Internal use only. */\n contentType?: string;\n}\n\n/** An output image. */\nexport declare interface GeneratedImage {\n /** The output image data. */\n image?: Image;\n /** Responsible AI filter reason if the image is filtered out of the\n response. */\n raiFilteredReason?: string;\n /** Safety attributes of the image. Lists of RAI categories and their\n scores of each content. */\n safetyAttributes?: SafetyAttributes;\n /** The rewritten prompt used for the image generation if the prompt\n enhancer is enabled. */\n enhancedPrompt?: string;\n}\n\n/** The output images response. */\nexport class GenerateImagesResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** List of generated images. */\n generatedImages?: GeneratedImage[];\n /** Safety attributes of the positive prompt. Only populated if\n ``include_safety_attributes`` is set to True. */\n positivePromptSafetyAttributes?: SafetyAttributes;\n}\n\n/** Configuration for a Mask reference image. */\nexport declare interface MaskReferenceConfig {\n /** Prompts the model to generate a mask instead of you needing to\n provide one (unless MASK_MODE_USER_PROVIDED is used). */\n maskMode?: MaskReferenceMode;\n /** A list of up to 5 class ids to use for semantic segmentation.\n Automatically creates an image mask based on specific objects. */\n segmentationClasses?: number[];\n /** Dilation percentage of the mask provided.\n Float between 0 and 1. */\n maskDilation?: number;\n}\n\n/** Configuration for a Control reference image. */\nexport declare interface ControlReferenceConfig {\n /** The type of control reference image to use. */\n controlType?: ControlReferenceType;\n /** Defaults to False. When set to True, the control image will be\n computed by the model based on the control type. When set to False,\n the control image must be provided by the user. */\n enableControlImageComputation?: boolean;\n}\n\n/** Configuration for a Style reference image. */\nexport declare interface StyleReferenceConfig {\n /** A text description of the style to use for the generated image. */\n styleDescription?: string;\n}\n\n/** Configuration for a Subject reference image. */\nexport declare interface SubjectReferenceConfig {\n /** The subject type of a subject reference image. */\n subjectType?: SubjectReferenceType;\n /** Subject description for the image. */\n subjectDescription?: string;\n}\n\n/** Configuration for editing an image. */\nexport declare interface EditImageConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** Cloud Storage URI used to store the generated images. */\n outputGcsUri?: string;\n /** Description of what to discourage in the generated images. */\n negativePrompt?: string;\n /** Number of images to generate. */\n numberOfImages?: number;\n /** Aspect ratio of the generated images. Supported values are\n \"1:1\", \"3:4\", \"4:3\", \"9:16\", and \"16:9\". */\n aspectRatio?: string;\n /** Controls how much the model adheres to the text prompt. Large\n values increase output and prompt alignment, but may compromise image\n quality. */\n guidanceScale?: number;\n /** Random seed for image generation. This is not available when\n ``add_watermark`` is set to true. */\n seed?: number;\n /** Filter level for safety filtering. */\n safetyFilterLevel?: SafetyFilterLevel;\n /** Allows generation of people by the model. */\n personGeneration?: PersonGeneration;\n /** Whether to report the safety scores of each generated image and\n the positive prompt in the response. */\n includeSafetyAttributes?: boolean;\n /** Whether to include the Responsible AI filter reason if the image\n is filtered out of the response. */\n includeRaiReason?: boolean;\n /** Language of the text in the prompt. */\n language?: ImagePromptLanguage;\n /** MIME type of the generated image. */\n outputMimeType?: string;\n /** Compression quality of the generated image (for ``image/jpeg``\n only). */\n outputCompressionQuality?: number;\n /** Whether to add a watermark to the generated images. */\n addWatermark?: boolean;\n /** User specified labels to track billing usage. */\n labels?: Record<string, string>;\n /** Describes the editing mode for the request. */\n editMode?: EditMode;\n /** The number of sampling steps. A higher value has better image\n quality, while a lower value has better latency. */\n baseSteps?: number;\n}\n\n/** Response for the request to edit an image. */\nexport class EditImageResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** Generated images. */\n generatedImages?: GeneratedImage[];\n}\n\nexport class UpscaleImageResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** Generated images. */\n generatedImages?: GeneratedImage[];\n}\n\n/** An image of the product. */\nexport declare interface ProductImage {\n /** An image of the product to be recontextualized. */\n productImage?: Image;\n}\n\n/** A set of source input(s) for image recontextualization. */\nexport declare interface RecontextImageSource {\n /** A text prompt for guiding the model during image\n recontextualization. Not supported for Virtual Try-On. */\n prompt?: string;\n /** Image of the person or subject who will be wearing the\n product(s). */\n personImage?: Image;\n /** A list of product images. */\n productImages?: ProductImage[];\n}\n\n/** Configuration for recontextualizing an image. */\nexport declare interface RecontextImageConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** Number of images to generate. */\n numberOfImages?: number;\n /** The number of sampling steps. A higher value has better image\n quality, while a lower value has better latency. */\n baseSteps?: number;\n /** Cloud Storage URI used to store the generated images. */\n outputGcsUri?: string;\n /** Random seed for image generation. */\n seed?: number;\n /** Filter level for safety filtering. */\n safetyFilterLevel?: SafetyFilterLevel;\n /** Whether allow to generate person images, and restrict to specific\n ages. */\n personGeneration?: PersonGeneration;\n /** Whether to add a SynthID watermark to the generated images. */\n addWatermark?: boolean;\n /** MIME type of the generated image. */\n outputMimeType?: string;\n /** Compression quality of the generated image (for ``image/jpeg``\n only). */\n outputCompressionQuality?: number;\n /** Whether to use the prompt rewriting logic. */\n enhancePrompt?: boolean;\n /** User specified labels to track billing usage. */\n labels?: Record<string, string>;\n}\n\n/** The parameters for recontextualizing an image. */\nexport declare interface RecontextImageParameters {\n /** ID of the model to use. For a list of models, see `Google models\n <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. */\n model: string;\n /** A set of source input(s) for image recontextualization. */\n source: RecontextImageSource;\n /** Configuration for image recontextualization. */\n config?: RecontextImageConfig;\n}\n\n/** The output images response. */\nexport class RecontextImageResponse {\n /** List of generated images. */\n generatedImages?: GeneratedImage[];\n}\n\n/** An image mask representing a brush scribble. */\nexport declare interface ScribbleImage {\n /** The brush scribble to guide segmentation. Valid for the interactive mode. */\n image?: Image;\n}\n\n/** A set of source input(s) for image segmentation. */\nexport declare interface SegmentImageSource {\n /** A text prompt for guiding the model during image segmentation.\n Required for prompt mode and semantic mode, disallowed for other modes. */\n prompt?: string;\n /** The image to be segmented. */\n image?: Image;\n /** The brush scribble to guide segmentation.\n Required for the interactive mode, disallowed for other modes. */\n scribbleImage?: ScribbleImage;\n}\n\n/** Configuration for segmenting an image. */\nexport declare interface SegmentImageConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** The segmentation mode to use. */\n mode?: SegmentMode;\n /** The maximum number of predictions to return up to, by top\n confidence score. */\n maxPredictions?: number;\n /** The confidence score threshold for the detections as a decimal\n value. Only predictions with a confidence score higher than this\n threshold will be returned. */\n confidenceThreshold?: number;\n /** A decimal value representing how much dilation to apply to the\n masks. 0 for no dilation. 1.0 means the masked area covers the whole\n image. */\n maskDilation?: number;\n /** The binary color threshold to apply to the masks. The threshold\n can be set to a decimal value between 0 and 255 non-inclusive.\n Set to -1 for no binary color thresholding. */\n binaryColorThreshold?: number;\n /** User specified labels to track billing usage. */\n labels?: Record<string, string>;\n}\n\n/** The parameters for segmenting an image. */\nexport declare interface SegmentImageParameters {\n /** ID of the model to use. For a list of models, see `Google models\n <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. */\n model: string;\n /** A set of source input(s) for image segmentation. */\n source: SegmentImageSource;\n /** Configuration for image segmentation. */\n config?: SegmentImageConfig;\n}\n\n/** An entity representing the segmented area. */\nexport declare interface EntityLabel {\n /** The label of the segmented entity. */\n label?: string;\n /** The confidence score of the detected label. */\n score?: number;\n}\n\n/** A generated image mask. */\nexport declare interface GeneratedImageMask {\n /** The generated image mask. */\n mask?: Image;\n /** The detected entities on the segmented area. */\n labels?: EntityLabel[];\n}\n\n/** The output images response. */\nexport class SegmentImageResponse {\n /** List of generated image masks.\n */\n generatedMasks?: GeneratedImageMask[];\n}\n\n/** Optional parameters for models.get method. */\nexport declare interface GetModelConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\nexport declare interface GetModelParameters {\n model: string;\n /** Optional parameters for the request. */\n config?: GetModelConfig;\n}\n\n/** An endpoint where you deploy models. */\nexport declare interface Endpoint {\n /** Resource name of the endpoint. */\n name?: string;\n /** ID of the model that's deployed to the endpoint. */\n deployedModelId?: string;\n}\n\n/** A tuned machine learning model. */\nexport declare interface TunedModelInfo {\n /** ID of the base model that you want to tune. */\n baseModel?: string;\n /** Date and time when the base model was created. */\n createTime?: string;\n /** Date and time when the base model was last updated. */\n updateTime?: string;\n}\n\n/** Describes the machine learning model version checkpoint. */\nexport declare interface Checkpoint {\n /** The ID of the checkpoint.\n */\n checkpointId?: string;\n /** The epoch of the checkpoint.\n */\n epoch?: string;\n /** The step of the checkpoint.\n */\n step?: string;\n}\n\n/** A trained machine learning model. */\nexport declare interface Model {\n /** Resource name of the model. */\n name?: string;\n /** Display name of the model. */\n displayName?: string;\n /** Description of the model. */\n description?: string;\n /** Version ID of the model. A new version is committed when a new\n model version is uploaded or trained under an existing model ID. The\n version ID is an auto-incrementing decimal number in string\n representation. */\n version?: string;\n /** List of deployed models created from this base model. Note that a\n model could have been deployed to endpoints in different locations. */\n endpoints?: Endpoint[];\n /** Labels with user-defined metadata to organize your models. */\n labels?: Record<string, string>;\n /** Information about the tuned model from the base model. */\n tunedModelInfo?: TunedModelInfo;\n /** The maximum number of input tokens that the model can handle. */\n inputTokenLimit?: number;\n /** The maximum number of output tokens that the model can generate. */\n outputTokenLimit?: number;\n /** List of actions that are supported by the model. */\n supportedActions?: string[];\n /** The default checkpoint id of a model version.\n */\n defaultCheckpointId?: string;\n /** The checkpoints of the model. */\n checkpoints?: Checkpoint[];\n /** Temperature value used for sampling set when the dataset was saved.\n This value is used to tune the degree of randomness. */\n temperature?: number;\n /** The maximum temperature value used for sampling set when the\n dataset was saved. This value is used to tune the degree of randomness. */\n maxTemperature?: number;\n /** Optional. Specifies the nucleus sampling threshold. The model\n considers only the smallest set of tokens whose cumulative probability is\n at least `top_p`. This helps generate more diverse and less repetitive\n responses. For example, a `top_p` of 0.9 means the model considers tokens\n until the cumulative probability of the tokens to select from reaches 0.9.\n It's recommended to adjust either temperature or `top_p`, but not both. */\n topP?: number;\n /** Optional. Specifies the top-k sampling threshold. The model\n considers only the top k most probable tokens for the next token. This can\n be useful for generating more coherent and less random text. For example,\n a `top_k` of 40 means the model will choose the next word from the 40 most\n likely words. */\n topK?: number;\n /** Whether the model supports thinking features. If true, thoughts are\n returned only if the model supports thought and thoughts are available. */\n thinking?: boolean;\n}\n\nexport declare interface ListModelsConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n pageSize?: number;\n pageToken?: string;\n filter?: string;\n /** Set true to list base models, false to list tuned models. */\n queryBase?: boolean;\n}\n\nexport declare interface ListModelsParameters {\n config?: ListModelsConfig;\n}\n\nexport class ListModelsResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n nextPageToken?: string;\n models?: Model[];\n}\n\n/** Configuration for updating a tuned model. */\nexport declare interface UpdateModelConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n displayName?: string;\n description?: string;\n defaultCheckpointId?: string;\n}\n\n/** Configuration for updating a tuned model. */\nexport declare interface UpdateModelParameters {\n model: string;\n config?: UpdateModelConfig;\n}\n\n/** Configuration for deleting a tuned model. */\nexport declare interface DeleteModelConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Parameters for deleting a tuned model. */\nexport declare interface DeleteModelParameters {\n model: string;\n /** Optional parameters for the request. */\n config?: DeleteModelConfig;\n}\n\nexport class DeleteModelResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n}\n\n/** Generation config. */\nexport declare interface GenerationConfig {\n /** Optional. Config for model selection. */\n modelSelectionConfig?: ModelSelectionConfig;\n /** Output schema of the generated response. This is an alternative to\n `response_schema` that accepts [JSON Schema](https://json-schema.org/).\n */\n responseJsonSchema?: unknown;\n /** Optional. If enabled, audio timestamp will be included in the request to the model. This field is not supported in Gemini API. */\n audioTimestamp?: boolean;\n /** Optional. Number of candidates to generate. */\n candidateCount?: number;\n /** Optional. If enabled, the model will detect emotions and adapt its responses accordingly. This field is not supported in Gemini API. */\n enableAffectiveDialog?: boolean;\n /** Optional. Frequency penalties. */\n frequencyPenalty?: number;\n /** Optional. Logit probabilities. */\n logprobs?: number;\n /** Optional. The maximum number of output tokens to generate per message. */\n maxOutputTokens?: number;\n /** Optional. If specified, the media resolution specified will be used. */\n mediaResolution?: MediaResolution;\n /** Optional. Positive penalties. */\n presencePenalty?: number;\n /** Optional. If true, export the logprobs results in response. */\n responseLogprobs?: boolean;\n /** Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature. */\n responseMimeType?: string;\n /** Optional. The modalities of the response. */\n responseModalities?: Modality[];\n /** Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response. */\n responseSchema?: Schema;\n /** Optional. Routing configuration. This field is not supported in Gemini API. */\n routingConfig?: GenerationConfigRoutingConfig;\n /** Optional. Seed. */\n seed?: number;\n /** Optional. The speech generation config. */\n speechConfig?: SpeechConfig;\n /** Optional. Stop sequences. */\n stopSequences?: string[];\n /** Optional. Controls the randomness of predictions. */\n temperature?: number;\n /** Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking. */\n thinkingConfig?: ThinkingConfig;\n /** Optional. If specified, top-k sampling will be used. */\n topK?: number;\n /** Optional. If specified, nucleus sampling will be used. */\n topP?: number;\n /** Optional. Enables enhanced civic answers. It may not be available for all models. This field is not supported in Vertex AI. */\n enableEnhancedCivicAnswers?: boolean;\n}\n\n/** Config for the count_tokens method. */\nexport declare interface CountTokensConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** Instructions for the model to steer it toward better performance.\n */\n systemInstruction?: ContentUnion;\n /** Code that enables the system to interact with external systems to\n perform an action outside of the knowledge and scope of the model.\n */\n tools?: Tool[];\n /** Configuration that the model uses to generate the response. Not\n supported by the Gemini Developer API.\n */\n generationConfig?: GenerationConfig;\n}\n\n/** Parameters for counting tokens. */\nexport declare interface CountTokensParameters {\n /** ID of the model to use. For a list of models, see `Google models\n <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. */\n model: string;\n /** Input content. */\n contents: ContentListUnion;\n /** Configuration for counting tokens. */\n config?: CountTokensConfig;\n}\n\n/** Response for counting tokens. */\nexport class CountTokensResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** Total number of tokens. */\n totalTokens?: number;\n /** Number of tokens in the cached part of the prompt (the cached content). */\n cachedContentTokenCount?: number;\n}\n\n/** Optional parameters for computing tokens. */\nexport declare interface ComputeTokensConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Parameters for computing tokens. */\nexport declare interface ComputeTokensParameters {\n /** ID of the model to use. For a list of models, see `Google models\n <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. */\n model: string;\n /** Input content. */\n contents: ContentListUnion;\n /** Optional parameters for the request.\n */\n config?: ComputeTokensConfig;\n}\n\n/** Tokens info with a list of tokens and the corresponding list of token ids. */\nexport declare interface TokensInfo {\n /** Optional fields for the role from the corresponding Content. */\n role?: string;\n /** A list of token ids from the input. */\n tokenIds?: string[];\n /** A list of tokens from the input.\n * @remarks Encoded as base64 string. */\n tokens?: string[];\n}\n\n/** Response for computing tokens. */\nexport class ComputeTokensResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** Lists of tokens info from the input. A ComputeTokensRequest could have multiple instances with a prompt in each instance. We also need to return lists of tokens info for the request with multiple instances. */\n tokensInfo?: TokensInfo[];\n}\n\n/** A generated video. */\nexport declare interface Video {\n /** Path to another storage. */\n uri?: string;\n /** Video bytes.\n * @remarks Encoded as base64 string. */\n videoBytes?: string;\n /** Video encoding, for example ``video/mp4``. */\n mimeType?: string;\n}\n\n/** A set of source input(s) for video generation. */\nexport declare interface GenerateVideosSource {\n /** The text prompt for generating the videos.\n Optional if image or video is provided. */\n prompt?: string;\n /** The input image for generating the videos.\n Optional if prompt is provided. Not allowed if video is provided. */\n image?: Image;\n /** The input video for video extension use cases.\n Optional if prompt is provided. Not allowed if image is provided. */\n video?: Video;\n}\n\n/** A reference image for video generation. */\nexport declare interface VideoGenerationReferenceImage {\n /** The reference image. */\n image?: Image;\n /** The type of the reference image, which defines how the reference\n image will be used to generate the video. */\n referenceType?: VideoGenerationReferenceType;\n}\n\n/** A mask for video generation. */\nexport declare interface VideoGenerationMask {\n /** The image mask to use for generating videos. */\n image?: Image;\n /** Describes how the mask will be used. Inpainting masks must\n match the aspect ratio of the input video. Outpainting masks can be\n either 9:16 or 16:9. */\n maskMode?: VideoGenerationMaskMode;\n}\n\n/** Configuration for generating videos. */\nexport declare interface GenerateVideosConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** Number of output videos. */\n numberOfVideos?: number;\n /** The gcs bucket where to save the generated videos. */\n outputGcsUri?: string;\n /** Frames per second for video generation. */\n fps?: number;\n /** Duration of the clip for video generation in seconds. */\n durationSeconds?: number;\n /** The RNG seed. If RNG seed is exactly same for each request with\n unchanged inputs, the prediction results will be consistent. Otherwise,\n a random RNG seed will be used each time to produce a different\n result. */\n seed?: number;\n /** The aspect ratio for the generated video. 16:9 (landscape) and\n 9:16 (portrait) are supported. */\n aspectRatio?: string;\n /** The resolution for the generated video. 720p and 1080p are\n supported. */\n resolution?: string;\n /** Whether allow to generate person videos, and restrict to specific\n ages. Supported values are: dont_allow, allow_adult. */\n personGeneration?: string;\n /** The pubsub topic where to publish the video generation\n progress. */\n pubsubTopic?: string;\n /** Explicitly state what should not be included in the generated\n videos. */\n negativePrompt?: string;\n /** Whether to use the prompt rewriting logic. */\n enhancePrompt?: boolean;\n /** Whether to generate audio along with the video. */\n generateAudio?: boolean;\n /** Image to use as the last frame of generated videos.\n Only supported for image to video use cases. */\n lastFrame?: Image;\n /** The images to use as the references to generate the videos.\n If this field is provided, the text prompt field must also be provided.\n The image, video, or last_frame field are not supported. Each image must\n be associated with a type. Veo 2 supports up to 3 asset images *or* 1\n style image. */\n referenceImages?: VideoGenerationReferenceImage[];\n /** The mask to use for generating videos. */\n mask?: VideoGenerationMask;\n /** Compression quality of the generated videos. */\n compressionQuality?: VideoCompressionQuality;\n}\n\n/** Class that represents the parameters for generating videos. */\nexport declare interface GenerateVideosParameters {\n /** ID of the model to use. For a list of models, see `Google models\n <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. */\n model: string;\n /** The text prompt for generating the videos.\n Optional if image or video is provided. */\n prompt?: string;\n /** The input image for generating the videos.\n Optional if prompt is provided. Not allowed if video is provided. */\n image?: Image;\n /** The input video for video extension use cases.\n Optional if prompt is provided. Not allowed if image is provided. */\n video?: Video;\n /** A set of source input(s) for video generation. */\n source?: GenerateVideosSource;\n /** Configuration for generating videos. */\n config?: GenerateVideosConfig;\n}\n\n/** A generated video. */\nexport declare interface GeneratedVideo {\n /** The output video */\n video?: Video;\n}\n\n/** Response with generated videos. */\nexport class GenerateVideosResponse {\n /** List of the generated videos */\n generatedVideos?: GeneratedVideo[];\n /** Returns if any videos were filtered due to RAI policies. */\n raiMediaFilteredCount?: number;\n /** Returns rai failure reasons if any. */\n raiMediaFilteredReasons?: string[];\n}\n\n/** A long-running operation. */\nexport declare interface Operation<T> {\n /** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */\n name?: string;\n /** Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */\n metadata?: Record<string, unknown>;\n /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */\n done?: boolean;\n /** The error result of the operation in case of failure or cancellation. */\n error?: Record<string, unknown>;\n /** The response if the operation is successful. */\n response?: T;\n /**\n * Instantiates an Operation of the same type as the one being called with the fields set from the API response.\n * @internal\n */\n _fromAPIResponse({\n apiResponse,\n _isVertexAI,\n }: OperationFromAPIResponseParameters): Operation<T>;\n}\n\n/** A video generation operation. */\nexport class GenerateVideosOperation\n implements Operation<GenerateVideosResponse>\n{\n /** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */\n name?: string;\n /** Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */\n metadata?: Record<string, unknown>;\n /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */\n done?: boolean;\n /** The error result of the operation in case of failure or cancellation. */\n error?: Record<string, unknown>;\n /** The generated videos. */\n response?: GenerateVideosResponse;\n\n /**\n * Instantiates an Operation of the same type as the one being called with the fields set from the API response.\n * @internal\n */\n _fromAPIResponse({\n apiResponse,\n _isVertexAI,\n }: OperationFromAPIResponseParameters): Operation<GenerateVideosResponse> {\n const operation = new GenerateVideosOperation();\n let response;\n const op = apiResponse as unknown as GenerateVideosOperation;\n\n if (_isVertexAI) {\n response = generateVideosOperationFromVertex(op);\n } else {\n response = generateVideosOperationFromMldev(op);\n }\n Object.assign(operation, response);\n return operation;\n }\n /** The full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n}\n\n/** Optional parameters for tunings.get method. */\nexport declare interface GetTuningJobConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Parameters for the get method. */\nexport declare interface GetTuningJobParameters {\n name: string;\n /** Optional parameters for the request. */\n config?: GetTuningJobConfig;\n}\n\n/** TunedModelCheckpoint for the Tuned Model of a Tuning Job. */\nexport declare interface TunedModelCheckpoint {\n /** The ID of the checkpoint.\n */\n checkpointId?: string;\n /** The epoch of the checkpoint.\n */\n epoch?: string;\n /** The step of the checkpoint.\n */\n step?: string;\n /** The Endpoint resource name that the checkpoint is deployed to.\n Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.\n */\n endpoint?: string;\n}\n\n/** TunedModel for the Tuned Model of a Tuning Job. */\nexport declare interface TunedModel {\n /** Output only. The resource name of the TunedModel.\n Format: `projects/{project}/locations/{location}/models/{model}@{version_id}`\n When tuning from a base model, the version_id will be 1.\n For continuous tuning, the version id will be incremented by 1 from the\n last version id in the parent model. E.g., `projects/{project}/locations/{location}/models/{model}@{last_version_id + 1}`\n */\n model?: string;\n /** Output only. A resource name of an Endpoint.\n Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.\n */\n endpoint?: string;\n /** The checkpoints associated with this TunedModel.\n This field is only populated for tuning jobs that enable intermediate\n checkpoints. */\n checkpoints?: TunedModelCheckpoint[];\n}\n\n/** Hyperparameters for SFT. This data type is not supported in Gemini API. */\nexport declare interface SupervisedHyperParameters {\n /** Optional. Adapter size for tuning. */\n adapterSize?: AdapterSize;\n /** Optional. Batch size for tuning. This feature is only available for open source models. */\n batchSize?: string;\n /** Optional. Number of complete passes the model makes over the entire training dataset during training. */\n epochCount?: string;\n /** Optional. Learning rate for tuning. Mutually exclusive with `learning_rate_multiplier`. This feature is only available for open source models. */\n learningRate?: number;\n /** Optional. Multiplier for adjusting the default learning rate. Mutually exclusive with `learning_rate`. This feature is only available for 1P models. */\n learningRateMultiplier?: number;\n}\n\n/** Supervised tuning spec for tuning. */\nexport declare interface SupervisedTuningSpec {\n /** Optional. If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for SFT. Default is false. */\n exportLastCheckpointOnly?: boolean;\n /** Optional. Hyperparameters for SFT. */\n hyperParameters?: SupervisedHyperParameters;\n /** Required. Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. */\n trainingDatasetUri?: string;\n /** Tuning mode. */\n tuningMode?: TuningMode;\n /** Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. */\n validationDatasetUri?: string;\n}\n\n/** Hyperparameters for Preference Optimization. This data type is not supported in Gemini API. */\nexport declare interface PreferenceOptimizationHyperParameters {\n /** Optional. Adapter size for preference optimization. */\n adapterSize?: AdapterSize;\n /** Optional. Weight for KL Divergence regularization. */\n beta?: number;\n /** Optional. Number of complete passes the model makes over the entire training dataset during training. */\n epochCount?: string;\n /** Optional. Multiplier for adjusting the default learning rate. */\n learningRateMultiplier?: number;\n}\n\n/** Preference optimization tuning spec for tuning. */\nexport declare interface PreferenceOptimizationSpec {\n /** Optional. If set to true, disable intermediate checkpoints for Preference Optimization and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for Preference Optimization. Default is false. */\n exportLastCheckpointOnly?: boolean;\n /** Optional. Hyperparameters for Preference Optimization. */\n hyperParameters?: PreferenceOptimizationHyperParameters;\n /** Required. Cloud Storage path to file containing training dataset for preference optimization tuning. The dataset must be formatted as a JSONL file. */\n trainingDatasetUri?: string;\n /** Optional. Cloud Storage path to file containing validation dataset for preference optimization tuning. The dataset must be formatted as a JSONL file. */\n validationDatasetUri?: string;\n}\n\n/** The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). This data type is not supported in Gemini API. */\nexport declare interface GoogleRpcStatus {\n /** The status code, which should be an enum value of google.rpc.Code. */\n code?: number;\n /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */\n details?: Record<string, unknown>[];\n /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */\n message?: string;\n}\n\n/** A pre-tuned model for continuous tuning. This data type is not supported in Gemini API. */\nexport declare interface PreTunedModel {\n /** Output only. The name of the base model this PreTunedModel was tuned from. */\n baseModel?: string;\n /** Optional. The source checkpoint id. If not specified, the default checkpoint will be used. */\n checkpointId?: string;\n /** The resource name of the Model. E.g., a model resource name with a specified version id or alias: `projects/{project}/locations/{location}/models/{model}@{version_id}` `projects/{project}/locations/{location}/models/{model}@{alias}` Or, omit the version id to use the default version: `projects/{project}/locations/{location}/models/{model}` */\n tunedModelName?: string;\n}\n\n/** Dataset bucket used to create a histogram for the distribution given a population of values. This data type is not supported in Gemini API. */\nexport declare interface DatasetDistributionDistributionBucket {\n /** Output only. Number of values in the bucket. */\n count?: string;\n /** Output only. Left bound of the bucket. */\n left?: number;\n /** Output only. Right bound of the bucket. */\n right?: number;\n}\n\n/** Distribution computed over a tuning dataset. This data type is not supported in Gemini API. */\nexport declare interface DatasetDistribution {\n /** Output only. Defines the histogram bucket. */\n buckets?: DatasetDistributionDistributionBucket[];\n /** Output only. The maximum of the population values. */\n max?: number;\n /** Output only. The arithmetic mean of the values in the population. */\n mean?: number;\n /** Output only. The median of the values in the population. */\n median?: number;\n /** Output only. The minimum of the population values. */\n min?: number;\n /** Output only. The 5th percentile of the values in the population. */\n p5?: number;\n /** Output only. The 95th percentile of the values in the population. */\n p95?: number;\n /** Output only. Sum of a given population of values. */\n sum?: number;\n}\n\n/** Statistics computed over a tuning dataset. This data type is not supported in Gemini API. */\nexport declare interface DatasetStats {\n /** Output only. Number of billable characters in the tuning dataset. */\n totalBillableCharacterCount?: string;\n /** Output only. Number of tuning characters in the tuning dataset. */\n totalTuningCharacterCount?: string;\n /** Output only. Number of examples in the tuning dataset. */\n tuningDatasetExampleCount?: string;\n /** Output only. Number of tuning steps for this Tuning Job. */\n tuningStepCount?: string;\n /** Output only. Sample user messages in the training dataset uri. */\n userDatasetExamples?: Content[];\n /** Output only. Dataset distributions for the user input tokens. */\n userInputTokenDistribution?: DatasetDistribution;\n /** Output only. Dataset distributions for the messages per example. */\n userMessagePerExampleDistribution?: DatasetDistribution;\n /** Output only. Dataset distributions for the user output tokens. */\n userOutputTokenDistribution?: DatasetDistribution;\n}\n\n/** Statistics computed for datasets used for distillation. This data type is not supported in Gemini API. */\nexport declare interface DistillationDataStats {\n /** Output only. Statistics computed for the training dataset. */\n trainingDatasetStats?: DatasetStats;\n}\n\n/** Completion and its preference score. This data type is not supported in Gemini API. */\nexport declare interface GeminiPreferenceExampleCompletion {\n /** Single turn completion for the given prompt. */\n completion?: Content;\n /** The score for the given completion. */\n score?: number;\n}\n\n/** Input example for preference optimization. This data type is not supported in Gemini API. */\nexport declare interface GeminiPreferenceExample {\n /** List of completions for a given prompt. */\n completions?: GeminiPreferenceExampleCompletion[];\n /** Multi-turn contents that represents the Prompt. */\n contents?: Content[];\n}\n\n/** Statistics computed for datasets used for preference optimization. This data type is not supported in Gemini API. */\nexport declare interface PreferenceOptimizationDataStats {\n /** Output only. Dataset distributions for scores variance per example. */\n scoreVariancePerExampleDistribution?: DatasetDistribution;\n /** Output only. Dataset distributions for scores. */\n scoresDistribution?: DatasetDistribution;\n /** Output only. Number of billable tokens in the tuning dataset. */\n totalBillableTokenCount?: string;\n /** Output only. Number of examples in the tuning dataset. */\n tuningDatasetExampleCount?: string;\n /** Output only. Number of tuning steps for this Tuning Job. */\n tuningStepCount?: string;\n /** Output only. Sample user examples in the training dataset. */\n userDatasetExamples?: GeminiPreferenceExample[];\n /** Output only. Dataset distributions for the user input tokens. */\n userInputTokenDistribution?: DatasetDistribution;\n /** Output only. Dataset distributions for the user output tokens. */\n userOutputTokenDistribution?: DatasetDistribution;\n}\n\n/** Dataset bucket used to create a histogram for the distribution given a population of values. This data type is not supported in Gemini API. */\nexport declare interface SupervisedTuningDatasetDistributionDatasetBucket {\n /** Output only. Number of values in the bucket. */\n count?: number;\n /** Output only. Left bound of the bucket. */\n left?: number;\n /** Output only. Right bound of the bucket. */\n right?: number;\n}\n\n/** Dataset distribution for Supervised Tuning. This data type is not supported in Gemini API. */\nexport declare interface SupervisedTuningDatasetDistribution {\n /** Output only. Sum of a given population of values that are billable. */\n billableSum?: string;\n /** Output only. Defines the histogram bucket. */\n buckets?: SupervisedTuningDatasetDistributionDatasetBucket[];\n /** Output only. The maximum of the population values. */\n max?: number;\n /** Output only. The arithmetic mean of the values in the population. */\n mean?: number;\n /** Output only. The median of the values in the population. */\n median?: number;\n /** Output only. The minimum of the population values. */\n min?: number;\n /** Output only. The 5th percentile of the values in the population. */\n p5?: number;\n /** Output only. The 95th percentile of the values in the population. */\n p95?: number;\n /** Output only. Sum of a given population of values. */\n sum?: string;\n}\n\n/** Tuning data statistics for Supervised Tuning. This data type is not supported in Gemini API. */\nexport declare interface SupervisedTuningDataStats {\n /** Output only. For each index in `truncated_example_indices`, the user-facing reason why the example was dropped. */\n droppedExampleReasons?: string[];\n /** Output only. Number of billable characters in the tuning dataset. */\n totalBillableCharacterCount?: string;\n /** Output only. Number of billable tokens in the tuning dataset. */\n totalBillableTokenCount?: string;\n /** Output only. The number of examples in the dataset that have been dropped. An example can be dropped for reasons including: too many tokens, contains an invalid image, contains too many images, etc. */\n totalTruncatedExampleCount?: string;\n /** Output only. Number of tuning characters in the tuning dataset. */\n totalTuningCharacterCount?: string;\n /** Output only. A partial sample of the indices (starting from 1) of the dropped examples. */\n truncatedExampleIndices?: string[];\n /** Output only. Number of examples in the tuning dataset. */\n tuningDatasetExampleCount?: string;\n /** Output only. Number of tuning steps for this Tuning Job. */\n tuningStepCount?: string;\n /** Output only. Sample user messages in the training dataset uri. */\n userDatasetExamples?: Content[];\n /** Output only. Dataset distributions for the user input tokens. */\n userInputTokenDistribution?: SupervisedTuningDatasetDistribution;\n /** Output only. Dataset distributions for the messages per example. */\n userMessagePerExampleDistribution?: SupervisedTuningDatasetDistribution;\n /** Output only. Dataset distributions for the user output tokens. */\n userOutputTokenDistribution?: SupervisedTuningDatasetDistribution;\n}\n\n/** The tuning data statistic values for TuningJob. This data type is not supported in Gemini API. */\nexport declare interface TuningDataStats {\n /** Output only. Statistics for distillation. */\n distillationDataStats?: DistillationDataStats;\n /** Output only. Statistics for preference optimization. */\n preferenceOptimizationDataStats?: PreferenceOptimizationDataStats;\n /** The SFT Tuning data stats. */\n supervisedTuningDataStats?: SupervisedTuningDataStats;\n}\n\n/** Represents a customer-managed encryption key spec that can be applied to a top-level resource. This data type is not supported in Gemini API. */\nexport declare interface EncryptionSpec {\n /** Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. The key needs to be in the same region as where the compute resource is created. */\n kmsKeyName?: string;\n}\n\n/** Tuning spec for Partner models. This data type is not supported in Gemini API. */\nexport declare interface PartnerModelTuningSpec {\n /** Hyperparameters for tuning. The accepted hyper_parameters and their valid range of values will differ depending on the base model. */\n hyperParameters?: Record<string, unknown>;\n /** Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */\n trainingDatasetUri?: string;\n /** Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */\n validationDatasetUri?: string;\n}\n\n/** Hyperparameters for Veo. This data type is not supported in Gemini API. */\nexport declare interface VeoHyperParameters {\n /** Optional. Number of complete passes the model makes over the entire training dataset during training. */\n epochCount?: string;\n /** Optional. Multiplier for adjusting the default learning rate. */\n learningRateMultiplier?: number;\n /** Optional. The tuning task. Either I2V or T2V. */\n tuningTask?: TuningTask;\n}\n\n/** Tuning Spec for Veo Model Tuning. This data type is not supported in Gemini API. */\nexport declare interface VeoTuningSpec {\n /** Optional. Hyperparameters for Veo. */\n hyperParameters?: VeoHyperParameters;\n /** Required. Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. */\n trainingDatasetUri?: string;\n /** Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. */\n validationDatasetUri?: string;\n}\n\n/** A tuning job. */\nexport declare interface TuningJob {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** Output only. Identifier. Resource name of a TuningJob. Format: `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` */\n name?: string;\n /** Output only. The detailed state of the job. */\n state?: JobState;\n /** Output only. Time when the TuningJob was created. */\n createTime?: string;\n /** Output only. Time when the TuningJob for the first time entered the `JOB_STATE_RUNNING` state. */\n startTime?: string;\n /** Output only. Time when the TuningJob entered any of the following JobStates: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`, `JOB_STATE_EXPIRED`. */\n endTime?: string;\n /** Output only. Time when the TuningJob was most recently updated. */\n updateTime?: string;\n /** Output only. Only populated when job's state is `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. */\n error?: GoogleRpcStatus;\n /** Optional. The description of the TuningJob. */\n description?: string;\n /** The base model that is being tuned. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). */\n baseModel?: string;\n /** Output only. The tuned model resources associated with this TuningJob. */\n tunedModel?: TunedModel;\n /** The pre-tuned model for continuous tuning. */\n preTunedModel?: PreTunedModel;\n /** Tuning Spec for Supervised Fine Tuning. */\n supervisedTuningSpec?: SupervisedTuningSpec;\n /** Tuning Spec for Preference Optimization. */\n preferenceOptimizationSpec?: PreferenceOptimizationSpec;\n /** Output only. The tuning data statistics associated with this TuningJob. */\n tuningDataStats?: TuningDataStats;\n /** Customer-managed encryption key options for a TuningJob. If this is set, then all resources created by the TuningJob will be encrypted with the provided encryption key. */\n encryptionSpec?: EncryptionSpec;\n /** Tuning Spec for open sourced and third party Partner models. */\n partnerModelTuningSpec?: PartnerModelTuningSpec;\n /** Optional. The user-provided path to custom model weights. Set this field to tune a custom model. The path must be a Cloud Storage directory that contains the model weights in .safetensors format along with associated model metadata files. If this field is set, the base_model field must still be set to indicate which base model the custom model is derived from. This feature is only available for open source models. */\n customBaseModel?: string;\n /** Output only. The Experiment associated with this TuningJob. */\n experiment?: string;\n /** Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. */\n labels?: Record<string, string>;\n /** Optional. Cloud Storage path to the directory where tuning job outputs are written to. This field is only available and required for open source models. */\n outputUri?: string;\n /** Output only. The resource name of the PipelineJob associated with the TuningJob. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`. */\n pipelineJob?: string;\n /** The service account that the tuningJob workload runs as. If not specified, the Vertex AI Secure Fine-Tuned Service Agent in the project will be used. See https://cloud.google.com/iam/docs/service-agents#vertex-ai-secure-fine-tuning-service-agent Users starting the pipeline must have the `iam.serviceAccounts.actAs` permission on this service account. */\n serviceAccount?: string;\n /** Optional. The display name of the TunedModel. The name can be up to 128 characters long and can consist of any UTF-8 characters. For continuous tuning, tuned_model_display_name will by default use the same display name as the pre-tuned model. If a new display name is provided, the tuning job will create a new model instead of a new version. */\n tunedModelDisplayName?: string;\n /** Tuning Spec for Veo Tuning. */\n veoTuningSpec?: VeoTuningSpec;\n}\n\n/** Configuration for the list tuning jobs method. */\nexport declare interface ListTuningJobsConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n pageSize?: number;\n pageToken?: string;\n filter?: string;\n}\n\n/** Parameters for the list tuning jobs method. */\nexport declare interface ListTuningJobsParameters {\n config?: ListTuningJobsConfig;\n}\n\n/** Response for the list tuning jobs method. */\nexport class ListTuningJobsResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** A token to retrieve the next page of results. Pass to ListTuningJobsRequest.page_token to obtain that page. */\n nextPageToken?: string;\n /** List of TuningJobs in the requested page. */\n tuningJobs?: TuningJob[];\n}\n\n/** Optional parameters for tunings.cancel method. */\nexport declare interface CancelTuningJobConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Parameters for the cancel method. */\nexport declare interface CancelTuningJobParameters {\n /** The resource name of the tuning job. */\n name: string;\n /** Optional parameters for the request. */\n config?: CancelTuningJobConfig;\n}\n\n/** Empty response for tunings.cancel method. */\nexport class CancelTuningJobResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n}\n\n/** A single example for tuning. This data type is not supported in Vertex AI. */\nexport declare interface TuningExample {\n /** Required. The expected model output. */\n output?: string;\n /** Optional. Text model input. */\n textInput?: string;\n}\n\n/** Supervised fine-tuning training dataset. */\nexport declare interface TuningDataset {\n /** GCS URI of the file containing training dataset in JSONL format. */\n gcsUri?: string;\n /** The resource name of the Vertex Multimodal Dataset that is used as training dataset. Example: 'projects/my-project-id-or-number/locations/my-location/datasets/my-dataset-id'. */\n vertexDatasetResource?: string;\n /** Inline examples with simple input/output text. */\n examples?: TuningExample[];\n}\n\nexport declare interface TuningValidationDataset {\n /** GCS URI of the file containing validation dataset in JSONL format. */\n gcsUri?: string;\n /** The resource name of the Vertex Multimodal Dataset that is used as validation dataset. Example: 'projects/my-project-id-or-number/locations/my-location/datasets/my-dataset-id'. */\n vertexDatasetResource?: string;\n}\n\n/** Fine-tuning job creation request - optional fields. */\nexport declare interface CreateTuningJobConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** The method to use for tuning (SUPERVISED_FINE_TUNING or PREFERENCE_TUNING). If not set, the default method (SFT) will be used. */\n method?: TuningMethod;\n /** Validation dataset for tuning. The dataset must be formatted as a JSONL file. */\n validationDataset?: TuningValidationDataset;\n /** The display name of the tuned Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. */\n tunedModelDisplayName?: string;\n /** The description of the TuningJob */\n description?: string;\n /** Number of complete passes the model makes over the entire training dataset during training. */\n epochCount?: number;\n /** Multiplier for adjusting the default learning rate. */\n learningRateMultiplier?: number;\n /** If set to true, disable intermediate checkpoints and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints. */\n exportLastCheckpointOnly?: boolean;\n /** The optional checkpoint id of the pre-tuned model to use for tuning, if applicable. */\n preTunedModelCheckpointId?: string;\n /** Adapter size for tuning. */\n adapterSize?: AdapterSize;\n /** The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. */\n batchSize?: number;\n /** The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples. */\n learningRate?: number;\n /** Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. */\n labels?: Record<string, string>;\n /** Weight for KL Divergence regularization, Preference Optimization tuning only. */\n beta?: number;\n}\n\n/** Fine-tuning job creation parameters - optional fields. */\nexport declare interface CreateTuningJobParametersPrivate {\n /** The base model that is being tuned, e.g., \"gemini-2.5-flash\". */\n baseModel?: string;\n /** The PreTunedModel that is being tuned. */\n preTunedModel?: PreTunedModel;\n /** Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */\n trainingDataset: TuningDataset;\n /** Configuration for the tuning job. */\n config?: CreateTuningJobConfig;\n}\n\n/** A long-running operation. */\nexport declare interface TuningOperation {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */\n name?: string;\n /** Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */\n metadata?: Record<string, unknown>;\n /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */\n done?: boolean;\n /** The error result of the operation in case of failure or cancellation. */\n error?: Record<string, unknown>;\n}\n\n/** Optional configuration for cached content creation. */\nexport declare interface CreateCachedContentConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** The TTL for this resource. The expiration time is computed: now + TTL. It is a duration string, with up to nine fractional digits, terminated by 's'. Example: \"3.5s\". */\n ttl?: string;\n /** Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z. */\n expireTime?: string;\n /** The user-generated meaningful display name of the cached content.\n */\n displayName?: string;\n /** The content to cache.\n */\n contents?: ContentListUnion;\n /** Developer set system instruction.\n */\n systemInstruction?: ContentUnion;\n /** A list of `Tools` the model may use to generate the next response.\n */\n tools?: Tool[];\n /** Configuration for the tools to use. This config is shared for all tools.\n */\n toolConfig?: ToolConfig;\n /** The Cloud KMS resource identifier of the customer managed\n encryption key used to protect a resource.\n The key needs to be in the same region as where the compute resource is\n created. See\n https://cloud.google.com/vertex-ai/docs/general/cmek for more\n details. If this is set, then all created CachedContent objects\n will be encrypted with the provided encryption key.\n Allowed formats: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\n */\n kmsKeyName?: string;\n}\n\n/** Parameters for caches.create method. */\nexport declare interface CreateCachedContentParameters {\n /** ID of the model to use. Example: gemini-2.0-flash */\n model: string;\n /** Configuration that contains optional parameters.\n */\n config?: CreateCachedContentConfig;\n}\n\n/** Metadata on the usage of the cached content. */\nexport declare interface CachedContentUsageMetadata {\n /** Duration of audio in seconds. This field is not supported in Gemini API. */\n audioDurationSeconds?: number;\n /** Number of images. This field is not supported in Gemini API. */\n imageCount?: number;\n /** Number of text characters. This field is not supported in Gemini API. */\n textCount?: number;\n /** Total number of tokens that the cached content consumes. */\n totalTokenCount?: number;\n /** Duration of video in seconds. This field is not supported in Gemini API. */\n videoDurationSeconds?: number;\n}\n\n/** A resource used in LLM queries for users to explicitly specify what to cache. */\nexport declare interface CachedContent {\n /** The server-generated resource name of the cached content. */\n name?: string;\n /** The user-generated meaningful display name of the cached content. */\n displayName?: string;\n /** The name of the publisher model to use for cached content. */\n model?: string;\n /** Creation time of the cache entry. */\n createTime?: string;\n /** When the cache entry was last updated in UTC time. */\n updateTime?: string;\n /** Expiration time of the cached content. */\n expireTime?: string;\n /** Metadata on the usage of the cached content. */\n usageMetadata?: CachedContentUsageMetadata;\n}\n\n/** Optional parameters for caches.get method. */\nexport declare interface GetCachedContentConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Parameters for caches.get method. */\nexport declare interface GetCachedContentParameters {\n /** The server-generated resource name of the cached content.\n */\n name: string;\n /** Optional parameters for the request.\n */\n config?: GetCachedContentConfig;\n}\n\n/** Optional parameters for caches.delete method. */\nexport declare interface DeleteCachedContentConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Parameters for caches.delete method. */\nexport declare interface DeleteCachedContentParameters {\n /** The server-generated resource name of the cached content.\n */\n name: string;\n /** Optional parameters for the request.\n */\n config?: DeleteCachedContentConfig;\n}\n\n/** Empty response for caches.delete method. */\nexport class DeleteCachedContentResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n}\n\n/** Optional parameters for caches.update method. */\nexport declare interface UpdateCachedContentConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** The TTL for this resource. The expiration time is computed: now + TTL. It is a duration string, with up to nine fractional digits, terminated by 's'. Example: \"3.5s\". */\n ttl?: string;\n /** Timestamp of when this resource is considered expired. Uses RFC 3339 format, Example: 2014-10-02T15:01:23Z. */\n expireTime?: string;\n}\n\nexport declare interface UpdateCachedContentParameters {\n /** The server-generated resource name of the cached content.\n */\n name: string;\n /** Configuration that contains optional parameters.\n */\n config?: UpdateCachedContentConfig;\n}\n\n/** Config for caches.list method. */\nexport declare interface ListCachedContentsConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n pageSize?: number;\n pageToken?: string;\n}\n\n/** Parameters for caches.list method. */\nexport declare interface ListCachedContentsParameters {\n /** Configuration that contains optional parameters.\n */\n config?: ListCachedContentsConfig;\n}\n\nexport class ListCachedContentsResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n nextPageToken?: string;\n /** List of cached contents.\n */\n cachedContents?: CachedContent[];\n}\n\n/** Optional Config. */\nexport declare interface GetDocumentConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Parameters for documents.get. */\nexport declare interface GetDocumentParameters {\n /** The resource name of the Document.\n Example: fileSearchStores/file-search-store-foo/documents/documents-bar */\n name: string;\n /** Optional parameters for the request. */\n config?: GetDocumentConfig;\n}\n\n/** User provided string values assigned to a single metadata key. This data type is not supported in Vertex AI. */\nexport declare interface StringList {\n /** The string values of the metadata to store. */\n values?: string[];\n}\n\n/** User provided metadata stored as key-value pairs. This data type is not supported in Vertex AI. */\nexport declare interface CustomMetadata {\n /** Required. The key of the metadata to store. */\n key?: string;\n /** The numeric value of the metadata to store. */\n numericValue?: number;\n /** The StringList value of the metadata to store. */\n stringListValue?: StringList;\n /** The string value of the metadata to store. */\n stringValue?: string;\n}\n\n/** A Document is a collection of Chunks. */\nexport declare interface Document {\n /** The resource name of the Document.\n Example: fileSearchStores/file-search-store-foo/documents/documents-bar */\n name?: string;\n /** The human-readable display name for the Document. */\n displayName?: string;\n /** The current state of the Document. */\n state?: DocumentState;\n /** The size of the Document in bytes. */\n sizeBytes?: string;\n /** The MIME type of the Document. */\n mimeType?: string;\n /** Output only. The Timestamp of when the `Document` was created. */\n createTime?: string;\n /** Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. */\n customMetadata?: CustomMetadata[];\n /** Output only. The Timestamp of when the `Document` was last updated. */\n updateTime?: string;\n}\n\n/** Config for optional parameters. */\nexport declare interface DeleteDocumentConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** If set to true, any `Chunk`s and objects related to this `Document` will\n also be deleted.\n */\n force?: boolean;\n}\n\n/** Config for documents.delete parameters. */\nexport declare interface DeleteDocumentParameters {\n /** The resource name of the Document.\n Example: fileSearchStores/file-search-store-foo/documents/documents-bar */\n name: string;\n /** Optional parameters for the request. */\n config?: DeleteDocumentConfig;\n}\n\n/** Config for optional parameters. */\nexport declare interface ListDocumentsConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n pageSize?: number;\n pageToken?: string;\n}\n\n/** Config for documents.list parameters. */\nexport declare interface ListDocumentsParameters {\n /** The resource name of the FileSearchStores. Example: `fileSearchStore/file-search-store-foo` */\n parent: string;\n config?: ListDocumentsConfig;\n}\n\n/** Config for documents.list return value. */\nexport class ListDocumentsResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. */\n nextPageToken?: string;\n /** The returned `Document`s. */\n documents?: Document[];\n}\n\n/** Optional parameters for creating a file search store. */\nexport declare interface CreateFileSearchStoreConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** The human-readable display name for the file search store.\n */\n displayName?: string;\n}\n\n/** Config for file_search_stores.create parameters. */\nexport declare interface CreateFileSearchStoreParameters {\n /** Optional parameters for creating a file search store.\n */\n config?: CreateFileSearchStoreConfig;\n}\n\n/** A collection of Documents. */\nexport declare interface FileSearchStore {\n /** The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123` */\n name?: string;\n /** The human-readable display name for the FileSearchStore. */\n displayName?: string;\n /** The Timestamp of when the FileSearchStore was created. */\n createTime?: string;\n /** The Timestamp of when the FileSearchStore was last updated. */\n updateTime?: string;\n /** The number of documents in the FileSearchStore that are active and ready for retrieval. */\n activeDocumentsCount?: string;\n /** The number of documents in the FileSearchStore that are being processed. */\n pendingDocumentsCount?: string;\n /** The number of documents in the FileSearchStore that have failed processing. */\n failedDocumentsCount?: string;\n /** The size of raw bytes ingested into the FileSearchStore. This is the\n total size of all the documents in the FileSearchStore. */\n sizeBytes?: string;\n}\n\n/** Optional parameters for getting a FileSearchStore. */\nexport declare interface GetFileSearchStoreConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Config for file_search_stores.get parameters. */\nexport declare interface GetFileSearchStoreParameters {\n /** The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123` */\n name: string;\n /** Optional parameters for the request. */\n config?: GetFileSearchStoreConfig;\n}\n\n/** Optional parameters for deleting a FileSearchStore. */\nexport declare interface DeleteFileSearchStoreConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** If set to true, any Documents and objects related to this FileSearchStore will also be deleted.\n If false (the default), a FAILED_PRECONDITION error will be returned if\n the FileSearchStore contains any Documents.\n */\n force?: boolean;\n}\n\n/** Config for file_search_stores.delete parameters. */\nexport declare interface DeleteFileSearchStoreParameters {\n /** The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123` */\n name: string;\n /** Optional parameters for the request. */\n config?: DeleteFileSearchStoreConfig;\n}\n\n/** Optional parameters for listing FileSearchStore. */\nexport declare interface ListFileSearchStoresConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n pageSize?: number;\n pageToken?: string;\n}\n\n/** Config for file_search_stores.list parameters. */\nexport declare interface ListFileSearchStoresParameters {\n /** Optional parameters for the list request. */\n config?: ListFileSearchStoresConfig;\n}\n\n/** Config for file_search_stores.list return value. */\nexport class ListFileSearchStoresResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n nextPageToken?: string;\n /** The returned file search stores. */\n fileSearchStores?: FileSearchStore[];\n}\n\n/** Configuration for a white space chunking algorithm. */\nexport declare interface WhiteSpaceConfig {\n /** Maximum number of tokens per chunk. */\n maxTokensPerChunk?: number;\n /** Maximum number of overlapping tokens between two adjacent chunks. */\n maxOverlapTokens?: number;\n}\n\n/** Config for telling the service how to chunk the file. */\nexport declare interface ChunkingConfig {\n /** White space chunking configuration. */\n whiteSpaceConfig?: WhiteSpaceConfig;\n}\n\n/** Optional parameters for uploading a file to a FileSearchStore. */\nexport declare interface UploadToFileSearchStoreConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** MIME type of the file to be uploaded. If not provided, it will be inferred from the file extension. */\n mimeType?: string;\n /** Display name of the created document. */\n displayName?: string;\n /** User provided custom metadata stored as key-value pairs used for querying. */\n customMetadata?: CustomMetadata[];\n /** Config for telling the service how to chunk the file. */\n chunkingConfig?: ChunkingConfig;\n}\n\n/** Generates the parameters for the private _upload_to_file_search_store method. */\nexport declare interface UploadToFileSearchStoreParameters {\n /** The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123` */\n fileSearchStoreName: string;\n /** Used to override the default configuration. */\n config?: UploadToFileSearchStoreConfig;\n}\n\n/** Response for the resumable upload method. */\nexport class UploadToFileSearchStoreResumableResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n}\n\n/** Optional parameters for importing a file. */\nexport declare interface ImportFileConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** User provided custom metadata stored as key-value pairs used for querying. */\n customMetadata?: CustomMetadata[];\n /** Config for telling the service how to chunk the file. */\n chunkingConfig?: ChunkingConfig;\n}\n\n/** Config for file_search_stores.import_file parameters. */\nexport declare interface ImportFileParameters {\n /** The resource name of the FileSearchStore. Example: `fileSearchStores/my-file-search-store-123` */\n fileSearchStoreName: string;\n /** The name of the File API File to import. Example: `files/abc-123` */\n fileName: string;\n /** Optional parameters for the request. */\n config?: ImportFileConfig;\n}\n\n/** Response for ImportFile to import a File API file with a file search store. */\nexport class ImportFileResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** The name of the FileSearchStore containing Documents. */\n parent?: string;\n /** The identifier for the Document imported. */\n documentName?: string;\n}\n\n/** Long-running operation for importing a file to a FileSearchStore. */\nexport class ImportFileOperation implements Operation<ImportFileResponse> {\n /** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */\n name?: string;\n /** Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */\n metadata?: Record<string, unknown>;\n /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */\n done?: boolean;\n /** The error result of the operation in case of failure or cancellation. */\n error?: Record<string, unknown>;\n /** The result of the ImportFile operation, available when the operation is done. */\n response?: ImportFileResponse;\n\n /**\n * Instantiates an Operation of the same type as the one being called with the fields set from the API response.\n * @internal\n */\n _fromAPIResponse({\n apiResponse,\n _isVertexAI,\n }: OperationFromAPIResponseParameters): Operation<ImportFileResponse> {\n const operation = new ImportFileOperation();\n\n const op = apiResponse as unknown as ImportFileOperation;\n const response = importFileOperationFromMldev(op);\n Object.assign(operation, response);\n return operation;\n }\n /** The full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n}\n\nexport /** Used to override the default configuration. */\ndeclare interface ListFilesConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n pageSize?: number;\n pageToken?: string;\n}\n\n/** Generates the parameters for the list method. */\nexport declare interface ListFilesParameters {\n /** Used to override the default configuration. */\n config?: ListFilesConfig;\n}\n\n/** Status of a File that uses a common error model. */\nexport declare interface FileStatus {\n /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */\n details?: Record<string, unknown>[];\n /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */\n message?: string;\n /** The status code. 0 for OK, 1 for CANCELLED */\n code?: number;\n}\n\n/** A file uploaded to the API. */\nexport declare interface File {\n /** The `File` resource name. The ID (name excluding the \"files/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456` */\n name?: string;\n /** Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: 'Welcome Image' */\n displayName?: string;\n /** Output only. MIME type of the file. */\n mimeType?: string;\n /** Output only. Size of the file in bytes. */\n sizeBytes?: string;\n /** Output only. The timestamp of when the `File` was created. */\n createTime?: string;\n /** Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire. */\n expirationTime?: string;\n /** Output only. The timestamp of when the `File` was last updated. */\n updateTime?: string;\n /** Output only. SHA-256 hash of the uploaded bytes. The hash value is encoded in base64 format. */\n sha256Hash?: string;\n /** Output only. The URI of the `File`. */\n uri?: string;\n /** Output only. The URI of the `File`, only set for downloadable (generated) files. */\n downloadUri?: string;\n /** Output only. Processing state of the File. */\n state?: FileState;\n /** Output only. The source of the `File`. */\n source?: FileSource;\n /** Output only. Metadata for a video. */\n videoMetadata?: Record<string, unknown>;\n /** Output only. Error status if File processing failed. */\n error?: FileStatus;\n}\n\n/** Response for the list files method. */\nexport class ListFilesResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** A token that can be sent as a `page_token` into a subsequent `ListFiles` call. */\n nextPageToken?: string;\n /** The list of `File`s. */\n files?: File[];\n}\n\n/** Used to override the default configuration. */\nexport declare interface CreateFileConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Generates the parameters for the private _create method. */\nexport declare interface CreateFileParameters {\n /** The file to be uploaded.\n mime_type: (Required) The MIME type of the file. Must be provided.\n name: (Optional) The name of the file in the destination (e.g.\n 'files/sample-image').\n display_name: (Optional) The display name of the file.\n */\n file: File;\n /** Used to override the default configuration. */\n config?: CreateFileConfig;\n}\n\n/** Response for the create file method. */\nexport class CreateFileResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n}\n\n/** Used to override the default configuration. */\nexport declare interface GetFileConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Generates the parameters for the get method. */\nexport declare interface GetFileParameters {\n /** The name identifier for the file to retrieve. */\n name: string;\n /** Used to override the default configuration. */\n config?: GetFileConfig;\n}\n\n/** Used to override the default configuration. */\nexport declare interface DeleteFileConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Generates the parameters for the get method. */\nexport declare interface DeleteFileParameters {\n /** The name identifier for the file to be deleted. */\n name: string;\n /** Used to override the default configuration. */\n config?: DeleteFileConfig;\n}\n\n/** Response for the delete file method. */\nexport class DeleteFileResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n}\n\n/** Config for inlined request. */\nexport declare interface InlinedRequest {\n /** ID of the model to use. For a list of models, see `Google models\n <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. */\n model?: string;\n /** Content of the request.\n */\n contents?: ContentListUnion;\n /** The metadata to be associated with the request. */\n metadata?: Record<string, string>;\n /** Configuration that contains optional model parameters.\n */\n config?: GenerateContentConfig;\n}\n\n/** Config for `src` parameter. */\nexport declare interface BatchJobSource {\n /** Storage format of the input files. Must be one of:\n 'jsonl', 'bigquery'.\n */\n format?: string;\n /** The Google Cloud Storage URIs to input files.\n */\n gcsUri?: string[];\n /** The BigQuery URI to input table.\n */\n bigqueryUri?: string;\n /** The Gemini Developer API's file resource name of the input data\n (e.g. \"files/12345\").\n */\n fileName?: string;\n /** The Gemini Developer API's inlined input data to run batch job.\n */\n inlinedRequests?: InlinedRequest[];\n}\n\n/** Job error. */\nexport declare interface JobError {\n /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */\n details?: string[];\n /** The status code. */\n code?: number;\n /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the `details` field. */\n message?: string;\n}\n\n/** Config for `inlined_responses` parameter. */\nexport class InlinedResponse {\n /** The response to the request.\n */\n response?: GenerateContentResponse;\n /** The error encountered while processing the request.\n */\n error?: JobError;\n}\n\n/** Config for `response` parameter. */\nexport class SingleEmbedContentResponse {\n /** The response to the request.\n */\n embedding?: ContentEmbedding;\n /** The error encountered while processing the request.\n */\n tokenCount?: string;\n}\n\n/** Config for `inlined_embedding_responses` parameter. */\nexport class InlinedEmbedContentResponse {\n /** The response to the request.\n */\n response?: SingleEmbedContentResponse;\n /** The error encountered while processing the request.\n */\n error?: JobError;\n}\n\n/** Config for `des` parameter. */\nexport declare interface BatchJobDestination {\n /** Storage format of the output files. Must be one of:\n 'jsonl', 'bigquery'.\n */\n format?: string;\n /** The Google Cloud Storage URI to the output file.\n */\n gcsUri?: string;\n /** The BigQuery URI to the output table.\n */\n bigqueryUri?: string;\n /** The Gemini Developer API's file resource name of the output data\n (e.g. \"files/12345\"). The file will be a JSONL file with a single response\n per line. The responses will be GenerateContentResponse messages formatted\n as JSON. The responses will be written in the same order as the input\n requests.\n */\n fileName?: string;\n /** The responses to the requests in the batch. Returned when the batch was\n built using inlined requests. The responses will be in the same order as\n the input requests.\n */\n inlinedResponses?: InlinedResponse[];\n /** The responses to the requests in the batch. Returned when the batch was\n built using inlined requests. The responses will be in the same order as\n the input requests.\n */\n inlinedEmbedContentResponses?: InlinedEmbedContentResponse[];\n}\n\n/** Config for optional parameters. */\nexport declare interface CreateBatchJobConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** The user-defined name of this BatchJob.\n */\n displayName?: string;\n /** GCS or BigQuery URI prefix for the output predictions. Example:\n \"gs://path/to/output/data\" or \"bq://projectId.bqDatasetId.bqTableId\".\n */\n dest?: BatchJobDestinationUnion;\n}\n\n/** Config for batches.create parameters. */\nexport declare interface CreateBatchJobParameters {\n /** The name of the model to produces the predictions via the BatchJob.\n */\n model?: string;\n /** GCS URI(-s) or BigQuery URI to your input data to run batch job.\n Example: \"gs://path/to/input/data\" or \"bq://projectId.bqDatasetId.bqTableId\".\n */\n src: BatchJobSourceUnion;\n /** Optional parameters for creating a BatchJob.\n */\n config?: CreateBatchJobConfig;\n}\n\n/** Success and error statistics of processing multiple entities (for example, DataItems or structured data rows) in batch. This data type is not supported in Gemini API. */\nexport declare interface CompletionStats {\n /** Output only. The number of entities for which any error was encountered. */\n failedCount?: string;\n /** Output only. In cases when enough errors are encountered a job, pipeline, or operation may be failed as a whole. Below is the number of entities for which the processing had not been finished (either in successful or failed state). Set to -1 if the number is unknown (for example, the operation failed before the total entity number could be collected). */\n incompleteCount?: string;\n /** Output only. The number of entities that had been processed successfully. */\n successfulCount?: string;\n /** Output only. The number of the successful forecast points that are generated by the forecasting model. This is ONLY used by the forecasting batch prediction. */\n successfulForecastPointCount?: string;\n}\n\n/** Config for batches.create return value. */\nexport declare interface BatchJob {\n /** The resource name of the BatchJob. Output only.\".\n */\n name?: string;\n /** The display name of the BatchJob.\n */\n displayName?: string;\n /** The state of the BatchJob.\n */\n state?: JobState;\n /** Output only. Only populated when the job's state is JOB_STATE_FAILED or JOB_STATE_CANCELLED. */\n error?: JobError;\n /** The time when the BatchJob was created.\n */\n createTime?: string;\n /** Output only. Time when the Job for the first time entered the `JOB_STATE_RUNNING` state. */\n startTime?: string;\n /** The time when the BatchJob was completed. This field is for Vertex AI only.\n */\n endTime?: string;\n /** The time when the BatchJob was last updated.\n */\n updateTime?: string;\n /** The name of the model that produces the predictions via the BatchJob.\n */\n model?: string;\n /** Configuration for the input data. This field is for Vertex AI only.\n */\n src?: BatchJobSource;\n /** Configuration for the output data.\n */\n dest?: BatchJobDestination;\n /** Statistics on completed and failed prediction instances. This field is for Vertex AI only.\n */\n completionStats?: CompletionStats;\n}\n\n/** Parameters for the embed_content method. */\nexport declare interface EmbedContentBatch {\n /** The content to embed. Only the `parts.text` fields will be counted.\n */\n contents?: ContentListUnion;\n /** Configuration that contains optional parameters.\n */\n config?: EmbedContentConfig;\n}\n\nexport declare interface EmbeddingsBatchJobSource {\n /** The Gemini Developer API's file resource name of the input data\n (e.g. \"files/12345\").\n */\n fileName?: string;\n /** The Gemini Developer API's inlined input data to run batch job.\n */\n inlinedRequests?: EmbedContentBatch;\n}\n\n/** Config for optional parameters. */\nexport declare interface CreateEmbeddingsBatchJobConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** The user-defined name of this BatchJob.\n */\n displayName?: string;\n}\n\n/** Config for batches.create parameters. */\nexport declare interface CreateEmbeddingsBatchJobParameters {\n /** The name of the model to produces the predictions via the BatchJob.\n */\n model?: string;\n /** input data to run batch job\".\n */\n src: EmbeddingsBatchJobSource;\n /** Optional parameters for creating a BatchJob.\n */\n config?: CreateEmbeddingsBatchJobConfig;\n}\n\n/** Optional parameters. */\nexport declare interface GetBatchJobConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Config for batches.get parameters. */\nexport declare interface GetBatchJobParameters {\n /** A fully-qualified BatchJob resource name or ID.\n Example: \"projects/.../locations/.../batchPredictionJobs/456\"\n or \"456\" when project and location are initialized in the client.\n */\n name: string;\n /** Optional parameters for the request. */\n config?: GetBatchJobConfig;\n}\n\n/** Optional parameters. */\nexport declare interface CancelBatchJobConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Config for batches.cancel parameters. */\nexport declare interface CancelBatchJobParameters {\n /** A fully-qualified BatchJob resource name or ID.\n Example: \"projects/.../locations/.../batchPredictionJobs/456\"\n or \"456\" when project and location are initialized in the client.\n */\n name: string;\n /** Optional parameters for the request. */\n config?: CancelBatchJobConfig;\n}\n\n/** Config for optional parameters. */\nexport declare interface ListBatchJobsConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n pageSize?: number;\n pageToken?: string;\n filter?: string;\n}\n\n/** Config for batches.list parameters. */\nexport declare interface ListBatchJobsParameters {\n config?: ListBatchJobsConfig;\n}\n\n/** Config for batches.list return value. */\nexport class ListBatchJobsResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n nextPageToken?: string;\n batchJobs?: BatchJob[];\n}\n\n/** Optional parameters for models.get method. */\nexport declare interface DeleteBatchJobConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Config for batches.delete parameters. */\nexport declare interface DeleteBatchJobParameters {\n /** A fully-qualified BatchJob resource name or ID.\n Example: \"projects/.../locations/.../batchPredictionJobs/456\"\n or \"456\" when project and location are initialized in the client.\n */\n name: string;\n /** Optional parameters for the request. */\n config?: DeleteBatchJobConfig;\n}\n\n/** The return value of delete operation. */\nexport declare interface DeleteResourceJob {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n name?: string;\n done?: boolean;\n error?: JobError;\n}\n\nexport declare interface GetOperationConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Parameters for the GET method. */\nexport declare interface GetOperationParameters {\n /** The server-assigned name for the operation. */\n operationName: string;\n /** Used to override the default configuration. */\n config?: GetOperationConfig;\n}\n\nexport declare interface FetchPredictOperationConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Parameters for the fetchPredictOperation method. */\nexport declare interface FetchPredictOperationParameters {\n /** The server-assigned name for the operation. */\n operationName: string;\n resourceName: string;\n /** Used to override the default configuration. */\n config?: FetchPredictOperationConfig;\n}\n\nexport declare interface TestTableItem {\n /** The name of the test. This is used to derive the replay id. */\n name?: string;\n /** The parameters to the test. Use pydantic models. */\n parameters?: Record<string, unknown>;\n /** Expects an exception for MLDev matching the string. */\n exceptionIfMldev?: string;\n /** Expects an exception for Vertex matching the string. */\n exceptionIfVertex?: string;\n /** Use if you don't want to use the default replay id which is derived from the test name. */\n overrideReplayId?: string;\n /** True if the parameters contain an unsupported union type. This test will be skipped for languages that do not support the union type. */\n hasUnion?: boolean;\n /** When set to a reason string, this test will be skipped in the API mode. Use this flag for tests that can not be reproduced with the real API. E.g. a test that deletes a resource. */\n skipInApiMode?: string;\n /** Keys to ignore when comparing the request and response. This is useful for tests that are not deterministic. */\n ignoreKeys?: string[];\n}\n\nexport declare interface TestTableFile {\n comment?: string;\n testMethod?: string;\n parameterNames?: string[];\n testTable?: TestTableItem[];\n}\n\n/** Represents a single request in a replay. */\nexport declare interface ReplayRequest {\n method?: string;\n url?: string;\n headers?: Record<string, string>;\n bodySegments?: Record<string, unknown>[];\n}\n\n/** Represents a single response in a replay. */\nexport class ReplayResponse {\n statusCode?: number;\n headers?: Record<string, string>;\n bodySegments?: Record<string, unknown>[];\n sdkResponseSegments?: Record<string, unknown>[];\n}\n\n/** Represents a single interaction, request and response in a replay. */\nexport declare interface ReplayInteraction {\n request?: ReplayRequest;\n response?: ReplayResponse;\n}\n\n/** Represents a recorded session. */\nexport declare interface ReplayFile {\n replayId?: string;\n interactions?: ReplayInteraction[];\n}\n\n/** Used to override the default configuration. */\nexport declare interface UploadFileConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** The name of the file in the destination (e.g., 'files/sample-image'. If not provided one will be generated. */\n name?: string;\n /** mime_type: The MIME type of the file. If not provided, it will be inferred from the file extension. */\n mimeType?: string;\n /** Optional display name of the file. */\n displayName?: string;\n}\n\n/** Used to override the default configuration. */\nexport declare interface DownloadFileConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n}\n\n/** Parameters used to download a file. */\nexport declare interface DownloadFileParameters {\n /** The file to download. It can be a file name, a file object or a generated video. */\n file: DownloadableFileUnion;\n /** Location where the file should be downloaded to. */\n downloadPath: string;\n /** Configuration to for the download operation. */\n config?: DownloadFileConfig;\n}\n\n/** Configuration for upscaling an image.\n\nFor more information on this configuration, refer to\nthe `Imagen API reference documentation\n<https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api>`_. */\nexport declare interface UpscaleImageConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** Cloud Storage URI used to store the generated images. */\n outputGcsUri?: string;\n /** Filter level for safety filtering. */\n safetyFilterLevel?: SafetyFilterLevel;\n /** Allows generation of people by the model. */\n personGeneration?: PersonGeneration;\n /** Whether to include a reason for filtered-out images in the\n response. */\n includeRaiReason?: boolean;\n /** The image format that the output should be saved as. */\n outputMimeType?: string;\n /** The level of compression. Only applicable if the\n ``output_mime_type`` is ``image/jpeg``. */\n outputCompressionQuality?: number;\n /** Whether to add an image enhancing step before upscaling.\n It is expected to suppress the noise and JPEG compression artifacts\n from the input image. */\n enhanceInputImage?: boolean;\n /** With a higher image preservation factor, the original image\n pixels are more respected. With a lower image preservation factor, the\n output image will have be more different from the input image, but\n with finer details and less noise. */\n imagePreservationFactor?: number;\n /** User specified labels to track billing usage. */\n labels?: Record<string, string>;\n}\n\n/** User-facing config UpscaleImageParameters. */\nexport declare interface UpscaleImageParameters {\n /** The model to use. */\n model: string;\n /** The input image to upscale. */\n image: Image;\n /** The factor to upscale the image (x2 or x4). */\n upscaleFactor: string;\n /** Configuration for upscaling. */\n config?: UpscaleImageConfig;\n}\n\n/** A raw reference image.\n\nA raw reference image represents the base image to edit, provided by the user.\nIt can optionally be provided in addition to a mask reference image or\na style reference image. */\nexport class RawReferenceImage {\n /** The reference image for the editing operation. */\n referenceImage?: Image;\n /** The id of the reference image. */\n referenceId?: number;\n /** The type of the reference image. Only set by the SDK. */\n referenceType?: string;\n /** Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI(): ReferenceImageAPIInternal {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_RAW',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n };\n return referenceImageAPI;\n }\n}\n\n/** A mask reference image.\n\nThis encapsulates either a mask image provided by the user and configs for\nthe user provided mask, or only config parameters for the model to generate\na mask.\n\nA mask image is an image whose non-zero values indicate where to edit the base\nimage. If the user provides a mask image, the mask must be in the same\ndimensions as the raw image. */\nexport class MaskReferenceImage {\n /** The reference image for the editing operation. */\n referenceImage?: Image;\n /** The id of the reference image. */\n referenceId?: number;\n /** The type of the reference image. Only set by the SDK. */\n referenceType?: string;\n /** Configuration for the mask reference image. */\n config?: MaskReferenceConfig;\n /** Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI(): ReferenceImageAPIInternal {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_MASK',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n maskImageConfig: this.config,\n };\n return referenceImageAPI;\n }\n}\n\n/** A control reference image.\n\nThe image of the control reference image is either a control image provided\nby the user, or a regular image which the backend will use to generate a\ncontrol image of. In the case of the latter, the\nenable_control_image_computation field in the config should be set to True.\n\nA control image is an image that represents a sketch image of areas for the\nmodel to fill in based on the prompt. */\nexport class ControlReferenceImage {\n /** The reference image for the editing operation. */\n referenceImage?: Image;\n /** The id of the reference image. */\n referenceId?: number;\n /** The type of the reference image. Only set by the SDK. */\n referenceType?: string;\n /** Configuration for the control reference image. */\n config?: ControlReferenceConfig;\n /** Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI(): ReferenceImageAPIInternal {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_CONTROL',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n controlImageConfig: this.config,\n };\n return referenceImageAPI;\n }\n}\n\n/** A style reference image.\n\nThis encapsulates a style reference image provided by the user, and\nadditionally optional config parameters for the style reference image.\n\nA raw reference image can also be provided as a destination for the style to\nbe applied to. */\nexport class StyleReferenceImage {\n /** The reference image for the editing operation. */\n referenceImage?: Image;\n /** The id of the reference image. */\n referenceId?: number;\n /** The type of the reference image. Only set by the SDK. */\n referenceType?: string;\n /** Configuration for the style reference image. */\n config?: StyleReferenceConfig;\n /** Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI(): ReferenceImageAPIInternal {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_STYLE',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n styleImageConfig: this.config,\n };\n return referenceImageAPI;\n }\n}\n\n/** A subject reference image.\n\nThis encapsulates a subject reference image provided by the user, and\nadditionally optional config parameters for the subject reference image.\n\nA raw reference image can also be provided as a destination for the subject to\nbe applied to. */\nexport class SubjectReferenceImage {\n /** The reference image for the editing operation. */\n referenceImage?: Image;\n /** The id of the reference image. */\n referenceId?: number;\n /** The type of the reference image. Only set by the SDK. */\n referenceType?: string;\n /** Configuration for the subject reference image. */\n config?: SubjectReferenceConfig;\n /* Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI(): ReferenceImageAPIInternal {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_SUBJECT',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n subjectImageConfig: this.config,\n };\n return referenceImageAPI;\n }\n}\n\n/** A content reference image.\n\nA content reference image represents a subject to reference (ex. person,\nproduct, animal) provided by the user. It can optionally be provided in\naddition to a style reference image (ex. background, style reference). */\nexport class ContentReferenceImage {\n /** The reference image for the editing operation. */\n referenceImage?: Image;\n /** The id of the reference image. */\n referenceId?: number;\n /** The type of the reference image. Only set by the SDK. */\n referenceType?: string;\n /** Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI(): ReferenceImageAPIInternal {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_CONTENT',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n };\n return referenceImageAPI;\n }\n}\n\n/** Sent in response to a `LiveGenerateContentSetup` message from the client. */\nexport declare interface LiveServerSetupComplete {\n /** The session id of the live session. */\n sessionId?: string;\n}\n\n/** Audio transcription in Server Conent. */\nexport declare interface Transcription {\n /** Transcription text.\n */\n text?: string;\n /** The bool indicates the end of the transcription.\n */\n finished?: boolean;\n}\n\n/** Incremental server update generated by the model in response to client messages.\n\nContent is generated as quickly as possible, and not in real time. Clients\nmay choose to buffer and play it out in real time. */\nexport declare interface LiveServerContent {\n /** The content that the model has generated as part of the current conversation with the user. */\n modelTurn?: Content;\n /** If true, indicates that the model is done generating. Generation will only start in response to additional client messages. Can be set alongside `content`, indicating that the `content` is the last in the turn. */\n turnComplete?: boolean;\n /** If true, indicates that a client message has interrupted current model generation. If the client is playing out the content in realtime, this is a good signal to stop and empty the current queue. */\n interrupted?: boolean;\n /** Metadata returned to client when grounding is enabled. */\n groundingMetadata?: GroundingMetadata;\n /** If true, indicates that the model is done generating. When model is\n interrupted while generating there will be no generation_complete message\n in interrupted turn, it will go through interrupted > turn_complete.\n When model assumes realtime playback there will be delay between\n generation_complete and turn_complete that is caused by model\n waiting for playback to finish. If true, indicates that the model\n has finished generating all content. This is a signal to the client\n that it can stop sending messages. */\n generationComplete?: boolean;\n /** Input transcription. The transcription is independent to the model\n turn which means it doesn’t imply any ordering between transcription and\n model turn. */\n inputTranscription?: Transcription;\n /** Output transcription. The transcription is independent to the model\n turn which means it doesn’t imply any ordering between transcription and\n model turn.\n */\n outputTranscription?: Transcription;\n /** Metadata related to url context retrieval tool. */\n urlContextMetadata?: UrlContextMetadata;\n /** Reason for the turn is complete. */\n turnCompleteReason?: TurnCompleteReason;\n /** If true, indicates that the model is not generating content because\n it is waiting for more input from the user, e.g. because it expects the\n user to continue talking. */\n waitingForInput?: boolean;\n}\n\n/** Request for the client to execute the `function_calls` and return the responses with the matching `id`s. */\nexport declare interface LiveServerToolCall {\n /** The function call to be executed. */\n functionCalls?: FunctionCall[];\n}\n\n/** Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should have been not executed and should be cancelled.\n\nIf there were side-effects to those tool calls, clients may attempt to undo\nthe tool calls. This message occurs only in cases where the clients interrupt\nserver turns. */\nexport declare interface LiveServerToolCallCancellation {\n /** The ids of the tool calls to be cancelled. */\n ids?: string[];\n}\n\n/** Usage metadata about response(s). */\nexport declare interface UsageMetadata {\n /** Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. */\n promptTokenCount?: number;\n /** Number of tokens in the cached part of the prompt (the cached content). */\n cachedContentTokenCount?: number;\n /** Total number of tokens across all the generated response candidates. */\n responseTokenCount?: number;\n /** Number of tokens present in tool-use prompt(s). */\n toolUsePromptTokenCount?: number;\n /** Number of tokens of thoughts for thinking models. */\n thoughtsTokenCount?: number;\n /** Total token count for prompt, response candidates, and tool-use prompts(if present). */\n totalTokenCount?: number;\n /** List of modalities that were processed in the request input. */\n promptTokensDetails?: ModalityTokenCount[];\n /** List of modalities that were processed in the cache input. */\n cacheTokensDetails?: ModalityTokenCount[];\n /** List of modalities that were returned in the response. */\n responseTokensDetails?: ModalityTokenCount[];\n /** List of modalities that were processed in the tool-use prompt. */\n toolUsePromptTokensDetails?: ModalityTokenCount[];\n /** Traffic type. This shows whether a request consumes Pay-As-You-Go\n or Provisioned Throughput quota. */\n trafficType?: TrafficType;\n}\n\n/** Server will not be able to service client soon. */\nexport declare interface LiveServerGoAway {\n /** The remaining time before the connection will be terminated as ABORTED. The minimal time returned here is specified differently together with the rate limits for a given model. */\n timeLeft?: string;\n}\n\n/** Update of the session resumption state.\n\nOnly sent if `session_resumption` was set in the connection config. */\nexport declare interface LiveServerSessionResumptionUpdate {\n /** New handle that represents state that can be resumed. Empty if `resumable`=false. */\n newHandle?: string;\n /** True if session can be resumed at this point. It might be not possible to resume session at some points. In that case we send update empty new_handle and resumable=false. Example of such case could be model executing function calls or just generating. Resuming session (using previous session token) in such state will result in some data loss. */\n resumable?: boolean;\n /** Index of last message sent by client that is included in state represented by this SessionResumptionToken. Only sent when `SessionResumptionConfig.transparent` is set.\n\nPresence of this index allows users to transparently reconnect and avoid issue of losing some part of realtime audio input/video. If client wishes to temporarily disconnect (for example as result of receiving GoAway) they can do it without losing state by buffering messages sent since last `SessionResmumptionTokenUpdate`. This field will enable them to limit buffering (avoid keeping all requests in RAM).\n\nNote: This should not be used for when resuming a session at some time later -- in those cases partial audio and video frames arelikely not needed. */\n lastConsumedClientMessageIndex?: string;\n}\n\nexport declare interface VoiceActivityDetectionSignal {\n /** The type of the VAD signal. */\n vadSignalType?: VadSignalType;\n}\n\n/** Voice activity signal. */\nexport declare interface VoiceActivity {\n /** The type of the voice activity signal. */\n voiceActivityType?: VoiceActivityType;\n}\n\n/** Response message for API call. */\nexport class LiveServerMessage {\n /** Sent in response to a `LiveClientSetup` message from the client. */\n setupComplete?: LiveServerSetupComplete;\n /** Content generated by the model in response to client messages. */\n serverContent?: LiveServerContent;\n /** Request for the client to execute the `function_calls` and return the responses with the matching `id`s. */\n toolCall?: LiveServerToolCall;\n /** Notification for the client that a previously issued `ToolCallMessage` with the specified `id`s should have been not executed and should be cancelled. */\n toolCallCancellation?: LiveServerToolCallCancellation;\n /** Usage metadata about model response(s). */\n usageMetadata?: UsageMetadata;\n /** Server will disconnect soon. */\n goAway?: LiveServerGoAway;\n /** Update of the session resumption state. */\n sessionResumptionUpdate?: LiveServerSessionResumptionUpdate;\n /** Voice activity detection signal. Allowlisted only. */\n voiceActivityDetectionSignal?: VoiceActivityDetectionSignal;\n /** Voice activity signal. */\n voiceActivity?: VoiceActivity;\n /**\n * Returns the concatenation of all text parts from the server content if present.\n *\n * @remarks\n * If there are non-text parts in the response, the concatenation of all text\n * parts will be returned, and a warning will be logged.\n */\n get text(): string | undefined {\n let text = '';\n let anyTextPartFound = false;\n const nonTextParts = [];\n for (const part of this.serverContent?.modelTurn?.parts ?? []) {\n for (const [fieldName, fieldValue] of Object.entries(part)) {\n if (\n fieldName !== 'text' &&\n fieldName !== 'thought' &&\n fieldValue !== null\n ) {\n nonTextParts.push(fieldName);\n }\n }\n if (typeof part.text === 'string') {\n if (typeof part.thought === 'boolean' && part.thought) {\n continue;\n }\n anyTextPartFound = true;\n text += part.text;\n }\n }\n if (nonTextParts.length > 0) {\n console.warn(\n `there are non-text parts ${nonTextParts} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`,\n );\n }\n // part.text === '' is different from part.text is null\n return anyTextPartFound ? text : undefined;\n }\n\n /**\n * Returns the concatenation of all inline data parts from the server content if present.\n *\n * @remarks\n * If there are non-inline data parts in the\n * response, the concatenation of all inline data parts will be returned, and\n * a warning will be logged.\n */\n get data(): string | undefined {\n let data = '';\n const nonDataParts = [];\n for (const part of this.serverContent?.modelTurn?.parts ?? []) {\n for (const [fieldName, fieldValue] of Object.entries(part)) {\n if (fieldName !== 'inlineData' && fieldValue !== null) {\n nonDataParts.push(fieldName);\n }\n }\n if (part.inlineData && typeof part.inlineData.data === 'string') {\n data += atob(part.inlineData.data);\n }\n }\n if (nonDataParts.length > 0) {\n console.warn(\n `there are non-data parts ${nonDataParts} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`,\n );\n }\n return data.length > 0 ? btoa(data) : undefined;\n }\n}\n\n/** Parameters of the fromAPIResponse method of the Operation class. */\nexport declare interface OperationFromAPIResponseParameters {\n /** The API response to be converted to an Operation. */\n apiResponse: Record<string, unknown>;\n /** Whether the API response is from Vertex AI. */\n _isVertexAI: boolean;\n}\n\n/**\n * Config for thinking feature.\n *\n * @deprecated This interface will be deprecated. Please use `ThinkingConfig` instead.\n */\nexport declare interface GenerationConfigThinkingConfig\n extends ThinkingConfig {}\n\n/** Configures automatic detection of activity. */\nexport declare interface AutomaticActivityDetection {\n /** If enabled, detected voice and text input count as activity. If disabled, the client must send activity signals. */\n disabled?: boolean;\n /** Determines how likely speech is to be detected. */\n startOfSpeechSensitivity?: StartSensitivity;\n /** Determines how likely detected speech is ended. */\n endOfSpeechSensitivity?: EndSensitivity;\n /** The required duration of detected speech before start-of-speech is committed. The lower this value the more sensitive the start-of-speech detection is and the shorter speech can be recognized. However, this also increases the probability of false positives. */\n prefixPaddingMs?: number;\n /** The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency. */\n silenceDurationMs?: number;\n}\n\n/** Marks the end of user activity.\n\nThis can only be sent if automatic (i.e. server-side) activity detection is\ndisabled. */\nexport declare interface RealtimeInputConfig {\n /** If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals. */\n automaticActivityDetection?: AutomaticActivityDetection;\n /** Defines what effect activity has. */\n activityHandling?: ActivityHandling;\n /** Defines which input is included in the user's turn. */\n turnCoverage?: TurnCoverage;\n}\n\n/** Configuration of session resumption mechanism.\n\nIncluded in `LiveConnectConfig.session_resumption`. If included server\nwill send `LiveServerSessionResumptionUpdate` messages. */\nexport declare interface SessionResumptionConfig {\n /** Session resumption handle of previous session (session to restore).\n\nIf not present new session will be started. */\n handle?: string;\n /** If set the server will send `last_consumed_client_message_index` in the `session_resumption_update` messages to allow for transparent reconnections. */\n transparent?: boolean;\n}\n\n/** Context window will be truncated by keeping only suffix of it.\n\nContext window will always be cut at start of USER role turn. System\ninstructions and `BidiGenerateContentSetup.prefix_turns` will not be\nsubject to the sliding window mechanism, they will always stay at the\nbeginning of context window. */\nexport declare interface SlidingWindow {\n /** Session reduction target -- how many tokens we should keep. Window shortening operation has some latency costs, so we should avoid running it on every turn. Should be < trigger_tokens. If not set, trigger_tokens/2 is assumed. */\n targetTokens?: string;\n}\n\n/** Enables context window compression -- mechanism managing model context window so it does not exceed given length. */\nexport declare interface ContextWindowCompressionConfig {\n /** Number of tokens (before running turn) that triggers context window compression mechanism. */\n triggerTokens?: string;\n /** Sliding window compression mechanism. */\n slidingWindow?: SlidingWindow;\n}\n\n/** The audio transcription configuration in Setup. */\nexport declare interface AudioTranscriptionConfig {}\n\n/** Config for proactivity features. */\nexport declare interface ProactivityConfig {\n /** If enabled, the model can reject responding to the last prompt. For\n example, this allows the model to ignore out of context speech or to stay\n silent if the user did not make a request, yet. */\n proactiveAudio?: boolean;\n}\n\n/** Message contains configuration that will apply for the duration of the streaming session. */\nexport declare interface LiveClientSetup {\n /** \n The fully qualified name of the publisher model or tuned model endpoint to\n use.\n */\n model?: string;\n /** The generation configuration for the session.\n Note: only a subset of fields are supported.\n */\n generationConfig?: GenerationConfig;\n /** The user provided system instructions for the model.\n Note: only text should be used in parts and content in each part will be\n in a separate paragraph. */\n systemInstruction?: ContentUnion;\n /** A list of `Tools` the model may use to generate the next response.\n\n A `Tool` is a piece of code that enables the system to interact with\n external systems to perform an action, or set of actions, outside of\n knowledge and scope of the model. */\n tools?: ToolListUnion;\n /** Configures the realtime input behavior in BidiGenerateContent. */\n realtimeInputConfig?: RealtimeInputConfig;\n /** Configures session resumption mechanism.\n\n If included server will send SessionResumptionUpdate messages. */\n sessionResumption?: SessionResumptionConfig;\n /** Configures context window compression mechanism.\n\n If included, server will compress context window to fit into given length. */\n contextWindowCompression?: ContextWindowCompressionConfig;\n /** The transcription of the input aligns with the input audio language.\n */\n inputAudioTranscription?: AudioTranscriptionConfig;\n /** The transcription of the output aligns with the language code\n specified for the output audio.\n */\n outputAudioTranscription?: AudioTranscriptionConfig;\n /** Configures the proactivity of the model. This allows the model to respond proactively to\n the input and to ignore irrelevant input. */\n proactivity?: ProactivityConfig;\n /** Configures the explicit VAD signal. If enabled, the client will send\n vad_signal to indicate the start and end of speech. This allows the server\n to process the audio more efficiently. */\n explicitVadSignal?: boolean;\n}\n\n/** Incremental update of the current conversation delivered from the client.\n\nAll the content here will unconditionally be appended to the conversation\nhistory and used as part of the prompt to the model to generate content.\n\nA message here will interrupt any current model generation. */\nexport declare interface LiveClientContent {\n /** The content appended to the current conversation with the model.\n\n For single-turn queries, this is a single instance. For multi-turn\n queries, this is a repeated field that contains conversation history and\n latest request.\n */\n turns?: Content[];\n /** If true, indicates that the server content generation should start with\n the currently accumulated prompt. Otherwise, the server will await\n additional messages before starting generation. */\n turnComplete?: boolean;\n}\n\n/** Marks the start of user activity.\n\nThis can only be sent if automatic (i.e. server-side) activity detection is\ndisabled. */\nexport declare interface ActivityStart {}\n\n/** Marks the end of user activity.\n\nThis can only be sent if automatic (i.e. server-side) activity detection is\ndisabled. */\nexport declare interface ActivityEnd {}\n\n/** User input that is sent in real time.\n\nThis is different from `LiveClientContent` in a few ways:\n\n - Can be sent continuously without interruption to model generation.\n - If there is a need to mix data interleaved across the\n `LiveClientContent` and the `LiveClientRealtimeInput`, server attempts to\n optimize for best response, but there are no guarantees.\n - End of turn is not explicitly specified, but is rather derived from user\n activity (for example, end of speech).\n - Even before the end of turn, the data is processed incrementally\n to optimize for a fast start of the response from the model.\n - Is always assumed to be the user's input (cannot be used to populate\n conversation history). */\nexport declare interface LiveClientRealtimeInput {\n /** Inlined bytes data for media input. */\n mediaChunks?: Blob[];\n /** The realtime audio input stream. */\n audio?: Blob;\n /** \nIndicates that the audio stream has ended, e.g. because the microphone was\nturned off.\n\nThis should only be sent when automatic activity detection is enabled\n(which is the default).\n\nThe client can reopen the stream by sending an audio message.\n */\n audioStreamEnd?: boolean;\n /** The realtime video input stream. */\n video?: Blob;\n /** The realtime text input stream. */\n text?: string;\n /** Marks the start of user activity. */\n activityStart?: ActivityStart;\n /** Marks the end of user activity. */\n activityEnd?: ActivityEnd;\n}\n\n/** Client generated response to a `ToolCall` received from the server.\n\nIndividual `FunctionResponse` objects are matched to the respective\n`FunctionCall` objects by the `id` field.\n\nNote that in the unary and server-streaming GenerateContent APIs function\ncalling happens by exchanging the `Content` parts, while in the bidi\nGenerateContent APIs function calling happens over this dedicated set of\nmessages. */\nexport class LiveClientToolResponse {\n /** The response to the function calls. */\n functionResponses?: FunctionResponse[];\n}\n\n/** Parameters for sending realtime input to the live API. */\nexport declare interface LiveSendRealtimeInputParameters {\n /** Realtime input to send to the session. */\n media?: BlobImageUnion;\n /** The realtime audio input stream. */\n audio?: Blob;\n /** \nIndicates that the audio stream has ended, e.g. because the microphone was\nturned off.\n\nThis should only be sent when automatic activity detection is enabled\n(which is the default).\n\nThe client can reopen the stream by sending an audio message.\n */\n audioStreamEnd?: boolean;\n /** The realtime video input stream. */\n video?: BlobImageUnion;\n /** The realtime text input stream. */\n text?: string;\n /** Marks the start of user activity. */\n activityStart?: ActivityStart;\n /** Marks the end of user activity. */\n activityEnd?: ActivityEnd;\n}\n\n/** Messages sent by the client in the API call. */\nexport declare interface LiveClientMessage {\n /** Message to be sent by the system when connecting to the API. SDK users should not send this message. */\n setup?: LiveClientSetup;\n /** Incremental update of the current conversation delivered from the client. */\n clientContent?: LiveClientContent;\n /** User input that is sent in real time. */\n realtimeInput?: LiveClientRealtimeInput;\n /** Response to a `ToolCallMessage` received from the server. */\n toolResponse?: LiveClientToolResponse;\n}\n\n/** Session config for the API connection. */\nexport declare interface LiveConnectConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** The generation configuration for the session. */\n generationConfig?: GenerationConfig;\n /** The requested modalities of the response. Represents the set of\n modalities that the model can return. Defaults to AUDIO if not specified.\n */\n responseModalities?: Modality[];\n /** Value that controls the degree of randomness in token selection.\n Lower temperatures are good for prompts that require a less open-ended or\n creative response, while higher temperatures can lead to more diverse or\n creative results.\n */\n temperature?: number;\n /** Tokens are selected from the most to least probable until the sum\n of their probabilities equals this value. Use a lower value for less\n random responses and a higher value for more random responses.\n */\n topP?: number;\n /** For each token selection step, the ``top_k`` tokens with the\n highest probabilities are sampled. Then tokens are further filtered based\n on ``top_p`` with the final token selected using temperature sampling. Use\n a lower number for less random responses and a higher number for more\n random responses.\n */\n topK?: number;\n /** Maximum number of tokens that can be generated in the response.\n */\n maxOutputTokens?: number;\n /** If specified, the media resolution specified will be used.\n */\n mediaResolution?: MediaResolution;\n /** When ``seed`` is fixed to a specific number, the model makes a best\n effort to provide the same response for repeated requests. By default, a\n random number is used.\n */\n seed?: number;\n /** The speech generation configuration.\n */\n speechConfig?: SpeechConfig;\n /** Config for thinking features.\n An error will be returned if this field is set for models that don't\n support thinking.\n */\n thinkingConfig?: ThinkingConfig;\n /** If enabled, the model will detect emotions and adapt its responses accordingly. */\n enableAffectiveDialog?: boolean;\n /** The user provided system instructions for the model.\n Note: only text should be used in parts and content in each part will be\n in a separate paragraph. */\n systemInstruction?: ContentUnion;\n /** A list of `Tools` the model may use to generate the next response.\n\n A `Tool` is a piece of code that enables the system to interact with\n external systems to perform an action, or set of actions, outside of\n knowledge and scope of the model. */\n tools?: ToolListUnion;\n /** Configures session resumption mechanism.\n\nIf included the server will send SessionResumptionUpdate messages. */\n sessionResumption?: SessionResumptionConfig;\n /** The transcription of the input aligns with the input audio language.\n */\n inputAudioTranscription?: AudioTranscriptionConfig;\n /** The transcription of the output aligns with the language code\n specified for the output audio.\n */\n outputAudioTranscription?: AudioTranscriptionConfig;\n /** Configures the realtime input behavior in BidiGenerateContent. */\n realtimeInputConfig?: RealtimeInputConfig;\n /** Configures context window compression mechanism.\n\n If included, server will compress context window to fit into given length. */\n contextWindowCompression?: ContextWindowCompressionConfig;\n /** Configures the proactivity of the model. This allows the model to respond proactively to\n the input and to ignore irrelevant input. */\n proactivity?: ProactivityConfig;\n /** Configures the explicit VAD signal. If enabled, the client will send\n vad_signal to indicate the start and end of speech. This allows the server\n to process the audio more efficiently. */\n explicitVadSignal?: boolean;\n}\n\n/** Parameters for connecting to the live API. */\nexport declare interface LiveConnectParameters {\n /** ID of the model to use. For a list of models, see `Google models\n <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. */\n model: string;\n /** callbacks */\n callbacks: LiveCallbacks;\n /** Optional configuration parameters for the request.\n */\n config?: LiveConnectConfig;\n}\n\n/** Parameters for initializing a new chat session.\n\nThese parameters are used when creating a chat session with the\n`chats.create()` method. */\nexport declare interface CreateChatParameters {\n /** The name of the model to use for the chat session.\n\n For example: 'gemini-2.0-flash', 'gemini-2.0-flash-lite', etc. See Gemini API\n docs to find the available models.\n */\n model: string;\n /** Config for the entire chat session.\n\n This config applies to all requests within the session\n unless overridden by a per-request `config` in `SendMessageParameters`.\n */\n config?: GenerateContentConfig;\n /** The initial conversation history for the chat session.\n\n This allows you to start the chat with a pre-existing history. The history\n must be a list of `Content` alternating between 'user' and 'model' roles.\n It should start with a 'user' message.\n */\n history?: Content[];\n}\n\n/** Parameters for sending a message within a chat session.\n\nThese parameters are used with the `chat.sendMessage()` method. */\nexport declare interface SendMessageParameters {\n /** The message to send to the model.\n\n The SDK will combine all parts into a single 'user' content to send to\n the model.\n */\n message: PartListUnion;\n /** Config for this specific request.\n\n Please note that the per-request config does not change the chat level\n config, nor inherit from it. If you intend to use some values from the\n chat's default config, you must explicitly copy them into this per-request\n config.\n */\n config?: GenerateContentConfig;\n}\n\n/** Parameters for sending client content to the live API. */\nexport declare interface LiveSendClientContentParameters {\n /** Client content to send to the session. */\n turns?: ContentListUnion;\n /** If true, indicates that the server content generation should start with\n the currently accumulated prompt. Otherwise, the server will await\n additional messages before starting generation. */\n turnComplete?: boolean;\n}\n\n/** Parameters for sending tool responses to the live API. */\nexport class LiveSendToolResponseParameters {\n /** Tool responses to send to the session. */\n functionResponses: FunctionResponse[] | FunctionResponse = [];\n}\n\n/** Message to be sent by the system when connecting to the API. */\nexport declare interface LiveMusicClientSetup {\n /** The model's resource name. Format: `models/{model}`. */\n model?: string;\n}\n\n/** Maps a prompt to a relative weight to steer music generation. */\nexport declare interface WeightedPrompt {\n /** Text prompt. */\n text?: string;\n /** Weight of the prompt. The weight is used to control the relative\n importance of the prompt. Higher weights are more important than lower\n weights.\n\n Weight must not be 0. Weights of all weighted_prompts in this\n LiveMusicClientContent message will be normalized. */\n weight?: number;\n}\n\n/** User input to start or steer the music. */\nexport declare interface LiveMusicClientContent {\n /** Weighted prompts as the model input. */\n weightedPrompts?: WeightedPrompt[];\n}\n\n/** Configuration for music generation. */\nexport declare interface LiveMusicGenerationConfig {\n /** Controls the variance in audio generation. Higher values produce\n higher variance. Range is [0.0, 3.0]. */\n temperature?: number;\n /** Controls how the model selects tokens for output. Samples the topK\n tokens with the highest probabilities. Range is [1, 1000]. */\n topK?: number;\n /** Seeds audio generation. If not set, the request uses a randomly\n generated seed. */\n seed?: number;\n /** Controls how closely the model follows prompts.\n Higher guidance follows more closely, but will make transitions more\n abrupt. Range is [0.0, 6.0]. */\n guidance?: number;\n /** Beats per minute. Range is [60, 200]. */\n bpm?: number;\n /** Density of sounds. Range is [0.0, 1.0]. */\n density?: number;\n /** Brightness of the music. Range is [0.0, 1.0]. */\n brightness?: number;\n /** Scale of the generated music. */\n scale?: Scale;\n /** Whether the audio output should contain bass. */\n muteBass?: boolean;\n /** Whether the audio output should contain drums. */\n muteDrums?: boolean;\n /** Whether the audio output should contain only bass and drums. */\n onlyBassAndDrums?: boolean;\n /** The mode of music generation. Default mode is QUALITY. */\n musicGenerationMode?: MusicGenerationMode;\n}\n\n/** Messages sent by the client in the LiveMusicClientMessage call. */\nexport declare interface LiveMusicClientMessage {\n /** Message to be sent in the first (and only in the first) `LiveMusicClientMessage`.\n Clients should wait for a `LiveMusicSetupComplete` message before\n sending any additional messages. */\n setup?: LiveMusicClientSetup;\n /** User input to influence music generation. */\n clientContent?: LiveMusicClientContent;\n /** Configuration for music generation. */\n musicGenerationConfig?: LiveMusicGenerationConfig;\n /** Playback control signal for the music generation. */\n playbackControl?: LiveMusicPlaybackControl;\n}\n\n/** Sent in response to a `LiveMusicClientSetup` message from the client. */\nexport declare interface LiveMusicServerSetupComplete {}\n\n/** Prompts and config used for generating this audio chunk. */\nexport declare interface LiveMusicSourceMetadata {\n /** Weighted prompts for generating this audio chunk. */\n clientContent?: LiveMusicClientContent;\n /** Music generation config for generating this audio chunk. */\n musicGenerationConfig?: LiveMusicGenerationConfig;\n}\n\n/** Representation of an audio chunk. */\nexport declare interface AudioChunk {\n /** Raw bytes of audio data.\n * @remarks Encoded as base64 string. */\n data?: string;\n /** MIME type of the audio chunk. */\n mimeType?: string;\n /** Prompts and config used for generating this audio chunk. */\n sourceMetadata?: LiveMusicSourceMetadata;\n}\n\n/** Server update generated by the model in response to client messages.\n\nContent is generated as quickly as possible, and not in real time.\nClients may choose to buffer and play it out in real time. */\nexport declare interface LiveMusicServerContent {\n /** The audio chunks that the model has generated. */\n audioChunks?: AudioChunk[];\n}\n\n/** A prompt that was filtered with the reason. */\nexport declare interface LiveMusicFilteredPrompt {\n /** The text prompt that was filtered. */\n text?: string;\n /** The reason the prompt was filtered. */\n filteredReason?: string;\n}\n\n/** Response message for the LiveMusicClientMessage call. */\nexport class LiveMusicServerMessage {\n /** Message sent in response to a `LiveMusicClientSetup` message from the client.\n Clients should wait for this message before sending any additional messages. */\n setupComplete?: LiveMusicServerSetupComplete;\n /** Content generated by the model in response to client messages. */\n serverContent?: LiveMusicServerContent;\n /** A prompt that was filtered with the reason. */\n filteredPrompt?: LiveMusicFilteredPrompt;\n /**\n * Returns the first audio chunk from the server content, if present.\n *\n * @remarks\n * If there are no audio chunks in the response, undefined will be returned.\n */\n get audioChunk(): AudioChunk | undefined {\n if (\n this.serverContent &&\n this.serverContent.audioChunks &&\n this.serverContent.audioChunks.length > 0\n ) {\n return this.serverContent.audioChunks[0];\n }\n return undefined;\n }\n}\n\n/** Callbacks for the realtime music API. */\nexport interface LiveMusicCallbacks {\n /**\n * Called when a message is received from the server.\n */\n onmessage: (e: LiveMusicServerMessage) => void;\n /**\n * Called when an error occurs.\n */\n onerror?: ((e: ErrorEvent) => void) | null;\n /**\n * Called when the websocket connection is closed.\n */\n onclose?: ((e: CloseEvent) => void) | null;\n}\n\n/** Parameters for the upload file method. */\nexport interface UploadFileParameters {\n /** The string path to the file to be uploaded or a Blob object. */\n file: string | globalThis.Blob;\n /** Configuration that contains optional parameters. */\n config?: UploadFileConfig;\n}\n\n/** Parameters for the upload file to file search store method. */\nexport interface UploadToFileSearchStoreParameters {\n /** The name of the file search store to upload. */\n fileSearchStoreName: string;\n /** The string path to the file to be uploaded or a Blob object. */\n file: string | globalThis.Blob;\n /** Configuration that contains optional parameters. */\n config?: UploadToFileSearchStoreConfig;\n}\n\n/**\n * CallableTool is an invokable tool that can be executed with external\n * application (e.g., via Model Context Protocol) or local functions with\n * function calling.\n */\nexport interface CallableTool {\n /**\n * Returns tool that can be called by Gemini.\n */\n tool(): Promise<Tool>;\n /**\n * Executes the callable tool with the given function call arguments and\n * returns the response parts from the tool execution.\n */\n callTool(functionCalls: FunctionCall[]): Promise<Part[]>;\n}\n\n/**\n * CallableToolConfig is the configuration for a callable tool.\n */\nexport interface CallableToolConfig {\n /**\n * Specifies the model's behavior after invoking this tool.\n */\n behavior?: Behavior;\n /**\n * Timeout for remote calls in milliseconds. Note this timeout applies only to\n * tool remote calls, and not making HTTP requests to the API. */\n timeout?: number;\n}\n\n/** Parameters for connecting to the live API. */\nexport declare interface LiveMusicConnectParameters {\n /** The model's resource name. */\n model: string;\n /** Callbacks invoked on server events. */\n callbacks: LiveMusicCallbacks;\n}\n\n/** Parameters for setting config for the live music API. */\nexport declare interface LiveMusicSetConfigParameters {\n /** Configuration for music generation. */\n musicGenerationConfig: LiveMusicGenerationConfig;\n}\n\n/** Parameters for setting weighted prompts for the live music API. */\nexport declare interface LiveMusicSetWeightedPromptsParameters {\n /** A map of text prompts to weights to use for the generation request. */\n weightedPrompts: WeightedPrompt[];\n}\n\n/** Config for auth_tokens.create parameters. */\nexport declare interface AuthToken {\n /** The name of the auth token. */\n name?: string;\n}\n\n/** Config for LiveConnectConstraints for Auth Token creation. */\nexport declare interface LiveConnectConstraints {\n /** ID of the model to configure in the ephemeral token for Live API.\n For a list of models, see `Gemini models\n <https://ai.google.dev/gemini-api/docs/models>`. */\n model?: string;\n /** Configuration specific to Live API connections created using this token. */\n config?: LiveConnectConfig;\n}\n\n/** Optional parameters. */\nexport declare interface CreateAuthTokenConfig {\n /** Used to override HTTP request options. */\n httpOptions?: HttpOptions;\n /** Abort signal which can be used to cancel the request.\n\n NOTE: AbortSignal is a client-only operation. Using it to cancel an\n operation will not cancel the request in the service. You will still\n be charged usage for any applicable operations.\n */\n abortSignal?: AbortSignal;\n /** An optional time after which, when using the resulting token,\n messages in Live API sessions will be rejected. (Gemini may\n preemptively close the session after this time.)\n\n If not set then this defaults to 30 minutes in the future. If set, this\n value must be less than 20 hours in the future. */\n expireTime?: string;\n /** The time after which new Live API sessions using the token\n resulting from this request will be rejected.\n\n If not set this defaults to 60 seconds in the future. If set, this value\n must be less than 20 hours in the future. */\n newSessionExpireTime?: string;\n /** The number of times the token can be used. If this value is zero\n then no limit is applied. Default is 1. Resuming a Live API session does\n not count as a use. */\n uses?: number;\n /** Configuration specific to Live API connections created using this token. */\n liveConnectConstraints?: LiveConnectConstraints;\n /** Additional fields to lock in the effective LiveConnectParameters. */\n lockAdditionalFields?: string[];\n}\n\n/** Config for auth_tokens.create parameters. */\nexport declare interface CreateAuthTokenParameters {\n /** Optional parameters for the request. */\n config?: CreateAuthTokenConfig;\n}\n\n/** Parameters for the get method of the operations module. */\nexport declare interface OperationGetParameters<T, U extends Operation<T>> {\n /** Used to override the default configuration. */\n config?: GetOperationConfig;\n /** The operation to be retrieved. */\n operation: U;\n}\n\n/** Local tokenizer count tokens result. */\nexport declare interface CountTokensResult {\n /** The total number of tokens. */\n totalTokens?: number;\n}\n\n/** Local tokenizer compute tokens result. */\nexport declare interface ComputeTokensResult {\n /** Lists of tokens info from the input. */\n tokensInfo?: TokensInfo[];\n}\n\n/** Fine-tuning job creation parameters - optional fields. */\nexport declare interface CreateTuningJobParameters {\n /** The base model that is being tuned, e.g., \"gemini-2.5-flash\". */\n baseModel: string;\n /** Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */\n trainingDataset: TuningDataset;\n /** Configuration for the tuning job. */\n config?: CreateTuningJobConfig;\n}\n\n/** The response when long-running operation for uploading a file to a FileSearchStore complete. */\nexport class UploadToFileSearchStoreResponse {\n /** Used to retain the full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n /** The name of the FileSearchStore containing Documents. */\n parent?: string;\n /** The identifier for the Document imported. */\n documentName?: string;\n}\n\n/** Long-running operation for uploading a file to a FileSearchStore. */\nexport class UploadToFileSearchStoreOperation\n implements Operation<UploadToFileSearchStoreResponse>\n{\n /** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */\n name?: string;\n /** Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */\n metadata?: Record<string, unknown>;\n /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */\n done?: boolean;\n /** The error result of the operation in case of failure or cancellation. */\n error?: Record<string, unknown>;\n /** The result of the UploadToFileSearchStore operation, available when the operation is done. */\n response?: UploadToFileSearchStoreResponse;\n\n /**\n * Instantiates an Operation of the same type as the one being called with the fields set from the API response.\n * @internal\n */\n _fromAPIResponse({\n apiResponse,\n _isVertexAI,\n }: OperationFromAPIResponseParameters): Operation<UploadToFileSearchStoreResponse> {\n const operation = new UploadToFileSearchStoreOperation();\n\n const op = apiResponse as unknown as UploadToFileSearchStoreOperation;\n const response = uploadToFileSearchStoreOperationFromMldev(op);\n Object.assign(operation, response);\n return operation;\n }\n /** The full HTTP response. */\n sdkHttpResponse?: HttpResponse;\n}\n\nexport type BlobImageUnion = Blob;\n\nexport type PartUnion = Part | string;\n\nexport type PartListUnion = PartUnion[] | PartUnion;\n\nexport type ContentUnion = Content | PartUnion[] | PartUnion;\n\nexport type ContentListUnion = Content | Content[] | PartUnion | PartUnion[];\n\nexport type SchemaUnion = Schema | unknown;\n\nexport type SpeechConfigUnion = SpeechConfig | string;\n\nexport type ToolUnion = Tool | CallableTool;\n\nexport type ToolListUnion = ToolUnion[];\n\nexport type DownloadableFileUnion = string | File | GeneratedVideo | Video;\n\nexport type BatchJobSourceUnion = BatchJobSource | InlinedRequest[] | string;\n\nexport type BatchJobDestinationUnion = BatchJobDestination | string;\n","/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type {Tool as McpTool} from '@modelcontextprotocol/sdk/types';\n\nimport {ApiClient} from './_api_client.js';\nimport * as baseTransformers from './_base_transformers.js';\nimport * as types from './types.js';\n\nexport function tModel(apiClient: ApiClient, model: string | unknown): string {\n if (!model || typeof model !== 'string') {\n throw new Error('model is required and must be a string');\n }\n if (model.includes('..') || model.includes('?') || model.includes('&')) {\n throw new Error('invalid model parameter');\n }\n\n if (apiClient.isVertexAI()) {\n if (\n model.startsWith('publishers/') ||\n model.startsWith('projects/') ||\n model.startsWith('models/')\n ) {\n return model;\n } else if (model.indexOf('/') >= 0) {\n const parts = model.split('/', 2);\n return `publishers/${parts[0]}/models/${parts[1]}`;\n } else {\n return `publishers/google/models/${model}`;\n }\n } else {\n if (model.startsWith('models/') || model.startsWith('tunedModels/')) {\n return model;\n } else {\n return `models/${model}`;\n }\n }\n}\n\nexport function tCachesModel(\n apiClient: ApiClient,\n model: string | unknown,\n): string {\n const transformedModel = tModel(apiClient, model as string);\n if (!transformedModel) {\n return '';\n }\n\n if (transformedModel.startsWith('publishers/') && apiClient.isVertexAI()) {\n // vertex caches only support model name start with projects.\n return `projects/${apiClient.getProject()}/locations/${apiClient.getLocation()}/${transformedModel}`;\n } else if (transformedModel.startsWith('models/') && apiClient.isVertexAI()) {\n return `projects/${apiClient.getProject()}/locations/${apiClient.getLocation()}/publishers/google/${transformedModel}`;\n } else {\n return transformedModel;\n }\n}\n\nexport function tBlobs(\n blobs: types.BlobImageUnion | types.BlobImageUnion[],\n): types.Blob[] {\n if (Array.isArray(blobs)) {\n return blobs.map((blob) => tBlob(blob));\n } else {\n return [tBlob(blobs)];\n }\n}\n\nexport function tBlob(blob: types.BlobImageUnion): types.Blob {\n if (typeof blob === 'object' && blob !== null) {\n return blob;\n }\n\n throw new Error(\n `Could not parse input as Blob. Unsupported blob type: ${typeof blob}`,\n );\n}\n\nexport function tImageBlob(blob: types.BlobImageUnion): types.Blob {\n const transformedBlob = tBlob(blob);\n if (\n transformedBlob.mimeType &&\n transformedBlob.mimeType.startsWith('image/')\n ) {\n return transformedBlob;\n }\n throw new Error(`Unsupported mime type: ${transformedBlob.mimeType!}`);\n}\n\nexport function tAudioBlob(blob: types.Blob): types.Blob {\n const transformedBlob = tBlob(blob);\n if (\n transformedBlob.mimeType &&\n transformedBlob.mimeType.startsWith('audio/')\n ) {\n return transformedBlob;\n }\n throw new Error(`Unsupported mime type: ${transformedBlob.mimeType!}`);\n}\n\nexport function tPart(origin?: types.PartUnion | null): types.Part {\n if (origin === null || origin === undefined) {\n throw new Error('PartUnion is required');\n }\n if (typeof origin === 'object') {\n return origin;\n }\n if (typeof origin === 'string') {\n return {text: origin};\n }\n throw new Error(`Unsupported part type: ${typeof origin}`);\n}\n\nexport function tParts(origin?: types.PartListUnion | null): types.Part[] {\n if (\n origin === null ||\n origin === undefined ||\n (Array.isArray(origin) && origin.length === 0)\n ) {\n throw new Error('PartListUnion is required');\n }\n if (Array.isArray(origin)) {\n return origin.map((item) => tPart(item as types.PartUnion)!);\n }\n return [tPart(origin)!];\n}\n\nfunction _isContent(origin: unknown): boolean {\n return (\n origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'parts' in origin &&\n Array.isArray(origin.parts)\n );\n}\n\nfunction _isFunctionCallPart(origin: unknown): boolean {\n return (\n origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'functionCall' in origin\n );\n}\n\nfunction _isFunctionResponsePart(origin: unknown): boolean {\n return (\n origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'functionResponse' in origin\n );\n}\n\nexport function tContent(origin?: types.ContentUnion): types.Content {\n if (origin === null || origin === undefined) {\n throw new Error('ContentUnion is required');\n }\n if (_isContent(origin)) {\n // _isContent is a utility function that checks if the\n // origin is a Content.\n return origin as types.Content;\n }\n\n return {\n role: 'user',\n parts: tParts(origin as types.PartListUnion)!,\n };\n}\n\nexport function tContentsForEmbed(\n apiClient: ApiClient,\n origin: types.ContentListUnion,\n): types.ContentUnion[] {\n if (!origin) {\n return [];\n }\n if (apiClient.isVertexAI() && Array.isArray(origin)) {\n return origin.flatMap((item) => {\n const content = tContent(item as types.ContentUnion);\n if (\n content.parts &&\n content.parts.length > 0 &&\n content.parts[0].text !== undefined\n ) {\n return [content.parts[0].text];\n }\n return [];\n });\n } else if (apiClient.isVertexAI()) {\n const content = tContent(origin as types.ContentUnion);\n if (\n content.parts &&\n content.parts.length > 0 &&\n content.parts[0].text !== undefined\n ) {\n return [content.parts[0].text];\n }\n return [];\n }\n if (Array.isArray(origin)) {\n return origin.map((item) => tContent(item as types.ContentUnion)!);\n }\n return [tContent(origin as types.ContentUnion)!];\n}\n\nexport function tContents(origin?: types.ContentListUnion): types.Content[] {\n if (\n origin === null ||\n origin === undefined ||\n (Array.isArray(origin) && origin.length === 0)\n ) {\n throw new Error('contents are required');\n }\n if (!Array.isArray(origin)) {\n // If it's not an array, it's a single content or a single PartUnion.\n if (_isFunctionCallPart(origin) || _isFunctionResponsePart(origin)) {\n throw new Error(\n 'To specify functionCall or functionResponse parts, please wrap them in a Content object, specifying the role for them',\n );\n }\n return [tContent(origin as types.ContentUnion)];\n }\n\n const result: types.Content[] = [];\n const accumulatedParts: types.PartUnion[] = [];\n const isContentArray = _isContent(origin[0]);\n\n for (const item of origin) {\n const isContent = _isContent(item);\n\n if (isContent != isContentArray) {\n throw new Error(\n 'Mixing Content and Parts is not supported, please group the parts into a the appropriate Content objects and specify the roles for them',\n );\n }\n\n if (isContent) {\n // `isContent` contains the result of _isContent, which is a utility\n // function that checks if the item is a Content.\n result.push(item as types.Content);\n } else if (_isFunctionCallPart(item) || _isFunctionResponsePart(item)) {\n throw new Error(\n 'To specify functionCall or functionResponse parts, please wrap them, and any other parts, in Content objects as appropriate, specifying the role for them',\n );\n } else {\n accumulatedParts.push(item as types.PartUnion);\n }\n }\n\n if (!isContentArray) {\n result.push({role: 'user', parts: tParts(accumulatedParts)});\n }\n return result;\n}\n\n/*\nTransform the type field from an array of types to an array of anyOf fields.\nExample:\n {type: ['STRING', 'NUMBER']}\nwill be transformed to\n {anyOf: [{type: 'STRING'}, {type: 'NUMBER'}]}\n*/\nfunction flattenTypeArrayToAnyOf(\n typeList: string[],\n resultingSchema: types.Schema,\n) {\n if (typeList.includes('null')) {\n resultingSchema['nullable'] = true;\n }\n const listWithoutNull = typeList.filter((type) => type !== 'null');\n\n if (listWithoutNull.length === 1) {\n resultingSchema['type'] = Object.values(types.Type).includes(\n listWithoutNull[0].toUpperCase() as types.Type,\n )\n ? (listWithoutNull[0].toUpperCase() as types.Type)\n : types.Type.TYPE_UNSPECIFIED;\n } else {\n resultingSchema['anyOf'] = [];\n for (const i of listWithoutNull) {\n resultingSchema['anyOf'].push({\n 'type': Object.values(types.Type).includes(\n i.toUpperCase() as types.Type,\n )\n ? (i.toUpperCase() as types.Type)\n : types.Type.TYPE_UNSPECIFIED,\n });\n }\n }\n}\n\nexport function processJsonSchema(\n _jsonSchema: types.Schema | Record<string, unknown>,\n): types.Schema {\n const genAISchema: types.Schema = {};\n const schemaFieldNames = ['items'];\n const listSchemaFieldNames = ['anyOf'];\n const dictSchemaFieldNames = ['properties'];\n\n if (_jsonSchema['type'] && _jsonSchema['anyOf']) {\n throw new Error('type and anyOf cannot be both populated.');\n }\n\n /*\n This is to handle the nullable array or object. The _jsonSchema will\n be in the format of {anyOf: [{type: 'null'}, {type: 'object'}]}. The\n logic is to check if anyOf has 2 elements and one of the element is null,\n if so, the anyOf field is unnecessary, so we need to get rid of the anyOf\n field and make the schema nullable. Then use the other element as the new\n _jsonSchema for processing. This is because the backend doesn't have a null\n type.\n This has to be checked before we process any other fields.\n For example:\n const objectNullable = z.object({\n nullableArray: z.array(z.string()).nullable(),\n });\n Will have the raw _jsonSchema as:\n {\n type: 'OBJECT',\n properties: {\n nullableArray: {\n anyOf: [\n {type: 'null'},\n {\n type: 'array',\n items: {type: 'string'},\n },\n ],\n }\n },\n required: [ 'nullableArray' ],\n }\n Will result in following schema compatible with Gemini API:\n {\n type: 'OBJECT',\n properties: {\n nullableArray: {\n nullable: true,\n type: 'ARRAY',\n items: {type: 'string'},\n }\n },\n required: [ 'nullableArray' ],\n }\n */\n const incomingAnyOf = _jsonSchema['anyOf'] as Record<string, unknown>[];\n if (incomingAnyOf != null && incomingAnyOf.length == 2) {\n if (incomingAnyOf[0]!['type'] === 'null') {\n genAISchema['nullable'] = true;\n _jsonSchema = incomingAnyOf![1];\n } else if (incomingAnyOf[1]!['type'] === 'null') {\n genAISchema['nullable'] = true;\n _jsonSchema = incomingAnyOf![0];\n }\n }\n\n if (_jsonSchema['type'] instanceof Array) {\n flattenTypeArrayToAnyOf(_jsonSchema['type'], genAISchema);\n }\n\n for (const [fieldName, fieldValue] of Object.entries(_jsonSchema)) {\n // Skip if the fieldvalue is undefined or null.\n if (fieldValue == null) {\n continue;\n }\n\n if (fieldName == 'type') {\n if (fieldValue === 'null') {\n throw new Error(\n 'type: null can not be the only possible type for the field.',\n );\n }\n if (fieldValue instanceof Array) {\n // we have already handled the type field with array of types in the\n // beginning of this function.\n continue;\n }\n genAISchema['type'] = Object.values(types.Type).includes(\n fieldValue.toUpperCase() as types.Type,\n )\n ? fieldValue.toUpperCase()\n : types.Type.TYPE_UNSPECIFIED;\n } else if (schemaFieldNames.includes(fieldName)) {\n (genAISchema as Record<string, unknown>)[fieldName] =\n processJsonSchema(fieldValue);\n } else if (listSchemaFieldNames.includes(fieldName)) {\n const listSchemaFieldValue: Array<types.Schema> = [];\n for (const item of fieldValue) {\n if (item['type'] == 'null') {\n genAISchema['nullable'] = true;\n continue;\n }\n listSchemaFieldValue.push(\n processJsonSchema(item as Record<string, unknown>),\n );\n }\n (genAISchema as Record<string, unknown>)[fieldName] =\n listSchemaFieldValue;\n } else if (dictSchemaFieldNames.includes(fieldName)) {\n const dictSchemaFieldValue: Record<string, types.Schema> = {};\n for (const [key, value] of Object.entries(\n fieldValue as Record<string, unknown>,\n )) {\n dictSchemaFieldValue[key] = processJsonSchema(\n value as Record<string, unknown>,\n );\n }\n (genAISchema as Record<string, unknown>)[fieldName] =\n dictSchemaFieldValue;\n } else {\n // additionalProperties is not included in JSONSchema, skipping it.\n if (fieldName === 'additionalProperties') {\n continue;\n }\n (genAISchema as Record<string, unknown>)[fieldName] = fieldValue;\n }\n }\n return genAISchema;\n}\n\n// we take the unknown in the schema field because we want enable user to pass\n// the output of major schema declaration tools without casting. Tools such as\n// zodToJsonSchema, typebox, zodToJsonSchema function can return JsonSchema7Type\n// or object, see details in\n// https://github.com/StefanTerdell/zod-to-json-schema/blob/70525efe555cd226691e093d171370a3b10921d1/src/zodToJsonSchema.ts#L7\n// typebox can return unknown, see details in\n// https://github.com/sinclairzx81/typebox/blob/5a5431439f7d5ca6b494d0d18fbfd7b1a356d67c/src/type/create/type.ts#L35\n// Note: proper json schemas with the $schema field set never arrive to this\n// transformer. Schemas with $schema are routed to the equivalent API json\n// schema field.\nexport function tSchema(schema: types.Schema | unknown): types.Schema {\n return processJsonSchema(schema as types.Schema);\n}\n\nexport function tSpeechConfig(\n speechConfig: types.SpeechConfigUnion,\n): types.SpeechConfig {\n if (typeof speechConfig === 'object') {\n return speechConfig;\n } else if (typeof speechConfig === 'string') {\n return {\n voiceConfig: {\n prebuiltVoiceConfig: {\n voiceName: speechConfig,\n },\n },\n };\n } else {\n throw new Error(`Unsupported speechConfig type: ${typeof speechConfig}`);\n }\n}\n\nexport function tLiveSpeechConfig(\n speechConfig: types.SpeechConfig | object,\n): types.SpeechConfig {\n if ('multiSpeakerVoiceConfig' in speechConfig) {\n throw new Error(\n 'multiSpeakerVoiceConfig is not supported in the live API.',\n );\n }\n return speechConfig;\n}\n\nexport function tTool(tool: types.Tool): types.Tool {\n if (tool.functionDeclarations) {\n for (const functionDeclaration of tool.functionDeclarations) {\n if (functionDeclaration.parameters) {\n if (!Object.keys(functionDeclaration.parameters).includes('$schema')) {\n functionDeclaration.parameters = processJsonSchema(\n functionDeclaration.parameters,\n );\n } else {\n if (!functionDeclaration.parametersJsonSchema) {\n functionDeclaration.parametersJsonSchema =\n functionDeclaration.parameters;\n delete functionDeclaration.parameters;\n }\n }\n }\n if (functionDeclaration.response) {\n if (!Object.keys(functionDeclaration.response).includes('$schema')) {\n functionDeclaration.response = processJsonSchema(\n functionDeclaration.response,\n );\n } else {\n if (!functionDeclaration.responseJsonSchema) {\n functionDeclaration.responseJsonSchema =\n functionDeclaration.response;\n delete functionDeclaration.response;\n }\n }\n }\n }\n }\n return tool;\n}\n\nexport function tTools(tools: types.ToolListUnion | unknown): types.Tool[] {\n // Check if the incoming type is defined.\n if (tools === undefined || tools === null) {\n throw new Error('tools is required');\n }\n if (!Array.isArray(tools)) {\n throw new Error('tools is required and must be an array of Tools');\n }\n const result: types.Tool[] = [];\n for (const tool of tools) {\n result.push(tool as types.Tool);\n }\n return result;\n}\n\n/**\n * Prepends resource name with project, location, resource_prefix if needed.\n *\n * @param client The API client.\n * @param resourceName The resource name.\n * @param resourcePrefix The resource prefix.\n * @param splitsAfterPrefix The number of splits after the prefix.\n * @returns The completed resource name.\n *\n * Examples:\n *\n * ```\n * resource_name = '123'\n * resource_prefix = 'cachedContents'\n * splits_after_prefix = 1\n * client.vertexai = True\n * client.project = 'bar'\n * client.location = 'us-west1'\n * _resource_name(client, resource_name, resource_prefix, splits_after_prefix)\n * returns: 'projects/bar/locations/us-west1/cachedContents/123'\n * ```\n *\n * ```\n * resource_name = 'projects/foo/locations/us-central1/cachedContents/123'\n * resource_prefix = 'cachedContents'\n * splits_after_prefix = 1\n * client.vertexai = True\n * client.project = 'bar'\n * client.location = 'us-west1'\n * _resource_name(client, resource_name, resource_prefix, splits_after_prefix)\n * returns: 'projects/foo/locations/us-central1/cachedContents/123'\n * ```\n *\n * ```\n * resource_name = '123'\n * resource_prefix = 'cachedContents'\n * splits_after_prefix = 1\n * client.vertexai = False\n * _resource_name(client, resource_name, resource_prefix, splits_after_prefix)\n * returns 'cachedContents/123'\n * ```\n *\n * ```\n * resource_name = 'some/wrong/cachedContents/resource/name/123'\n * resource_prefix = 'cachedContents'\n * splits_after_prefix = 1\n * client.vertexai = False\n * # client.vertexai = True\n * _resource_name(client, resource_name, resource_prefix, splits_after_prefix)\n * -> 'some/wrong/resource/name/123'\n * ```\n */\nfunction resourceName(\n client: ApiClient,\n resourceName: string,\n resourcePrefix: string,\n splitsAfterPrefix: number = 1,\n): string {\n const shouldAppendPrefix =\n !resourceName.startsWith(`${resourcePrefix}/`) &&\n resourceName.split('/').length === splitsAfterPrefix;\n if (client.isVertexAI()) {\n if (resourceName.startsWith('projects/')) {\n return resourceName;\n } else if (resourceName.startsWith('locations/')) {\n return `projects/${client.getProject()}/${resourceName}`;\n } else if (resourceName.startsWith(`${resourcePrefix}/`)) {\n return `projects/${client.getProject()}/locations/${client.getLocation()}/${resourceName}`;\n } else if (shouldAppendPrefix) {\n return `projects/${client.getProject()}/locations/${client.getLocation()}/${resourcePrefix}/${resourceName}`;\n } else {\n return resourceName;\n }\n }\n if (shouldAppendPrefix) {\n return `${resourcePrefix}/${resourceName}`;\n }\n return resourceName;\n}\n\nexport function tCachedContentName(\n apiClient: ApiClient,\n name: string | unknown,\n): string {\n if (typeof name !== 'string') {\n throw new Error('name must be a string');\n }\n return resourceName(apiClient, name, 'cachedContents');\n}\n\nexport function tTuningJobStatus(status: string | unknown): string {\n switch (status) {\n case 'STATE_UNSPECIFIED':\n return 'JOB_STATE_UNSPECIFIED';\n case 'CREATING':\n return 'JOB_STATE_RUNNING';\n case 'ACTIVE':\n return 'JOB_STATE_SUCCEEDED';\n case 'FAILED':\n return 'JOB_STATE_FAILED';\n default:\n return status as string;\n }\n}\n\nexport function tBytes(fromImageBytes: string | unknown): string {\n return baseTransformers.tBytes(fromImageBytes);\n}\n\nfunction _isFile(origin: unknown): boolean {\n return (\n origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'name' in origin\n );\n}\n\nexport function isGeneratedVideo(origin: unknown): boolean {\n return (\n origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'video' in origin\n );\n}\n\nexport function isVideo(origin: unknown): boolean {\n return (\n origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'uri' in origin\n );\n}\n\nexport function tFileName(\n fromName: string | types.File | types.GeneratedVideo | types.Video,\n): string | undefined {\n let name: string | undefined;\n\n if (_isFile(fromName)) {\n name = (fromName as types.File).name;\n }\n if (isVideo(fromName)) {\n name = (fromName as types.Video).uri;\n if (name === undefined) {\n return undefined;\n }\n }\n if (isGeneratedVideo(fromName)) {\n name = (fromName as types.GeneratedVideo).video?.uri;\n if (name === undefined) {\n return undefined;\n }\n }\n if (typeof fromName === 'string') {\n name = fromName;\n }\n\n if (name === undefined) {\n throw new Error('Could not extract file name from the provided input.');\n }\n\n if (name.startsWith('https://')) {\n const suffix = name.split('files/')[1];\n const match = suffix.match(/[a-z0-9]+/);\n if (match === null) {\n throw new Error(`Could not extract file name from URI ${name}`);\n }\n name = match[0];\n } else if (name.startsWith('files/')) {\n name = name.split('files/')[1];\n }\n return name;\n}\n\nexport function tModelsUrl(\n apiClient: ApiClient,\n baseModels: boolean | unknown,\n): string {\n let res: string;\n if (apiClient.isVertexAI()) {\n res = baseModels ? 'publishers/google/models' : 'models';\n } else {\n res = baseModels ? 'models' : 'tunedModels';\n }\n return res;\n}\n\nexport function tExtractModels(response: unknown): Record<string, unknown>[] {\n for (const key of ['models', 'tunedModels', 'publisherModels']) {\n if (hasField(response, key)) {\n return (response as Record<string, unknown>)[key] as Record<\n string,\n unknown\n >[];\n }\n }\n return [];\n}\n\nfunction hasField(data: unknown, fieldName: string): boolean {\n return data !== null && typeof data === 'object' && fieldName in data;\n}\n\nexport function mcpToGeminiTool(\n mcpTool: McpTool,\n config: types.CallableToolConfig = {},\n): types.Tool {\n const mcpToolSchema = mcpTool as Record<string, unknown>;\n const functionDeclaration: Record<string, unknown> = {\n name: mcpToolSchema['name'],\n description: mcpToolSchema['description'],\n parametersJsonSchema: mcpToolSchema['inputSchema'],\n };\n if (mcpToolSchema['outputSchema']) {\n functionDeclaration['responseJsonSchema'] = mcpToolSchema['outputSchema'];\n }\n if (config.behavior) {\n functionDeclaration['behavior'] = config.behavior;\n }\n\n const geminiTool = {\n functionDeclarations: [\n functionDeclaration as unknown as types.FunctionDeclaration,\n ],\n };\n\n return geminiTool;\n}\n\n/**\n * Converts a list of MCP tools to a single Gemini tool with a list of function\n * declarations.\n */\nexport function mcpToolsToGeminiTool(\n mcpTools: McpTool[],\n config: types.CallableToolConfig = {},\n): types.Tool {\n const functionDeclarations: types.FunctionDeclaration[] = [];\n const toolNames = new Set<string>();\n for (const mcpTool of mcpTools) {\n const mcpToolName = mcpTool.name as string;\n if (toolNames.has(mcpToolName)) {\n throw new Error(\n `Duplicate function name ${\n mcpToolName\n } found in MCP tools. Please ensure function names are unique.`,\n );\n }\n toolNames.add(mcpToolName);\n const geminiTool = mcpToGeminiTool(mcpTool, config);\n if (geminiTool.functionDeclarations) {\n functionDeclarations.push(...geminiTool.functionDeclarations);\n }\n }\n\n return {functionDeclarations: functionDeclarations};\n}\n\n// Transforms a source input into a BatchJobSource object with validation.\nexport function tBatchJobSource(\n client: ApiClient,\n src: string | types.InlinedRequest[] | types.BatchJobSource,\n): types.BatchJobSource {\n let sourceObj: types.BatchJobSource;\n\n if (typeof src === 'string') {\n if (client.isVertexAI()) {\n if (src.startsWith('gs://')) {\n sourceObj = {format: 'jsonl', gcsUri: [src]};\n } else if (src.startsWith('bq://')) {\n sourceObj = {format: 'bigquery', bigqueryUri: src};\n } else {\n throw new Error(`Unsupported string source for Vertex AI: ${src}`);\n }\n } else {\n // MLDEV\n if (src.startsWith('files/')) {\n sourceObj = {fileName: src}; // Default to fileName for string input\n } else {\n throw new Error(`Unsupported string source for Gemini API: ${src}`);\n }\n }\n } else if (Array.isArray(src)) {\n if (client.isVertexAI()) {\n throw new Error('InlinedRequest[] is not supported in Vertex AI.');\n }\n sourceObj = {inlinedRequests: src};\n } else {\n // It's already a BatchJobSource object\n sourceObj = src;\n }\n\n // Validation logic\n const vertexSourcesCount = [sourceObj.gcsUri, sourceObj.bigqueryUri].filter(\n Boolean,\n ).length;\n\n const mldevSourcesCount = [\n sourceObj.inlinedRequests,\n sourceObj.fileName,\n ].filter(Boolean).length;\n\n if (client.isVertexAI()) {\n if (mldevSourcesCount > 0 || vertexSourcesCount !== 1) {\n throw new Error(\n 'Exactly one of `gcsUri` or `bigqueryUri` must be set for Vertex AI.',\n );\n }\n } else {\n // MLDEV\n if (vertexSourcesCount > 0 || mldevSourcesCount !== 1) {\n throw new Error(\n 'Exactly one of `inlinedRequests`, `fileName`, ' +\n 'must be set for Gemini API.',\n );\n }\n }\n\n return sourceObj;\n}\n\nexport function tEmbeddingBatchJobSource(\n client: ApiClient,\n src: types.EmbeddingsBatchJobSource,\n): types.EmbeddingsBatchJobSource {\n if (client.isVertexAI()) {\n throw new Error('Embedding batch jobs are not supported in Vertex AI.');\n }\n\n const sourceObj: types.EmbeddingsBatchJobSource = {...src};\n\n const mldevSources =\n Number(!!sourceObj.inlinedRequests) + Number(!!sourceObj.fileName);\n\n if (mldevSources !== 1) {\n throw new Error(\n 'Exactly one of `inlinedRequests` or `fileName` must be set for Embedding Batch Jobs in the Gemini API.',\n );\n }\n return sourceObj;\n}\n\nexport function tBatchJobDestination(\n dest: string | types.BatchJobDestination,\n): types.BatchJobDestination {\n if (typeof dest !== 'string') {\n return dest as types.BatchJobDestination;\n }\n const destString = dest as string;\n if (destString.startsWith('gs://')) {\n return {\n format: 'jsonl',\n gcsUri: destString,\n };\n } else if (destString.startsWith('bq://')) {\n return {\n format: 'bigquery',\n bigqueryUri: destString,\n };\n } else {\n throw new Error(`Unsupported destination: ${destString}`);\n }\n}\n\nexport function tRecvBatchJobDestination(\n dest: unknown,\n): types.BatchJobDestination {\n // Ensure dest is a non-null object before proceeding.\n if (typeof dest !== 'object' || dest === null) {\n // If the input is not an object, it cannot be a valid BatchJobDestination\n // based on the operations performed. Return it cast, or handle as an error.\n // Casting an empty object might be a safe default.\n return {} as types.BatchJobDestination;\n }\n\n // Cast to Record<string, unknown> to allow string property access.\n const obj = dest as Record<string, unknown>;\n\n // Safely access nested properties.\n const inlineResponsesVal = obj['inlinedResponses'];\n if (typeof inlineResponsesVal !== 'object' || inlineResponsesVal === null) {\n return dest as types.BatchJobDestination;\n }\n const inlineResponsesObj = inlineResponsesVal as Record<string, unknown>;\n\n const responsesArray = inlineResponsesObj['inlinedResponses'];\n if (!Array.isArray(responsesArray) || responsesArray.length === 0) {\n return dest as types.BatchJobDestination;\n }\n\n // Check if any response has the 'embedding' property.\n let hasEmbedding = false;\n for (const responseItem of responsesArray) {\n if (typeof responseItem !== 'object' || responseItem === null) {\n continue;\n }\n const responseItemObj = responseItem as Record<string, unknown>;\n\n const responseVal = responseItemObj['response'];\n if (typeof responseVal !== 'object' || responseVal === null) {\n continue;\n }\n const responseObj = responseVal as Record<string, unknown>;\n\n // Check for the existence of the 'embedding' key.\n if (responseObj['embedding'] !== undefined) {\n hasEmbedding = true;\n break;\n }\n }\n\n // Perform the transformation if an embedding was found.\n if (hasEmbedding) {\n obj['inlinedEmbedContentResponses'] = obj['inlinedResponses'];\n delete obj['inlinedResponses'];\n }\n\n // Cast the (potentially) modified object to the target type.\n return dest as types.BatchJobDestination;\n}\n\nexport function tBatchJobName(apiClient: ApiClient, name: unknown): string {\n const nameString = name as string;\n if (!apiClient.isVertexAI()) {\n const mldevPattern = /batches\\/[^/]+$/;\n\n if (mldevPattern.test(nameString)) {\n return nameString.split('/').pop() as string;\n } else {\n throw new Error(`Invalid batch job name: ${nameString}.`);\n }\n }\n\n const vertexPattern =\n /^projects\\/[^/]+\\/locations\\/[^/]+\\/batchPredictionJobs\\/[^/]+$/;\n\n if (vertexPattern.test(nameString)) {\n return nameString.split('/').pop() as string;\n } else if (/^\\d+$/.test(nameString)) {\n return nameString;\n } else {\n throw new Error(`Invalid batch job name: ${nameString}.`);\n }\n}\n\nexport function tJobState(state: unknown): string {\n const stateString = state as string;\n if (stateString === 'BATCH_STATE_UNSPECIFIED') {\n return 'JOB_STATE_UNSPECIFIED';\n } else if (stateString === 'BATCH_STATE_PENDING') {\n return 'JOB_STATE_PENDING';\n } else if (stateString === 'BATCH_STATE_RUNNING') {\n return 'JOB_STATE_RUNNING';\n } else if (stateString === 'BATCH_STATE_SUCCEEDED') {\n return 'JOB_STATE_SUCCEEDED';\n } else if (stateString === 'BATCH_STATE_FAILED') {\n return 'JOB_STATE_FAILED';\n } else if (stateString === 'BATCH_STATE_CANCELLED') {\n return 'JOB_STATE_CANCELLED';\n } else if (stateString === 'BATCH_STATE_EXPIRED') {\n return 'JOB_STATE_EXPIRED';\n } else {\n return stateString;\n }\n}\n","/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * TypeScript representation of the SentencePiece model protobuf.\n * Translated from sentencepiece_model.proto\n */\n\nexport enum ModelType {\n UNIGRAM = 1,\n BPE = 2,\n WORD = 3,\n CHAR = 4,\n}\n\nexport enum SentencePieceType {\n NORMAL = 1,\n UNKNOWN = 2,\n CONTROL = 3,\n USER_DEFINED = 4,\n BYTE = 6,\n UNUSED = 5,\n}\n\nexport interface TrainerSpec {\n modelType?: ModelType;\n vocabSize?: number;\n characterCoverage?: number;\n byteFallback?: boolean;\n unkSurface?: string;\n // Add other fields as needed\n}\n\nexport interface NormalizerSpec {\n name?: string;\n precompiledCharsmap?: Uint8Array;\n addDummyPrefix?: boolean;\n removeExtraWhitespaces?: boolean;\n escapeWhitespaces?: boolean;\n normalizationRuleTsv?: string;\n}\n\nexport interface SentencePiece {\n piece?: string;\n score?: number;\n type?: SentencePieceType;\n}\n\nexport interface ModelProto {\n pieces?: SentencePiece[];\n trainerSpec?: TrainerSpec;\n normalizerSpec?: NormalizerSpec;\n}\n","/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * PrefixMatcher helps find longest prefixes using a trie data structure.\n * Translated from go-sentencepiece/internal/prefixmatcher\n */\n\ninterface TrieNode {\n children: Map<string, TrieNode>;\n final: boolean;\n}\n\nfunction newTrieNode(): TrieNode {\n return {\n children: new Map(),\n final: false,\n };\n}\n\n/**\n * PrefixMatcher finds the longest prefix of a string that matches\n * a vocabulary word using a trie data structure.\n */\nexport class PrefixMatcher {\n private root: TrieNode;\n\n /**\n * Creates a new PrefixMatcher from a set of vocabulary strings.\n */\n constructor(vocab: Set<string>) {\n this.root = newTrieNode();\n for (const word of vocab) {\n this.add(word);\n }\n }\n\n /**\n * Finds the longest prefix of text that matches a vocabulary word.\n * Returns the length of the prefix, or 0 if no prefix was found.\n */\n findPrefixLen(text: string): number {\n let node = this.root;\n let maxLen = 0;\n\n let i = 0;\n for (const char of text) {\n const child = node.children.get(char);\n if (!child) {\n return maxLen;\n }\n if (child.final) {\n maxLen = i + 1;\n }\n node = child;\n i++;\n }\n\n return maxLen;\n }\n\n /**\n * Adds a word to the trie.\n */\n private add(word: string): void {\n let node = this.root;\n\n for (const char of word) {\n let child = node.children.get(char);\n if (!child) {\n child = newTrieNode();\n node.children.set(char, child);\n }\n node = child;\n }\n\n node.final = true;\n }\n}\n","/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * Generic priority queue with Insert, PopMax, and RemoveFunc operations.\n * Translated from go-sentencepiece/internal/priorityqueue\n *\n * Uses a binary heap data structure where items[0] is unused,\n * and elements are stored at indices 1...N.\n */\nexport class PriorityQueue<T> {\n private cmp: (a: T, b: T) => number;\n private items: T[];\n\n /**\n * Creates a new PriorityQueue.\n *\n * @param sizeHint Initial capacity hint for the queue\n * @param cmp Comparison function that returns > 0 if a has higher priority than b,\n * 0 if equal priority, < 0 otherwise\n */\n constructor(sizeHint: number, cmp: (a: T, b: T) => number) {\n this.cmp = cmp;\n this.items = new Array(Math.max(1, sizeHint + 1));\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.items[0] = null as any;\n this.items.length = 1;\n }\n\n /**\n * Returns the number of items in the queue.\n */\n len(): number {\n return this.items.length - 1;\n }\n\n /**\n * Inserts a new element into the priority queue.\n */\n insert(elem: T): void {\n this.items.push(elem);\n this.siftUp(this.items.length - 1);\n }\n\n /**\n * Returns and removes the element with the maximal priority.\n * Throws if the queue is empty.\n */\n popMax(): T {\n if (this.items.length < 2) {\n throw new Error('popping from empty priority queue');\n }\n const maxItem = this.items[1];\n this.items[1] = this.items[this.items.length - 1];\n this.items.pop();\n if (this.items.length > 1) {\n this.siftDown(1);\n }\n return maxItem;\n }\n\n /**\n * Removes all elements for which the predicate returns true.\n */\n removeFunc(rm: (elem: T) => boolean): void {\n let i = 1;\n while (i < this.items.length && !rm(this.items[i])) {\n i++;\n }\n if (i === this.items.length) {\n return;\n }\n\n for (let j = i + 1; j < this.items.length; j++) {\n if (!rm(this.items[j])) {\n this.items[i] = this.items[j];\n i++;\n }\n }\n\n this.items.length = i;\n\n this.rebuildHeap();\n }\n\n /**\n * Rebuilds the entire heap from scratch.\n */\n private rebuildHeap(): void {\n for (let i = Math.floor(this.items.length / 2); i >= 1; i--) {\n this.siftDown(i);\n }\n }\n\n /**\n * Moves an element up the heap until heap property is restored.\n */\n private siftUp(n: number): void {\n let i = n;\n while (i > 1) {\n const p = Math.floor(i / 2);\n if (this.cmp(this.items[p], this.items[i]) >= 0) {\n return;\n }\n [this.items[i], this.items[p]] = [this.items[p], this.items[i]];\n i = p;\n }\n }\n\n /**\n * Moves an element down the heap until heap property is restored.\n */\n private siftDown(i: number): void {\n // eslint-disable-next-line\n while (true) {\n const c = 2 * i;\n if (c >= this.items.length) {\n return;\n }\n\n let maxChild = c;\n if (c + 1 < this.items.length) {\n if (this.cmp(this.items[c + 1], this.items[c]) > 0) {\n maxChild = c + 1;\n }\n }\n\n if (this.cmp(this.items[i], this.items[maxChild]) >= 0) {\n return;\n }\n\n [this.items[i], this.items[maxChild]] = [\n this.items[maxChild],\n this.items[i],\n ];\n i = maxChild;\n }\n }\n}\n","/*eslint-disable block-scoped-var, id-length, no-control-regex,\n * no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var,\n * sort-vars*/\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport $protobuf from 'protobufjs/minimal.js';\n\n// Common aliases\nconst $Reader = $protobuf.Reader, $Writer = $protobuf.Writer,\n $util = $protobuf.util;\n\n// Exported root namespace\nconst $root = $protobuf.roots['default'] || ($protobuf.roots['default'] = {});\n\nexport const sentencepiece = $root.sentencepiece = (() => {\n /**\n * Namespace sentencepiece.\n * @exports sentencepiece\n * @namespace\n */\n const sentencepiece = {};\n\n sentencepiece.TrainerSpec = (function() {\n /**\n * Properties of a TrainerSpec.\n * @memberof sentencepiece\n * @interface ITrainerSpec\n * @property {Array.<string>|null} [input] TrainerSpec input\n * @property {string|null} [inputFormat] TrainerSpec inputFormat\n * @property {string|null} [modelPrefix] TrainerSpec modelPrefix\n * @property {sentencepiece.TrainerSpec.ModelType|null} [modelType]\n * TrainerSpec modelType\n * @property {number|null} [vocabSize] TrainerSpec vocabSize\n * @property {Array.<string>|null} [acceptLanguage] TrainerSpec\n * acceptLanguage\n * @property {number|null} [selfTestSampleSize] TrainerSpec\n * selfTestSampleSize\n * @property {boolean|null} [enableDifferentialPrivacy] TrainerSpec\n * enableDifferentialPrivacy\n * @property {number|null} [differentialPrivacyNoiseLevel] TrainerSpec\n * differentialPrivacyNoiseLevel\n * @property {number|Long|null} [differentialPrivacyClippingThreshold]\n * TrainerSpec differentialPrivacyClippingThreshold\n * @property {number|null} [characterCoverage] TrainerSpec characterCoverage\n * @property {number|Long|null} [inputSentenceSize] TrainerSpec\n * inputSentenceSize\n * @property {boolean|null} [shuffleInputSentence] TrainerSpec\n * shuffleInputSentence\n * @property {number|null} [miningSentenceSize] TrainerSpec\n * miningSentenceSize\n * @property {number|null} [trainingSentenceSize] TrainerSpec\n * trainingSentenceSize\n * @property {number|null} [seedSentencepieceSize] TrainerSpec\n * seedSentencepieceSize\n * @property {number|null} [shrinkingFactor] TrainerSpec shrinkingFactor\n * @property {number|null} [maxSentenceLength] TrainerSpec maxSentenceLength\n * @property {number|null} [numThreads] TrainerSpec numThreads\n * @property {number|null} [numSubIterations] TrainerSpec numSubIterations\n * @property {number|null} [maxSentencepieceLength] TrainerSpec\n * maxSentencepieceLength\n * @property {boolean|null} [splitByUnicodeScript] TrainerSpec\n * splitByUnicodeScript\n * @property {boolean|null} [splitByNumber] TrainerSpec splitByNumber\n * @property {boolean|null} [splitByWhitespace] TrainerSpec\n * splitByWhitespace\n * @property {boolean|null} [treatWhitespaceAsSuffix] TrainerSpec\n * treatWhitespaceAsSuffix\n * @property {boolean|null} [allowWhitespaceOnlyPieces] TrainerSpec\n * allowWhitespaceOnlyPieces\n * @property {boolean|null} [splitDigits] TrainerSpec splitDigits\n * @property {string|null} [pretokenizationDelimiter] TrainerSpec\n * pretokenizationDelimiter\n * @property {Array.<string>|null} [controlSymbols] TrainerSpec\n * controlSymbols\n * @property {Array.<string>|null} [userDefinedSymbols] TrainerSpec\n * userDefinedSymbols\n * @property {string|null} [requiredChars] TrainerSpec requiredChars\n * @property {boolean|null} [byteFallback] TrainerSpec byteFallback\n * @property {boolean|null} [vocabularyOutputPieceScore] TrainerSpec\n * vocabularyOutputPieceScore\n * @property {boolean|null} [hardVocabLimit] TrainerSpec hardVocabLimit\n * @property {boolean|null} [useAllVocab] TrainerSpec useAllVocab\n * @property {number|null} [unkId] TrainerSpec unkId\n * @property {number|null} [bosId] TrainerSpec bosId\n * @property {number|null} [eosId] TrainerSpec eosId\n * @property {number|null} [padId] TrainerSpec padId\n * @property {string|null} [unkPiece] TrainerSpec unkPiece\n * @property {string|null} [bosPiece] TrainerSpec bosPiece\n * @property {string|null} [eosPiece] TrainerSpec eosPiece\n * @property {string|null} [padPiece] TrainerSpec padPiece\n * @property {string|null} [unkSurface] TrainerSpec unkSurface\n * @property {boolean|null} [trainExtremelyLargeCorpus] TrainerSpec\n * trainExtremelyLargeCorpus\n * @property {string|null} [seedSentencepiecesFile] TrainerSpec\n * seedSentencepiecesFile\n */\n\n /**\n * Constructs a new TrainerSpec.\n * @memberof sentencepiece\n * @classdesc Represents a TrainerSpec.\n * @implements ITrainerSpec\n * @constructor\n * @param {sentencepiece.ITrainerSpec=} [properties] Properties to set\n */\n function TrainerSpec(properties) {\n this.input = [];\n this.acceptLanguage = [];\n this.controlSymbols = [];\n this.userDefinedSymbols = [];\n if (properties)\n for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]];\n }\n\n /**\n * TrainerSpec input.\n * @member {Array.<string>} input\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.input = $util.emptyArray;\n\n /**\n * TrainerSpec inputFormat.\n * @member {string} inputFormat\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.inputFormat = '';\n\n /**\n * TrainerSpec modelPrefix.\n * @member {string} modelPrefix\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.modelPrefix = '';\n\n /**\n * TrainerSpec modelType.\n * @member {sentencepiece.TrainerSpec.ModelType} modelType\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.modelType = 1;\n\n /**\n * TrainerSpec vocabSize.\n * @member {number} vocabSize\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.vocabSize = 8000;\n\n /**\n * TrainerSpec acceptLanguage.\n * @member {Array.<string>} acceptLanguage\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.acceptLanguage = $util.emptyArray;\n\n /**\n * TrainerSpec selfTestSampleSize.\n * @member {number} selfTestSampleSize\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.selfTestSampleSize = 0;\n\n /**\n * TrainerSpec enableDifferentialPrivacy.\n * @member {boolean} enableDifferentialPrivacy\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.enableDifferentialPrivacy = false;\n\n /**\n * TrainerSpec differentialPrivacyNoiseLevel.\n * @member {number} differentialPrivacyNoiseLevel\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.differentialPrivacyNoiseLevel = 0;\n\n /**\n * TrainerSpec differentialPrivacyClippingThreshold.\n * @member {number|Long} differentialPrivacyClippingThreshold\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.differentialPrivacyClippingThreshold =\n $util.Long ? $util.Long.fromBits(0, 0, true) : 0;\n\n /**\n * TrainerSpec characterCoverage.\n * @member {number} characterCoverage\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.characterCoverage = 0.9995;\n\n /**\n * TrainerSpec inputSentenceSize.\n * @member {number|Long} inputSentenceSize\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.inputSentenceSize =\n $util.Long ? $util.Long.fromBits(0, 0, true) : 0;\n\n /**\n * TrainerSpec shuffleInputSentence.\n * @member {boolean} shuffleInputSentence\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.shuffleInputSentence = true;\n\n /**\n * TrainerSpec miningSentenceSize.\n * @member {number} miningSentenceSize\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.miningSentenceSize = 0;\n\n /**\n * TrainerSpec trainingSentenceSize.\n * @member {number} trainingSentenceSize\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.trainingSentenceSize = 0;\n\n /**\n * TrainerSpec seedSentencepieceSize.\n * @member {number} seedSentencepieceSize\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.seedSentencepieceSize = 1000000;\n\n /**\n * TrainerSpec shrinkingFactor.\n * @member {number} shrinkingFactor\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.shrinkingFactor = 0.75;\n\n /**\n * TrainerSpec maxSentenceLength.\n * @member {number} maxSentenceLength\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.maxSentenceLength = 4192;\n\n /**\n * TrainerSpec numThreads.\n * @member {number} numThreads\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.numThreads = 16;\n\n /**\n * TrainerSpec numSubIterations.\n * @member {number} numSubIterations\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.numSubIterations = 2;\n\n /**\n * TrainerSpec maxSentencepieceLength.\n * @member {number} maxSentencepieceLength\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.maxSentencepieceLength = 16;\n\n /**\n * TrainerSpec splitByUnicodeScript.\n * @member {boolean} splitByUnicodeScript\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.splitByUnicodeScript = true;\n\n /**\n * TrainerSpec splitByNumber.\n * @member {boolean} splitByNumber\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.splitByNumber = true;\n\n /**\n * TrainerSpec splitByWhitespace.\n * @member {boolean} splitByWhitespace\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.splitByWhitespace = true;\n\n /**\n * TrainerSpec treatWhitespaceAsSuffix.\n * @member {boolean} treatWhitespaceAsSuffix\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.treatWhitespaceAsSuffix = false;\n\n /**\n * TrainerSpec allowWhitespaceOnlyPieces.\n * @member {boolean} allowWhitespaceOnlyPieces\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.allowWhitespaceOnlyPieces = false;\n\n /**\n * TrainerSpec splitDigits.\n * @member {boolean} splitDigits\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.splitDigits = false;\n\n /**\n * TrainerSpec pretokenizationDelimiter.\n * @member {string} pretokenizationDelimiter\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.pretokenizationDelimiter = '';\n\n /**\n * TrainerSpec controlSymbols.\n * @member {Array.<string>} controlSymbols\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.controlSymbols = $util.emptyArray;\n\n /**\n * TrainerSpec userDefinedSymbols.\n * @member {Array.<string>} userDefinedSymbols\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.userDefinedSymbols = $util.emptyArray;\n\n /**\n * TrainerSpec requiredChars.\n * @member {string} requiredChars\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.requiredChars = '';\n\n /**\n * TrainerSpec byteFallback.\n * @member {boolean} byteFallback\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.byteFallback = false;\n\n /**\n * TrainerSpec vocabularyOutputPieceScore.\n * @member {boolean} vocabularyOutputPieceScore\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.vocabularyOutputPieceScore = true;\n\n /**\n * TrainerSpec hardVocabLimit.\n * @member {boolean} hardVocabLimit\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.hardVocabLimit = true;\n\n /**\n * TrainerSpec useAllVocab.\n * @member {boolean} useAllVocab\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.useAllVocab = false;\n\n /**\n * TrainerSpec unkId.\n * @member {number} unkId\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.unkId = 0;\n\n /**\n * TrainerSpec bosId.\n * @member {number} bosId\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.bosId = 1;\n\n /**\n * TrainerSpec eosId.\n * @member {number} eosId\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.eosId = 2;\n\n /**\n * TrainerSpec padId.\n * @member {number} padId\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.padId = -1;\n\n /**\n * TrainerSpec unkPiece.\n * @member {string} unkPiece\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.unkPiece = '<unk>';\n\n /**\n * TrainerSpec bosPiece.\n * @member {string} bosPiece\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.bosPiece = '<s>';\n\n /**\n * TrainerSpec eosPiece.\n * @member {string} eosPiece\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.eosPiece = '</s>';\n\n /**\n * TrainerSpec padPiece.\n * @member {string} padPiece\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.padPiece = '<pad>';\n\n /**\n * TrainerSpec unkSurface.\n * @member {string} unkSurface\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.unkSurface = ' E28187 ';\n\n /**\n * TrainerSpec trainExtremelyLargeCorpus.\n * @member {boolean} trainExtremelyLargeCorpus\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.trainExtremelyLargeCorpus = false;\n\n /**\n * TrainerSpec seedSentencepiecesFile.\n * @member {string} seedSentencepiecesFile\n * @memberof sentencepiece.TrainerSpec\n * @instance\n */\n TrainerSpec.prototype.seedSentencepiecesFile = '';\n\n /**\n * Creates a new TrainerSpec instance using the specified properties.\n * @function create\n * @memberof sentencepiece.TrainerSpec\n * @static\n * @param {sentencepiece.ITrainerSpec=} [properties] Properties to set\n * @returns {sentencepiece.TrainerSpec} TrainerSpec instance\n */\n TrainerSpec.create = function create(properties) {\n return new TrainerSpec(properties);\n };\n\n /**\n * Encodes the specified TrainerSpec message. Does not implicitly {@link\n * sentencepiece.TrainerSpec.verify|verify} messages.\n * @function encode\n * @memberof sentencepiece.TrainerSpec\n * @static\n * @param {sentencepiece.ITrainerSpec} message TrainerSpec message or plain\n * object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n TrainerSpec.encode = function encode(message, writer) {\n if (!writer) writer = $Writer.create();\n if (message.input != null && message.input.length)\n for (let i = 0; i < message.input.length; ++i)\n writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.input[i]);\n if (message.modelPrefix != null &&\n Object.hasOwnProperty.call(message, 'modelPrefix'))\n writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.modelPrefix);\n if (message.modelType != null &&\n Object.hasOwnProperty.call(message, 'modelType'))\n writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.modelType);\n if (message.vocabSize != null &&\n Object.hasOwnProperty.call(message, 'vocabSize'))\n writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.vocabSize);\n if (message.acceptLanguage != null && message.acceptLanguage.length)\n for (let i = 0; i < message.acceptLanguage.length; ++i)\n writer.uint32(/* id 5, wireType 2 =*/ 42)\n .string(message.acceptLanguage[i]);\n if (message.selfTestSampleSize != null &&\n Object.hasOwnProperty.call(message, 'selfTestSampleSize'))\n writer.uint32(/* id 6, wireType 0 =*/ 48)\n .int32(message.selfTestSampleSize);\n if (message.inputFormat != null &&\n Object.hasOwnProperty.call(message, 'inputFormat'))\n writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.inputFormat);\n if (message.characterCoverage != null &&\n Object.hasOwnProperty.call(message, 'characterCoverage'))\n writer.uint32(/* id 10, wireType 5 =*/ 85)\n .float(message.characterCoverage);\n if (message.inputSentenceSize != null &&\n Object.hasOwnProperty.call(message, 'inputSentenceSize'))\n writer.uint32(/* id 11, wireType 0 =*/ 88)\n .uint64(message.inputSentenceSize);\n if (message.miningSentenceSize != null &&\n Object.hasOwnProperty.call(message, 'miningSentenceSize'))\n writer.uint32(/* id 12, wireType 0 =*/ 96)\n .int32(message.miningSentenceSize);\n if (message.trainingSentenceSize != null &&\n Object.hasOwnProperty.call(message, 'trainingSentenceSize'))\n writer.uint32(/* id 13, wireType 0 =*/ 104)\n .int32(message.trainingSentenceSize);\n if (message.seedSentencepieceSize != null &&\n Object.hasOwnProperty.call(message, 'seedSentencepieceSize'))\n writer.uint32(/* id 14, wireType 0 =*/ 112)\n .int32(message.seedSentencepieceSize);\n if (message.shrinkingFactor != null &&\n Object.hasOwnProperty.call(message, 'shrinkingFactor'))\n writer.uint32(/* id 15, wireType 5 =*/ 125)\n .float(message.shrinkingFactor);\n if (message.numThreads != null &&\n Object.hasOwnProperty.call(message, 'numThreads'))\n writer.uint32(/* id 16, wireType 0 =*/ 128).int32(message.numThreads);\n if (message.numSubIterations != null &&\n Object.hasOwnProperty.call(message, 'numSubIterations'))\n writer.uint32(/* id 17, wireType 0 =*/ 136)\n .int32(message.numSubIterations);\n if (message.maxSentenceLength != null &&\n Object.hasOwnProperty.call(message, 'maxSentenceLength'))\n writer.uint32(/* id 18, wireType 0 =*/ 144)\n .int32(message.maxSentenceLength);\n if (message.shuffleInputSentence != null &&\n Object.hasOwnProperty.call(message, 'shuffleInputSentence'))\n writer.uint32(/* id 19, wireType 0 =*/ 152)\n .bool(message.shuffleInputSentence);\n if (message.maxSentencepieceLength != null &&\n Object.hasOwnProperty.call(message, 'maxSentencepieceLength'))\n writer.uint32(/* id 20, wireType 0 =*/ 160)\n .int32(message.maxSentencepieceLength);\n if (message.splitByUnicodeScript != null &&\n Object.hasOwnProperty.call(message, 'splitByUnicodeScript'))\n writer.uint32(/* id 21, wireType 0 =*/ 168)\n .bool(message.splitByUnicodeScript);\n if (message.splitByWhitespace != null &&\n Object.hasOwnProperty.call(message, 'splitByWhitespace'))\n writer.uint32(/* id 22, wireType 0 =*/ 176)\n .bool(message.splitByWhitespace);\n if (message.splitByNumber != null &&\n Object.hasOwnProperty.call(message, 'splitByNumber'))\n writer.uint32(/* id 23, wireType 0 =*/ 184).bool(message.splitByNumber);\n if (message.treatWhitespaceAsSuffix != null &&\n Object.hasOwnProperty.call(message, 'treatWhitespaceAsSuffix'))\n writer.uint32(/* id 24, wireType 0 =*/ 192)\n .bool(message.treatWhitespaceAsSuffix);\n if (message.splitDigits != null &&\n Object.hasOwnProperty.call(message, 'splitDigits'))\n writer.uint32(/* id 25, wireType 0 =*/ 200).bool(message.splitDigits);\n if (message.allowWhitespaceOnlyPieces != null &&\n Object.hasOwnProperty.call(message, 'allowWhitespaceOnlyPieces'))\n writer.uint32(/* id 26, wireType 0 =*/ 208)\n .bool(message.allowWhitespaceOnlyPieces);\n if (message.controlSymbols != null && message.controlSymbols.length)\n for (let i = 0; i < message.controlSymbols.length; ++i)\n writer.uint32(/* id 30, wireType 2 =*/ 242)\n .string(message.controlSymbols[i]);\n if (message.userDefinedSymbols != null &&\n message.userDefinedSymbols.length)\n for (let i = 0; i < message.userDefinedSymbols.length; ++i)\n writer.uint32(/* id 31, wireType 2 =*/ 250)\n .string(message.userDefinedSymbols[i]);\n if (message.vocabularyOutputPieceScore != null &&\n Object.hasOwnProperty.call(message, 'vocabularyOutputPieceScore'))\n writer.uint32(/* id 32, wireType 0 =*/ 256)\n .bool(message.vocabularyOutputPieceScore);\n if (message.hardVocabLimit != null &&\n Object.hasOwnProperty.call(message, 'hardVocabLimit'))\n writer.uint32(/* id 33, wireType 0 =*/ 264)\n .bool(message.hardVocabLimit);\n if (message.useAllVocab != null &&\n Object.hasOwnProperty.call(message, 'useAllVocab'))\n writer.uint32(/* id 34, wireType 0 =*/ 272).bool(message.useAllVocab);\n if (message.byteFallback != null &&\n Object.hasOwnProperty.call(message, 'byteFallback'))\n writer.uint32(/* id 35, wireType 0 =*/ 280).bool(message.byteFallback);\n if (message.requiredChars != null &&\n Object.hasOwnProperty.call(message, 'requiredChars'))\n writer.uint32(/* id 36, wireType 2 =*/ 290)\n .string(message.requiredChars);\n if (message.unkId != null && Object.hasOwnProperty.call(message, 'unkId'))\n writer.uint32(/* id 40, wireType 0 =*/ 320).int32(message.unkId);\n if (message.bosId != null && Object.hasOwnProperty.call(message, 'bosId'))\n writer.uint32(/* id 41, wireType 0 =*/ 328).int32(message.bosId);\n if (message.eosId != null && Object.hasOwnProperty.call(message, 'eosId'))\n writer.uint32(/* id 42, wireType 0 =*/ 336).int32(message.eosId);\n if (message.padId != null && Object.hasOwnProperty.call(message, 'padId'))\n writer.uint32(/* id 43, wireType 0 =*/ 344).int32(message.padId);\n if (message.unkSurface != null &&\n Object.hasOwnProperty.call(message, 'unkSurface'))\n writer.uint32(/* id 44, wireType 2 =*/ 354).string(message.unkSurface);\n if (message.unkPiece != null &&\n Object.hasOwnProperty.call(message, 'unkPiece'))\n writer.uint32(/* id 45, wireType 2 =*/ 362).string(message.unkPiece);\n if (message.bosPiece != null &&\n Object.hasOwnProperty.call(message, 'bosPiece'))\n writer.uint32(/* id 46, wireType 2 =*/ 370).string(message.bosPiece);\n if (message.eosPiece != null &&\n Object.hasOwnProperty.call(message, 'eosPiece'))\n writer.uint32(/* id 47, wireType 2 =*/ 378).string(message.eosPiece);\n if (message.padPiece != null &&\n Object.hasOwnProperty.call(message, 'padPiece'))\n writer.uint32(/* id 48, wireType 2 =*/ 386).string(message.padPiece);\n if (message.trainExtremelyLargeCorpus != null &&\n Object.hasOwnProperty.call(message, 'trainExtremelyLargeCorpus'))\n writer.uint32(/* id 49, wireType 0 =*/ 392)\n .bool(message.trainExtremelyLargeCorpus);\n if (message.enableDifferentialPrivacy != null &&\n Object.hasOwnProperty.call(message, 'enableDifferentialPrivacy'))\n writer.uint32(/* id 50, wireType 0 =*/ 400)\n .bool(message.enableDifferentialPrivacy);\n if (message.differentialPrivacyNoiseLevel != null &&\n Object.hasOwnProperty.call(message, 'differentialPrivacyNoiseLevel'))\n writer.uint32(/* id 51, wireType 5 =*/ 413)\n .float(message.differentialPrivacyNoiseLevel);\n if (message.differentialPrivacyClippingThreshold != null &&\n Object.hasOwnProperty.call(\n message, 'differentialPrivacyClippingThreshold'))\n writer.uint32(/* id 52, wireType 0 =*/ 416)\n .uint64(message.differentialPrivacyClippingThreshold);\n if (message.pretokenizationDelimiter != null &&\n Object.hasOwnProperty.call(message, 'pretokenizationDelimiter'))\n writer.uint32(/* id 53, wireType 2 =*/ 426)\n .string(message.pretokenizationDelimiter);\n if (message.seedSentencepiecesFile != null &&\n Object.hasOwnProperty.call(message, 'seedSentencepiecesFile'))\n writer.uint32(/* id 54, wireType 2 =*/ 434)\n .string(message.seedSentencepiecesFile);\n return writer;\n };\n\n /**\n * Encodes the specified TrainerSpec message, length delimited. Does not\n * implicitly {@link sentencepiece.TrainerSpec.verify|verify} messages.\n * @function encodeDelimited\n * @memberof sentencepiece.TrainerSpec\n * @static\n * @param {sentencepiece.ITrainerSpec} message TrainerSpec message or plain\n * object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n TrainerSpec.encodeDelimited = function encodeDelimited(message, writer) {\n return this.encode(message, writer).ldelim();\n };\n\n /**\n * Decodes a TrainerSpec message from the specified reader or buffer.\n * @function decode\n * @memberof sentencepiece.TrainerSpec\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @param {number} [length] Message length if known beforehand\n * @returns {sentencepiece.TrainerSpec} TrainerSpec\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n TrainerSpec.decode = function decode(reader, length, error) {\n if (!(reader instanceof $Reader)) reader = $Reader.create(reader);\n let end = length === undefined ? reader.len : reader.pos + length,\n message = new $root.sentencepiece.TrainerSpec();\n while (reader.pos < end) {\n let tag = reader.uint32();\n if (tag === error) break;\n switch (tag >>> 3) {\n case 1: {\n if (!(message.input && message.input.length)) message.input = [];\n message.input.push(reader.string());\n break;\n }\n case 7: {\n message.inputFormat = reader.string();\n break;\n }\n case 2: {\n message.modelPrefix = reader.string();\n break;\n }\n case 3: {\n message.modelType = reader.int32();\n break;\n }\n case 4: {\n message.vocabSize = reader.int32();\n break;\n }\n case 5: {\n if (!(message.acceptLanguage && message.acceptLanguage.length))\n message.acceptLanguage = [];\n message.acceptLanguage.push(reader.string());\n break;\n }\n case 6: {\n message.selfTestSampleSize = reader.int32();\n break;\n }\n case 50: {\n message.enableDifferentialPrivacy = reader.bool();\n break;\n }\n case 51: {\n message.differentialPrivacyNoiseLevel = reader.float();\n break;\n }\n case 52: {\n message.differentialPrivacyClippingThreshold = reader.uint64();\n break;\n }\n case 10: {\n message.characterCoverage = reader.float();\n break;\n }\n case 11: {\n message.inputSentenceSize = reader.uint64();\n break;\n }\n case 19: {\n message.shuffleInputSentence = reader.bool();\n break;\n }\n case 12: {\n message.miningSentenceSize = reader.int32();\n break;\n }\n case 13: {\n message.trainingSentenceSize = reader.int32();\n break;\n }\n case 14: {\n message.seedSentencepieceSize = reader.int32();\n break;\n }\n case 15: {\n message.shrinkingFactor = reader.float();\n break;\n }\n case 18: {\n message.maxSentenceLength = reader.int32();\n break;\n }\n case 16: {\n message.numThreads = reader.int32();\n break;\n }\n case 17: {\n message.numSubIterations = reader.int32();\n break;\n }\n case 20: {\n message.maxSentencepieceLength = reader.int32();\n break;\n }\n case 21: {\n message.splitByUnicodeScript = reader.bool();\n break;\n }\n case 23: {\n message.splitByNumber = reader.bool();\n break;\n }\n case 22: {\n message.splitByWhitespace = reader.bool();\n break;\n }\n case 24: {\n message.treatWhitespaceAsSuffix = reader.bool();\n break;\n }\n case 26: {\n message.allowWhitespaceOnlyPieces = reader.bool();\n break;\n }\n case 25: {\n message.splitDigits = reader.bool();\n break;\n }\n case 53: {\n message.pretokenizationDelimiter = reader.string();\n break;\n }\n case 30: {\n if (!(message.controlSymbols && message.controlSymbols.length))\n message.controlSymbols = [];\n message.controlSymbols.push(reader.string());\n break;\n }\n case 31: {\n if (!(message.userDefinedSymbols &&\n message.userDefinedSymbols.length))\n message.userDefinedSymbols = [];\n message.userDefinedSymbols.push(reader.string());\n break;\n }\n case 36: {\n message.requiredChars = reader.string();\n break;\n }\n case 35: {\n message.byteFallback = reader.bool();\n break;\n }\n case 32: {\n message.vocabularyOutputPieceScore = reader.bool();\n break;\n }\n case 33: {\n message.hardVocabLimit = reader.bool();\n break;\n }\n case 34: {\n message.useAllVocab = reader.bool();\n break;\n }\n case 40: {\n message.unkId = reader.int32();\n break;\n }\n case 41: {\n message.bosId = reader.int32();\n break;\n }\n case 42: {\n message.eosId = reader.int32();\n break;\n }\n case 43: {\n message.padId = reader.int32();\n break;\n }\n case 45: {\n message.unkPiece = reader.string();\n break;\n }\n case 46: {\n message.bosPiece = reader.string();\n break;\n }\n case 47: {\n message.eosPiece = reader.string();\n break;\n }\n case 48: {\n message.padPiece = reader.string();\n break;\n }\n case 44: {\n message.unkSurface = reader.string();\n break;\n }\n case 49: {\n message.trainExtremelyLargeCorpus = reader.bool();\n break;\n }\n case 54: {\n message.seedSentencepiecesFile = reader.string();\n break;\n }\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n };\n\n /**\n * Decodes a TrainerSpec message from the specified reader or buffer, length\n * delimited.\n * @function decodeDelimited\n * @memberof sentencepiece.TrainerSpec\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @returns {sentencepiece.TrainerSpec} TrainerSpec\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n TrainerSpec.decodeDelimited = function decodeDelimited(reader) {\n if (!(reader instanceof $Reader)) reader = new $Reader(reader);\n return this.decode(reader, reader.uint32());\n };\n\n /**\n * Verifies a TrainerSpec message.\n * @function verify\n * @memberof sentencepiece.TrainerSpec\n * @static\n * @param {Object.<string,*>} message Plain object to verify\n * @returns {string|null} `null` if valid, otherwise the reason why it is\n * not\n */\n TrainerSpec.verify = function verify(message) {\n if (typeof message !== 'object' || message === null)\n return 'object expected';\n if (message.input != null && message.hasOwnProperty('input')) {\n if (!Array.isArray(message.input)) return 'input: array expected';\n for (let i = 0; i < message.input.length; ++i)\n if (!$util.isString(message.input[i]))\n return 'input: string[] expected';\n }\n if (message.inputFormat != null && message.hasOwnProperty('inputFormat'))\n if (!$util.isString(message.inputFormat))\n return 'inputFormat: string expected';\n if (message.modelPrefix != null && message.hasOwnProperty('modelPrefix'))\n if (!$util.isString(message.modelPrefix))\n return 'modelPrefix: string expected';\n if (message.modelType != null && message.hasOwnProperty('modelType'))\n switch (message.modelType) {\n default:\n return 'modelType: enum value expected';\n case 1:\n case 2:\n case 3:\n case 4:\n break;\n }\n if (message.vocabSize != null && message.hasOwnProperty('vocabSize'))\n if (!$util.isInteger(message.vocabSize))\n return 'vocabSize: integer expected';\n if (message.acceptLanguage != null &&\n message.hasOwnProperty('acceptLanguage')) {\n if (!Array.isArray(message.acceptLanguage))\n return 'acceptLanguage: array expected';\n for (let i = 0; i < message.acceptLanguage.length; ++i)\n if (!$util.isString(message.acceptLanguage[i]))\n return 'acceptLanguage: string[] expected';\n }\n if (message.selfTestSampleSize != null &&\n message.hasOwnProperty('selfTestSampleSize'))\n if (!$util.isInteger(message.selfTestSampleSize))\n return 'selfTestSampleSize: integer expected';\n if (message.enableDifferentialPrivacy != null &&\n message.hasOwnProperty('enableDifferentialPrivacy'))\n if (typeof message.enableDifferentialPrivacy !== 'boolean')\n return 'enableDifferentialPrivacy: boolean expected';\n if (message.differentialPrivacyNoiseLevel != null &&\n message.hasOwnProperty('differentialPrivacyNoiseLevel'))\n if (typeof message.differentialPrivacyNoiseLevel !== 'number')\n return 'differentialPrivacyNoiseLevel: number expected';\n if (message.differentialPrivacyClippingThreshold != null &&\n message.hasOwnProperty('differentialPrivacyClippingThreshold'))\n if (!$util.isInteger(message.differentialPrivacyClippingThreshold) &&\n !(message.differentialPrivacyClippingThreshold &&\n $util.isInteger(\n message.differentialPrivacyClippingThreshold.low) &&\n $util.isInteger(\n message.differentialPrivacyClippingThreshold.high)))\n return 'differentialPrivacyClippingThreshold: integer|Long expected';\n if (message.characterCoverage != null &&\n message.hasOwnProperty('characterCoverage'))\n if (typeof message.characterCoverage !== 'number')\n return 'characterCoverage: number expected';\n if (message.inputSentenceSize != null &&\n message.hasOwnProperty('inputSentenceSize'))\n if (!$util.isInteger(message.inputSentenceSize) &&\n !(message.inputSentenceSize &&\n $util.isInteger(message.inputSentenceSize.low) &&\n $util.isInteger(message.inputSentenceSize.high)))\n return 'inputSentenceSize: integer|Long expected';\n if (message.shuffleInputSentence != null &&\n message.hasOwnProperty('shuffleInputSentence'))\n if (typeof message.shuffleInputSentence !== 'boolean')\n return 'shuffleInputSentence: boolean expected';\n if (message.miningSentenceSize != null &&\n message.hasOwnProperty('miningSentenceSize'))\n if (!$util.isInteger(message.miningSentenceSize))\n return 'miningSentenceSize: integer expected';\n if (message.trainingSentenceSize != null &&\n message.hasOwnProperty('trainingSentenceSize'))\n if (!$util.isInteger(message.trainingSentenceSize))\n return 'trainingSentenceSize: integer expected';\n if (message.seedSentencepieceSize != null &&\n message.hasOwnProperty('seedSentencepieceSize'))\n if (!$util.isInteger(message.seedSentencepieceSize))\n return 'seedSentencepieceSize: integer expected';\n if (message.shrinkingFactor != null &&\n message.hasOwnProperty('shrinkingFactor'))\n if (typeof message.shrinkingFactor !== 'number')\n return 'shrinkingFactor: number expected';\n if (message.maxSentenceLength != null &&\n message.hasOwnProperty('maxSentenceLength'))\n if (!$util.isInteger(message.maxSentenceLength))\n return 'maxSentenceLength: integer expected';\n if (message.numThreads != null && message.hasOwnProperty('numThreads'))\n if (!$util.isInteger(message.numThreads))\n return 'numThreads: integer expected';\n if (message.numSubIterations != null &&\n message.hasOwnProperty('numSubIterations'))\n if (!$util.isInteger(message.numSubIterations))\n return 'numSubIterations: integer expected';\n if (message.maxSentencepieceLength != null &&\n message.hasOwnProperty('maxSentencepieceLength'))\n if (!$util.isInteger(message.maxSentencepieceLength))\n return 'maxSentencepieceLength: integer expected';\n if (message.splitByUnicodeScript != null &&\n message.hasOwnProperty('splitByUnicodeScript'))\n if (typeof message.splitByUnicodeScript !== 'boolean')\n return 'splitByUnicodeScript: boolean expected';\n if (message.splitByNumber != null &&\n message.hasOwnProperty('splitByNumber'))\n if (typeof message.splitByNumber !== 'boolean')\n return 'splitByNumber: boolean expected';\n if (message.splitByWhitespace != null &&\n message.hasOwnProperty('splitByWhitespace'))\n if (typeof message.splitByWhitespace !== 'boolean')\n return 'splitByWhitespace: boolean expected';\n if (message.treatWhitespaceAsSuffix != null &&\n message.hasOwnProperty('treatWhitespaceAsSuffix'))\n if (typeof message.treatWhitespaceAsSuffix !== 'boolean')\n return 'treatWhitespaceAsSuffix: boolean expected';\n if (message.allowWhitespaceOnlyPieces != null &&\n message.hasOwnProperty('allowWhitespaceOnlyPieces'))\n if (typeof message.allowWhitespaceOnlyPieces !== 'boolean')\n return 'allowWhitespaceOnlyPieces: boolean expected';\n if (message.splitDigits != null && message.hasOwnProperty('splitDigits'))\n if (typeof message.splitDigits !== 'boolean')\n return 'splitDigits: boolean expected';\n if (message.pretokenizationDelimiter != null &&\n message.hasOwnProperty('pretokenizationDelimiter'))\n if (!$util.isString(message.pretokenizationDelimiter))\n return 'pretokenizationDelimiter: string expected';\n if (message.controlSymbols != null &&\n message.hasOwnProperty('controlSymbols')) {\n if (!Array.isArray(message.controlSymbols))\n return 'controlSymbols: array expected';\n for (let i = 0; i < message.controlSymbols.length; ++i)\n if (!$util.isString(message.controlSymbols[i]))\n return 'controlSymbols: string[] expected';\n }\n if (message.userDefinedSymbols != null &&\n message.hasOwnProperty('userDefinedSymbols')) {\n if (!Array.isArray(message.userDefinedSymbols))\n return 'userDefinedSymbols: array expected';\n for (let i = 0; i < message.userDefinedSymbols.length; ++i)\n if (!$util.isString(message.userDefinedSymbols[i]))\n return 'userDefinedSymbols: string[] expected';\n }\n if (message.requiredChars != null &&\n message.hasOwnProperty('requiredChars'))\n if (!$util.isString(message.requiredChars))\n return 'requiredChars: string expected';\n if (message.byteFallback != null &&\n message.hasOwnProperty('byteFallback'))\n if (typeof message.byteFallback !== 'boolean')\n return 'byteFallback: boolean expected';\n if (message.vocabularyOutputPieceScore != null &&\n message.hasOwnProperty('vocabularyOutputPieceScore'))\n if (typeof message.vocabularyOutputPieceScore !== 'boolean')\n return 'vocabularyOutputPieceScore: boolean expected';\n if (message.hardVocabLimit != null &&\n message.hasOwnProperty('hardVocabLimit'))\n if (typeof message.hardVocabLimit !== 'boolean')\n return 'hardVocabLimit: boolean expected';\n if (message.useAllVocab != null && message.hasOwnProperty('useAllVocab'))\n if (typeof message.useAllVocab !== 'boolean')\n return 'useAllVocab: boolean expected';\n if (message.unkId != null && message.hasOwnProperty('unkId'))\n if (!$util.isInteger(message.unkId)) return 'unkId: integer expected';\n if (message.bosId != null && message.hasOwnProperty('bosId'))\n if (!$util.isInteger(message.bosId)) return 'bosId: integer expected';\n if (message.eosId != null && message.hasOwnProperty('eosId'))\n if (!$util.isInteger(message.eosId)) return 'eosId: integer expected';\n if (message.padId != null && message.hasOwnProperty('padId'))\n if (!$util.isInteger(message.padId)) return 'padId: integer expected';\n if (message.unkPiece != null && message.hasOwnProperty('unkPiece'))\n if (!$util.isString(message.unkPiece))\n return 'unkPiece: string expected';\n if (message.bosPiece != null && message.hasOwnProperty('bosPiece'))\n if (!$util.isString(message.bosPiece))\n return 'bosPiece: string expected';\n if (message.eosPiece != null && message.hasOwnProperty('eosPiece'))\n if (!$util.isString(message.eosPiece))\n return 'eosPiece: string expected';\n if (message.padPiece != null && message.hasOwnProperty('padPiece'))\n if (!$util.isString(message.padPiece))\n return 'padPiece: string expected';\n if (message.unkSurface != null && message.hasOwnProperty('unkSurface'))\n if (!$util.isString(message.unkSurface))\n return 'unkSurface: string expected';\n if (message.trainExtremelyLargeCorpus != null &&\n message.hasOwnProperty('trainExtremelyLargeCorpus'))\n if (typeof message.trainExtremelyLargeCorpus !== 'boolean')\n return 'trainExtremelyLargeCorpus: boolean expected';\n if (message.seedSentencepiecesFile != null &&\n message.hasOwnProperty('seedSentencepiecesFile'))\n if (!$util.isString(message.seedSentencepiecesFile))\n return 'seedSentencepiecesFile: string expected';\n return null;\n };\n\n /**\n * Creates a TrainerSpec message from a plain object. Also converts values\n * to their respective internal types.\n * @function fromObject\n * @memberof sentencepiece.TrainerSpec\n * @static\n * @param {Object.<string,*>} object Plain object\n * @returns {sentencepiece.TrainerSpec} TrainerSpec\n */\n TrainerSpec.fromObject = function fromObject(object) {\n if (object instanceof $root.sentencepiece.TrainerSpec) return object;\n let message = new $root.sentencepiece.TrainerSpec();\n if (object.input) {\n if (!Array.isArray(object.input))\n throw TypeError('.sentencepiece.TrainerSpec.input: array expected');\n message.input = [];\n for (let i = 0; i < object.input.length; ++i)\n message.input[i] = String(object.input[i]);\n }\n if (object.inputFormat != null)\n message.inputFormat = String(object.inputFormat);\n if (object.modelPrefix != null)\n message.modelPrefix = String(object.modelPrefix);\n switch (object.modelType) {\n default:\n if (typeof object.modelType === 'number') {\n message.modelType = object.modelType;\n break;\n }\n break;\n case 'UNIGRAM':\n case 1:\n message.modelType = 1;\n break;\n case 'BPE':\n case 2:\n message.modelType = 2;\n break;\n case 'WORD':\n case 3:\n message.modelType = 3;\n break;\n case 'CHAR':\n case 4:\n message.modelType = 4;\n break;\n }\n if (object.vocabSize != null) message.vocabSize = object.vocabSize | 0;\n if (object.acceptLanguage) {\n if (!Array.isArray(object.acceptLanguage))\n throw TypeError(\n '.sentencepiece.TrainerSpec.acceptLanguage: array expected');\n message.acceptLanguage = [];\n for (let i = 0; i < object.acceptLanguage.length; ++i)\n message.acceptLanguage[i] = String(object.acceptLanguage[i]);\n }\n if (object.selfTestSampleSize != null)\n message.selfTestSampleSize = object.selfTestSampleSize | 0;\n if (object.enableDifferentialPrivacy != null)\n message.enableDifferentialPrivacy =\n Boolean(object.enableDifferentialPrivacy);\n if (object.differentialPrivacyNoiseLevel != null)\n message.differentialPrivacyNoiseLevel =\n Number(object.differentialPrivacyNoiseLevel);\n if (object.differentialPrivacyClippingThreshold != null)\n if ($util.Long)\n (message.differentialPrivacyClippingThreshold = $util.Long.fromValue(\n object.differentialPrivacyClippingThreshold))\n .unsigned = true;\n else if (\n typeof object.differentialPrivacyClippingThreshold === 'string')\n message.differentialPrivacyClippingThreshold =\n parseInt(object.differentialPrivacyClippingThreshold, 10);\n else if (\n typeof object.differentialPrivacyClippingThreshold === 'number')\n message.differentialPrivacyClippingThreshold =\n object.differentialPrivacyClippingThreshold;\n else if (\n typeof object.differentialPrivacyClippingThreshold === 'object')\n message.differentialPrivacyClippingThreshold =\n new $util\n .LongBits(\n object.differentialPrivacyClippingThreshold.low >>> 0,\n object.differentialPrivacyClippingThreshold.high >>> 0)\n .toNumber(true);\n if (object.characterCoverage != null)\n message.characterCoverage = Number(object.characterCoverage);\n if (object.inputSentenceSize != null)\n if ($util.Long)\n (message.inputSentenceSize =\n $util.Long.fromValue(object.inputSentenceSize))\n .unsigned = true;\n else if (typeof object.inputSentenceSize === 'string')\n message.inputSentenceSize = parseInt(object.inputSentenceSize, 10);\n else if (typeof object.inputSentenceSize === 'number')\n message.inputSentenceSize = object.inputSentenceSize;\n else if (typeof object.inputSentenceSize === 'object')\n message.inputSentenceSize =\n new $util\n .LongBits(\n object.inputSentenceSize.low >>> 0,\n object.inputSentenceSize.high >>> 0)\n .toNumber(true);\n if (object.shuffleInputSentence != null)\n message.shuffleInputSentence = Boolean(object.shuffleInputSentence);\n if (object.miningSentenceSize != null)\n message.miningSentenceSize = object.miningSentenceSize | 0;\n if (object.trainingSentenceSize != null)\n message.trainingSentenceSize = object.trainingSentenceSize | 0;\n if (object.seedSentencepieceSize != null)\n message.seedSentencepieceSize = object.seedSentencepieceSize | 0;\n if (object.shrinkingFactor != null)\n message.shrinkingFactor = Number(object.shrinkingFactor);\n if (object.maxSentenceLength != null)\n message.maxSentenceLength = object.maxSentenceLength | 0;\n if (object.numThreads != null) message.numThreads = object.numThreads | 0;\n if (object.numSubIterations != null)\n message.numSubIterations = object.numSubIterations | 0;\n if (object.maxSentencepieceLength != null)\n message.maxSentencepieceLength = object.maxSentencepieceLength | 0;\n if (object.splitByUnicodeScript != null)\n message.splitByUnicodeScript = Boolean(object.splitByUnicodeScript);\n if (object.splitByNumber != null)\n message.splitByNumber = Boolean(object.splitByNumber);\n if (object.splitByWhitespace != null)\n message.splitByWhitespace = Boolean(object.splitByWhitespace);\n if (object.treatWhitespaceAsSuffix != null)\n message.treatWhitespaceAsSuffix =\n Boolean(object.treatWhitespaceAsSuffix);\n if (object.allowWhitespaceOnlyPieces != null)\n message.allowWhitespaceOnlyPieces =\n Boolean(object.allowWhitespaceOnlyPieces);\n if (object.splitDigits != null)\n message.splitDigits = Boolean(object.splitDigits);\n if (object.pretokenizationDelimiter != null)\n message.pretokenizationDelimiter =\n String(object.pretokenizationDelimiter);\n if (object.controlSymbols) {\n if (!Array.isArray(object.controlSymbols))\n throw TypeError(\n '.sentencepiece.TrainerSpec.controlSymbols: array expected');\n message.controlSymbols = [];\n for (let i = 0; i < object.controlSymbols.length; ++i)\n message.controlSymbols[i] = String(object.controlSymbols[i]);\n }\n if (object.userDefinedSymbols) {\n if (!Array.isArray(object.userDefinedSymbols))\n throw TypeError(\n '.sentencepiece.TrainerSpec.userDefinedSymbols: array expected');\n message.userDefinedSymbols = [];\n for (let i = 0; i < object.userDefinedSymbols.length; ++i)\n message.userDefinedSymbols[i] = String(object.userDefinedSymbols[i]);\n }\n if (object.requiredChars != null)\n message.requiredChars = String(object.requiredChars);\n if (object.byteFallback != null)\n message.byteFallback = Boolean(object.byteFallback);\n if (object.vocabularyOutputPieceScore != null)\n message.vocabularyOutputPieceScore =\n Boolean(object.vocabularyOutputPieceScore);\n if (object.hardVocabLimit != null)\n message.hardVocabLimit = Boolean(object.hardVocabLimit);\n if (object.useAllVocab != null)\n message.useAllVocab = Boolean(object.useAllVocab);\n if (object.unkId != null) message.unkId = object.unkId | 0;\n if (object.bosId != null) message.bosId = object.bosId | 0;\n if (object.eosId != null) message.eosId = object.eosId | 0;\n if (object.padId != null) message.padId = object.padId | 0;\n if (object.unkPiece != null) message.unkPiece = String(object.unkPiece);\n if (object.bosPiece != null) message.bosPiece = String(object.bosPiece);\n if (object.eosPiece != null) message.eosPiece = String(object.eosPiece);\n if (object.padPiece != null) message.padPiece = String(object.padPiece);\n if (object.unkSurface != null)\n message.unkSurface = String(object.unkSurface);\n if (object.trainExtremelyLargeCorpus != null)\n message.trainExtremelyLargeCorpus =\n Boolean(object.trainExtremelyLargeCorpus);\n if (object.seedSentencepiecesFile != null)\n message.seedSentencepiecesFile = String(object.seedSentencepiecesFile);\n return message;\n };\n\n /**\n * Creates a plain object from a TrainerSpec message. Also converts values\n * to other types if specified.\n * @function toObject\n * @memberof sentencepiece.TrainerSpec\n * @static\n * @param {sentencepiece.TrainerSpec} message TrainerSpec\n * @param {$protobuf.IConversionOptions} [options] Conversion options\n * @returns {Object.<string,*>} Plain object\n */\n TrainerSpec.toObject = function toObject(message, options) {\n if (!options) options = {};\n let object = {};\n if (options.arrays || options.defaults) {\n object.input = [];\n object.acceptLanguage = [];\n object.controlSymbols = [];\n object.userDefinedSymbols = [];\n }\n if (options.defaults) {\n object.modelPrefix = '';\n object.modelType = options.enums === String ? 'UNIGRAM' : 1;\n object.vocabSize = 8000;\n object.selfTestSampleSize = 0;\n object.inputFormat = '';\n object.characterCoverage = 0.9995;\n if ($util.Long) {\n let long = new $util.Long(0, 0, true);\n object.inputSentenceSize = options.longs === String ?\n long.toString() :\n options.longs === Number ? long.toNumber() :\n long;\n } else\n object.inputSentenceSize = options.longs === String ? '0' : 0;\n object.miningSentenceSize = 0;\n object.trainingSentenceSize = 0;\n object.seedSentencepieceSize = 1000000;\n object.shrinkingFactor = 0.75;\n object.numThreads = 16;\n object.numSubIterations = 2;\n object.maxSentenceLength = 4192;\n object.shuffleInputSentence = true;\n object.maxSentencepieceLength = 16;\n object.splitByUnicodeScript = true;\n object.splitByWhitespace = true;\n object.splitByNumber = true;\n object.treatWhitespaceAsSuffix = false;\n object.splitDigits = false;\n object.allowWhitespaceOnlyPieces = false;\n object.vocabularyOutputPieceScore = true;\n object.hardVocabLimit = true;\n object.useAllVocab = false;\n object.byteFallback = false;\n object.requiredChars = '';\n object.unkId = 0;\n object.bosId = 1;\n object.eosId = 2;\n object.padId = -1;\n object.unkSurface = ' E28187 ';\n object.unkPiece = '<unk>';\n object.bosPiece = '<s>';\n object.eosPiece = '</s>';\n object.padPiece = '<pad>';\n object.trainExtremelyLargeCorpus = false;\n object.enableDifferentialPrivacy = false;\n object.differentialPrivacyNoiseLevel = 0;\n if ($util.Long) {\n let long = new $util.Long(0, 0, true);\n object.differentialPrivacyClippingThreshold =\n options.longs === String ? long.toString() :\n options.longs === Number ? long.toNumber() :\n long;\n } else\n object.differentialPrivacyClippingThreshold =\n options.longs === String ? '0' : 0;\n object.pretokenizationDelimiter = '';\n object.seedSentencepiecesFile = '';\n }\n if (message.input && message.input.length) {\n object.input = [];\n for (let j = 0; j < message.input.length; ++j)\n object.input[j] = message.input[j];\n }\n if (message.modelPrefix != null && message.hasOwnProperty('modelPrefix'))\n object.modelPrefix = message.modelPrefix;\n if (message.modelType != null && message.hasOwnProperty('modelType'))\n object.modelType = options.enums === String ?\n $root.sentencepiece.TrainerSpec.ModelType[message.modelType] ===\n undefined ?\n message.modelType :\n $root.sentencepiece.TrainerSpec.ModelType[message.modelType] :\n message.modelType;\n if (message.vocabSize != null && message.hasOwnProperty('vocabSize'))\n object.vocabSize = message.vocabSize;\n if (message.acceptLanguage && message.acceptLanguage.length) {\n object.acceptLanguage = [];\n for (let j = 0; j < message.acceptLanguage.length; ++j)\n object.acceptLanguage[j] = message.acceptLanguage[j];\n }\n if (message.selfTestSampleSize != null &&\n message.hasOwnProperty('selfTestSampleSize'))\n object.selfTestSampleSize = message.selfTestSampleSize;\n if (message.inputFormat != null && message.hasOwnProperty('inputFormat'))\n object.inputFormat = message.inputFormat;\n if (message.characterCoverage != null &&\n message.hasOwnProperty('characterCoverage'))\n object.characterCoverage =\n options.json && !isFinite(message.characterCoverage) ?\n String(message.characterCoverage) :\n message.characterCoverage;\n if (message.inputSentenceSize != null &&\n message.hasOwnProperty('inputSentenceSize'))\n if (typeof message.inputSentenceSize === 'number')\n object.inputSentenceSize = options.longs === String ?\n String(message.inputSentenceSize) :\n message.inputSentenceSize;\n else\n object.inputSentenceSize = options.longs === String ?\n $util.Long.prototype.toString.call(message.inputSentenceSize) :\n options.longs === Number ?\n new $util\n .LongBits(\n message.inputSentenceSize.low >>> 0,\n message.inputSentenceSize.high >>> 0)\n .toNumber(true) :\n message.inputSentenceSize;\n if (message.miningSentenceSize != null &&\n message.hasOwnProperty('miningSentenceSize'))\n object.miningSentenceSize = message.miningSentenceSize;\n if (message.trainingSentenceSize != null &&\n message.hasOwnProperty('trainingSentenceSize'))\n object.trainingSentenceSize = message.trainingSentenceSize;\n if (message.seedSentencepieceSize != null &&\n message.hasOwnProperty('seedSentencepieceSize'))\n object.seedSentencepieceSize = message.seedSentencepieceSize;\n if (message.shrinkingFactor != null &&\n message.hasOwnProperty('shrinkingFactor'))\n object.shrinkingFactor =\n options.json && !isFinite(message.shrinkingFactor) ?\n String(message.shrinkingFactor) :\n message.shrinkingFactor;\n if (message.numThreads != null && message.hasOwnProperty('numThreads'))\n object.numThreads = message.numThreads;\n if (message.numSubIterations != null &&\n message.hasOwnProperty('numSubIterations'))\n object.numSubIterations = message.numSubIterations;\n if (message.maxSentenceLength != null &&\n message.hasOwnProperty('maxSentenceLength'))\n object.maxSentenceLength = message.maxSentenceLength;\n if (message.shuffleInputSentence != null &&\n message.hasOwnProperty('shuffleInputSentence'))\n object.shuffleInputSentence = message.shuffleInputSentence;\n if (message.maxSentencepieceLength != null &&\n message.hasOwnProperty('maxSentencepieceLength'))\n object.maxSentencepieceLength = message.maxSentencepieceLength;\n if (message.splitByUnicodeScript != null &&\n message.hasOwnProperty('splitByUnicodeScript'))\n object.splitByUnicodeScript = message.splitByUnicodeScript;\n if (message.splitByWhitespace != null &&\n message.hasOwnProperty('splitByWhitespace'))\n object.splitByWhitespace = message.splitByWhitespace;\n if (message.splitByNumber != null &&\n message.hasOwnProperty('splitByNumber'))\n object.splitByNumber = message.splitByNumber;\n if (message.treatWhitespaceAsSuffix != null &&\n message.hasOwnProperty('treatWhitespaceAsSuffix'))\n object.treatWhitespaceAsSuffix = message.treatWhitespaceAsSuffix;\n if (message.splitDigits != null && message.hasOwnProperty('splitDigits'))\n object.splitDigits = message.splitDigits;\n if (message.allowWhitespaceOnlyPieces != null &&\n message.hasOwnProperty('allowWhitespaceOnlyPieces'))\n object.allowWhitespaceOnlyPieces = message.allowWhitespaceOnlyPieces;\n if (message.controlSymbols && message.controlSymbols.length) {\n object.controlSymbols = [];\n for (let j = 0; j < message.controlSymbols.length; ++j)\n object.controlSymbols[j] = message.controlSymbols[j];\n }\n if (message.userDefinedSymbols && message.userDefinedSymbols.length) {\n object.userDefinedSymbols = [];\n for (let j = 0; j < message.userDefinedSymbols.length; ++j)\n object.userDefinedSymbols[j] = message.userDefinedSymbols[j];\n }\n if (message.vocabularyOutputPieceScore != null &&\n message.hasOwnProperty('vocabularyOutputPieceScore'))\n object.vocabularyOutputPieceScore = message.vocabularyOutputPieceScore;\n if (message.hardVocabLimit != null &&\n message.hasOwnProperty('hardVocabLimit'))\n object.hardVocabLimit = message.hardVocabLimit;\n if (message.useAllVocab != null && message.hasOwnProperty('useAllVocab'))\n object.useAllVocab = message.useAllVocab;\n if (message.byteFallback != null &&\n message.hasOwnProperty('byteFallback'))\n object.byteFallback = message.byteFallback;\n if (message.requiredChars != null &&\n message.hasOwnProperty('requiredChars'))\n object.requiredChars = message.requiredChars;\n if (message.unkId != null && message.hasOwnProperty('unkId'))\n object.unkId = message.unkId;\n if (message.bosId != null && message.hasOwnProperty('bosId'))\n object.bosId = message.bosId;\n if (message.eosId != null && message.hasOwnProperty('eosId'))\n object.eosId = message.eosId;\n if (message.padId != null && message.hasOwnProperty('padId'))\n object.padId = message.padId;\n if (message.unkSurface != null && message.hasOwnProperty('unkSurface'))\n object.unkSurface = message.unkSurface;\n if (message.unkPiece != null && message.hasOwnProperty('unkPiece'))\n object.unkPiece = message.unkPiece;\n if (message.bosPiece != null && message.hasOwnProperty('bosPiece'))\n object.bosPiece = message.bosPiece;\n if (message.eosPiece != null && message.hasOwnProperty('eosPiece'))\n object.eosPiece = message.eosPiece;\n if (message.padPiece != null && message.hasOwnProperty('padPiece'))\n object.padPiece = message.padPiece;\n if (message.trainExtremelyLargeCorpus != null &&\n message.hasOwnProperty('trainExtremelyLargeCorpus'))\n object.trainExtremelyLargeCorpus = message.trainExtremelyLargeCorpus;\n if (message.enableDifferentialPrivacy != null &&\n message.hasOwnProperty('enableDifferentialPrivacy'))\n object.enableDifferentialPrivacy = message.enableDifferentialPrivacy;\n if (message.differentialPrivacyNoiseLevel != null &&\n message.hasOwnProperty('differentialPrivacyNoiseLevel'))\n object.differentialPrivacyNoiseLevel =\n options.json && !isFinite(message.differentialPrivacyNoiseLevel) ?\n String(message.differentialPrivacyNoiseLevel) :\n message.differentialPrivacyNoiseLevel;\n if (message.differentialPrivacyClippingThreshold != null &&\n message.hasOwnProperty('differentialPrivacyClippingThreshold'))\n if (typeof message.differentialPrivacyClippingThreshold === 'number')\n object.differentialPrivacyClippingThreshold =\n options.longs === String ?\n String(message.differentialPrivacyClippingThreshold) :\n message.differentialPrivacyClippingThreshold;\n else\n object.differentialPrivacyClippingThreshold =\n options.longs === String ?\n $util.Long.prototype.toString.call(\n message.differentialPrivacyClippingThreshold) :\n options.longs === Number ?\n new $util\n .LongBits(\n message.differentialPrivacyClippingThreshold.low >>> 0,\n message.differentialPrivacyClippingThreshold.high >>> 0)\n .toNumber(true) :\n message.differentialPrivacyClippingThreshold;\n if (message.pretokenizationDelimiter != null &&\n message.hasOwnProperty('pretokenizationDelimiter'))\n object.pretokenizationDelimiter = message.pretokenizationDelimiter;\n if (message.seedSentencepiecesFile != null &&\n message.hasOwnProperty('seedSentencepiecesFile'))\n object.seedSentencepiecesFile = message.seedSentencepiecesFile;\n return object;\n };\n\n /**\n * Converts this TrainerSpec to JSON.\n * @function toJSON\n * @memberof sentencepiece.TrainerSpec\n * @instance\n * @returns {Object.<string,*>} JSON object\n */\n TrainerSpec.prototype.toJSON = function toJSON() {\n return this.constructor.toObject(this, $protobuf.util.toJSONOptions);\n };\n\n /**\n * Gets the default type url for TrainerSpec\n * @function getTypeUrl\n * @memberof sentencepiece.TrainerSpec\n * @static\n * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default\n * \"type.googleapis.com\")\n * @returns {string} The default type url\n */\n TrainerSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {\n if (typeUrlPrefix === undefined) {\n typeUrlPrefix = 'type.googleapis.com';\n }\n return typeUrlPrefix + '/sentencepiece.TrainerSpec';\n };\n\n /**\n * ModelType enum.\n * @name sentencepiece.TrainerSpec.ModelType\n * @enum {number}\n * @property {number} UNIGRAM=1 UNIGRAM value\n * @property {number} BPE=2 BPE value\n * @property {number} WORD=3 WORD value\n * @property {number} CHAR=4 CHAR value\n */\n TrainerSpec.ModelType = (function() {\n const valuesById = {}, values = Object.create(valuesById);\n values[valuesById[1] = 'UNIGRAM'] = 1;\n values[valuesById[2] = 'BPE'] = 2;\n values[valuesById[3] = 'WORD'] = 3;\n values[valuesById[4] = 'CHAR'] = 4;\n return values;\n })();\n\n return TrainerSpec;\n })();\n\n sentencepiece.NormalizerSpec = (function() {\n /**\n * Properties of a NormalizerSpec.\n * @memberof sentencepiece\n * @interface INormalizerSpec\n * @property {string|null} [name] NormalizerSpec name\n * @property {Uint8Array|null} [precompiledCharsmap] NormalizerSpec\n * precompiledCharsmap\n * @property {boolean|null} [addDummyPrefix] NormalizerSpec addDummyPrefix\n * @property {boolean|null} [removeExtraWhitespaces] NormalizerSpec\n * removeExtraWhitespaces\n * @property {boolean|null} [escapeWhitespaces] NormalizerSpec\n * escapeWhitespaces\n * @property {string|null} [normalizationRuleTsv] NormalizerSpec\n * normalizationRuleTsv\n */\n\n /**\n * Constructs a new NormalizerSpec.\n * @memberof sentencepiece\n * @classdesc Represents a NormalizerSpec.\n * @implements INormalizerSpec\n * @constructor\n * @param {sentencepiece.INormalizerSpec=} [properties] Properties to set\n */\n function NormalizerSpec(properties) {\n if (properties)\n for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]];\n }\n\n /**\n * NormalizerSpec name.\n * @member {string} name\n * @memberof sentencepiece.NormalizerSpec\n * @instance\n */\n NormalizerSpec.prototype.name = '';\n\n /**\n * NormalizerSpec precompiledCharsmap.\n * @member {Uint8Array} precompiledCharsmap\n * @memberof sentencepiece.NormalizerSpec\n * @instance\n */\n NormalizerSpec.prototype.precompiledCharsmap = $util.newBuffer([]);\n\n /**\n * NormalizerSpec addDummyPrefix.\n * @member {boolean} addDummyPrefix\n * @memberof sentencepiece.NormalizerSpec\n * @instance\n */\n NormalizerSpec.prototype.addDummyPrefix = true;\n\n /**\n * NormalizerSpec removeExtraWhitespaces.\n * @member {boolean} removeExtraWhitespaces\n * @memberof sentencepiece.NormalizerSpec\n * @instance\n */\n NormalizerSpec.prototype.removeExtraWhitespaces = true;\n\n /**\n * NormalizerSpec escapeWhitespaces.\n * @member {boolean} escapeWhitespaces\n * @memberof sentencepiece.NormalizerSpec\n * @instance\n */\n NormalizerSpec.prototype.escapeWhitespaces = true;\n\n /**\n * NormalizerSpec normalizationRuleTsv.\n * @member {string} normalizationRuleTsv\n * @memberof sentencepiece.NormalizerSpec\n * @instance\n */\n NormalizerSpec.prototype.normalizationRuleTsv = '';\n\n /**\n * Creates a new NormalizerSpec instance using the specified properties.\n * @function create\n * @memberof sentencepiece.NormalizerSpec\n * @static\n * @param {sentencepiece.INormalizerSpec=} [properties] Properties to set\n * @returns {sentencepiece.NormalizerSpec} NormalizerSpec instance\n */\n NormalizerSpec.create = function create(properties) {\n return new NormalizerSpec(properties);\n };\n\n /**\n * Encodes the specified NormalizerSpec message. Does not implicitly {@link\n * sentencepiece.NormalizerSpec.verify|verify} messages.\n * @function encode\n * @memberof sentencepiece.NormalizerSpec\n * @static\n * @param {sentencepiece.INormalizerSpec} message NormalizerSpec message or\n * plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n NormalizerSpec.encode = function encode(message, writer) {\n if (!writer) writer = $Writer.create();\n if (message.name != null && Object.hasOwnProperty.call(message, 'name'))\n writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.name);\n if (message.precompiledCharsmap != null &&\n Object.hasOwnProperty.call(message, 'precompiledCharsmap'))\n writer.uint32(/* id 2, wireType 2 =*/ 18)\n .bytes(message.precompiledCharsmap);\n if (message.addDummyPrefix != null &&\n Object.hasOwnProperty.call(message, 'addDummyPrefix'))\n writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.addDummyPrefix);\n if (message.removeExtraWhitespaces != null &&\n Object.hasOwnProperty.call(message, 'removeExtraWhitespaces'))\n writer.uint32(/* id 4, wireType 0 =*/ 32)\n .bool(message.removeExtraWhitespaces);\n if (message.escapeWhitespaces != null &&\n Object.hasOwnProperty.call(message, 'escapeWhitespaces'))\n writer.uint32(/* id 5, wireType 0 =*/ 40)\n .bool(message.escapeWhitespaces);\n if (message.normalizationRuleTsv != null &&\n Object.hasOwnProperty.call(message, 'normalizationRuleTsv'))\n writer.uint32(/* id 6, wireType 2 =*/ 50)\n .string(message.normalizationRuleTsv);\n return writer;\n };\n\n /**\n * Encodes the specified NormalizerSpec message, length delimited. Does not\n * implicitly {@link sentencepiece.NormalizerSpec.verify|verify} messages.\n * @function encodeDelimited\n * @memberof sentencepiece.NormalizerSpec\n * @static\n * @param {sentencepiece.INormalizerSpec} message NormalizerSpec message or\n * plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n NormalizerSpec.encodeDelimited = function encodeDelimited(message, writer) {\n return this.encode(message, writer).ldelim();\n };\n\n /**\n * Decodes a NormalizerSpec message from the specified reader or buffer.\n * @function decode\n * @memberof sentencepiece.NormalizerSpec\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @param {number} [length] Message length if known beforehand\n * @returns {sentencepiece.NormalizerSpec} NormalizerSpec\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n NormalizerSpec.decode = function decode(reader, length, error) {\n if (!(reader instanceof $Reader)) reader = $Reader.create(reader);\n let end = length === undefined ? reader.len : reader.pos + length,\n message = new $root.sentencepiece.NormalizerSpec();\n while (reader.pos < end) {\n let tag = reader.uint32();\n if (tag === error) break;\n switch (tag >>> 3) {\n case 1: {\n message.name = reader.string();\n break;\n }\n case 2: {\n message.precompiledCharsmap = reader.bytes();\n break;\n }\n case 3: {\n message.addDummyPrefix = reader.bool();\n break;\n }\n case 4: {\n message.removeExtraWhitespaces = reader.bool();\n break;\n }\n case 5: {\n message.escapeWhitespaces = reader.bool();\n break;\n }\n case 6: {\n message.normalizationRuleTsv = reader.string();\n break;\n }\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n };\n\n /**\n * Decodes a NormalizerSpec message from the specified reader or buffer,\n * length delimited.\n * @function decodeDelimited\n * @memberof sentencepiece.NormalizerSpec\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @returns {sentencepiece.NormalizerSpec} NormalizerSpec\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n NormalizerSpec.decodeDelimited = function decodeDelimited(reader) {\n if (!(reader instanceof $Reader)) reader = new $Reader(reader);\n return this.decode(reader, reader.uint32());\n };\n\n /**\n * Verifies a NormalizerSpec message.\n * @function verify\n * @memberof sentencepiece.NormalizerSpec\n * @static\n * @param {Object.<string,*>} message Plain object to verify\n * @returns {string|null} `null` if valid, otherwise the reason why it is\n * not\n */\n NormalizerSpec.verify = function verify(message) {\n if (typeof message !== 'object' || message === null)\n return 'object expected';\n if (message.name != null && message.hasOwnProperty('name'))\n if (!$util.isString(message.name)) return 'name: string expected';\n if (message.precompiledCharsmap != null &&\n message.hasOwnProperty('precompiledCharsmap'))\n if (!(message.precompiledCharsmap &&\n typeof message.precompiledCharsmap.length === 'number' ||\n $util.isString(message.precompiledCharsmap)))\n return 'precompiledCharsmap: buffer expected';\n if (message.addDummyPrefix != null &&\n message.hasOwnProperty('addDummyPrefix'))\n if (typeof message.addDummyPrefix !== 'boolean')\n return 'addDummyPrefix: boolean expected';\n if (message.removeExtraWhitespaces != null &&\n message.hasOwnProperty('removeExtraWhitespaces'))\n if (typeof message.removeExtraWhitespaces !== 'boolean')\n return 'removeExtraWhitespaces: boolean expected';\n if (message.escapeWhitespaces != null &&\n message.hasOwnProperty('escapeWhitespaces'))\n if (typeof message.escapeWhitespaces !== 'boolean')\n return 'escapeWhitespaces: boolean expected';\n if (message.normalizationRuleTsv != null &&\n message.hasOwnProperty('normalizationRuleTsv'))\n if (!$util.isString(message.normalizationRuleTsv))\n return 'normalizationRuleTsv: string expected';\n return null;\n };\n\n /**\n * Creates a NormalizerSpec message from a plain object. Also converts\n * values to their respective internal types.\n * @function fromObject\n * @memberof sentencepiece.NormalizerSpec\n * @static\n * @param {Object.<string,*>} object Plain object\n * @returns {sentencepiece.NormalizerSpec} NormalizerSpec\n */\n NormalizerSpec.fromObject = function fromObject(object) {\n if (object instanceof $root.sentencepiece.NormalizerSpec) return object;\n let message = new $root.sentencepiece.NormalizerSpec();\n if (object.name != null) message.name = String(object.name);\n if (object.precompiledCharsmap != null)\n if (typeof object.precompiledCharsmap === 'string')\n $util.base64.decode(\n object.precompiledCharsmap,\n message.precompiledCharsmap = $util.newBuffer(\n $util.base64.length(object.precompiledCharsmap)),\n 0);\n else if (object.precompiledCharsmap.length >= 0)\n message.precompiledCharsmap = object.precompiledCharsmap;\n if (object.addDummyPrefix != null)\n message.addDummyPrefix = Boolean(object.addDummyPrefix);\n if (object.removeExtraWhitespaces != null)\n message.removeExtraWhitespaces = Boolean(object.removeExtraWhitespaces);\n if (object.escapeWhitespaces != null)\n message.escapeWhitespaces = Boolean(object.escapeWhitespaces);\n if (object.normalizationRuleTsv != null)\n message.normalizationRuleTsv = String(object.normalizationRuleTsv);\n return message;\n };\n\n /**\n * Creates a plain object from a NormalizerSpec message. Also converts\n * values to other types if specified.\n * @function toObject\n * @memberof sentencepiece.NormalizerSpec\n * @static\n * @param {sentencepiece.NormalizerSpec} message NormalizerSpec\n * @param {$protobuf.IConversionOptions} [options] Conversion options\n * @returns {Object.<string,*>} Plain object\n */\n NormalizerSpec.toObject = function toObject(message, options) {\n if (!options) options = {};\n let object = {};\n if (options.defaults) {\n object.name = '';\n if (options.bytes === String)\n object.precompiledCharsmap = '';\n else {\n object.precompiledCharsmap = [];\n if (options.bytes !== Array)\n object.precompiledCharsmap =\n $util.newBuffer(object.precompiledCharsmap);\n }\n object.addDummyPrefix = true;\n object.removeExtraWhitespaces = true;\n object.escapeWhitespaces = true;\n object.normalizationRuleTsv = '';\n }\n if (message.name != null && message.hasOwnProperty('name'))\n object.name = message.name;\n if (message.precompiledCharsmap != null &&\n message.hasOwnProperty('precompiledCharsmap'))\n object.precompiledCharsmap = options.bytes === String ?\n $util.base64.encode(\n message.precompiledCharsmap, 0,\n message.precompiledCharsmap.length) :\n options.bytes === Array ?\n Array.prototype.slice.call(message.precompiledCharsmap) :\n message.precompiledCharsmap;\n if (message.addDummyPrefix != null &&\n message.hasOwnProperty('addDummyPrefix'))\n object.addDummyPrefix = message.addDummyPrefix;\n if (message.removeExtraWhitespaces != null &&\n message.hasOwnProperty('removeExtraWhitespaces'))\n object.removeExtraWhitespaces = message.removeExtraWhitespaces;\n if (message.escapeWhitespaces != null &&\n message.hasOwnProperty('escapeWhitespaces'))\n object.escapeWhitespaces = message.escapeWhitespaces;\n if (message.normalizationRuleTsv != null &&\n message.hasOwnProperty('normalizationRuleTsv'))\n object.normalizationRuleTsv = message.normalizationRuleTsv;\n return object;\n };\n\n /**\n * Converts this NormalizerSpec to JSON.\n * @function toJSON\n * @memberof sentencepiece.NormalizerSpec\n * @instance\n * @returns {Object.<string,*>} JSON object\n */\n NormalizerSpec.prototype.toJSON = function toJSON() {\n return this.constructor.toObject(this, $protobuf.util.toJSONOptions);\n };\n\n /**\n * Gets the default type url for NormalizerSpec\n * @function getTypeUrl\n * @memberof sentencepiece.NormalizerSpec\n * @static\n * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default\n * \"type.googleapis.com\")\n * @returns {string} The default type url\n */\n NormalizerSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) {\n if (typeUrlPrefix === undefined) {\n typeUrlPrefix = 'type.googleapis.com';\n }\n return typeUrlPrefix + '/sentencepiece.NormalizerSpec';\n };\n\n return NormalizerSpec;\n })();\n\n sentencepiece.SelfTestData = (function() {\n /**\n * Properties of a SelfTestData.\n * @memberof sentencepiece\n * @interface ISelfTestData\n * @property {Array.<sentencepiece.SelfTestData.ISample>|null} [samples]\n * SelfTestData samples\n */\n\n /**\n * Constructs a new SelfTestData.\n * @memberof sentencepiece\n * @classdesc Represents a SelfTestData.\n * @implements ISelfTestData\n * @constructor\n * @param {sentencepiece.ISelfTestData=} [properties] Properties to set\n */\n function SelfTestData(properties) {\n this.samples = [];\n if (properties)\n for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]];\n }\n\n /**\n * SelfTestData samples.\n * @member {Array.<sentencepiece.SelfTestData.ISample>} samples\n * @memberof sentencepiece.SelfTestData\n * @instance\n */\n SelfTestData.prototype.samples = $util.emptyArray;\n\n /**\n * Creates a new SelfTestData instance using the specified properties.\n * @function create\n * @memberof sentencepiece.SelfTestData\n * @static\n * @param {sentencepiece.ISelfTestData=} [properties] Properties to set\n * @returns {sentencepiece.SelfTestData} SelfTestData instance\n */\n SelfTestData.create = function create(properties) {\n return new SelfTestData(properties);\n };\n\n /**\n * Encodes the specified SelfTestData message. Does not implicitly {@link\n * sentencepiece.SelfTestData.verify|verify} messages.\n * @function encode\n * @memberof sentencepiece.SelfTestData\n * @static\n * @param {sentencepiece.ISelfTestData} message SelfTestData message or\n * plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n SelfTestData.encode = function encode(message, writer) {\n if (!writer) writer = $Writer.create();\n if (message.samples != null && message.samples.length)\n for (let i = 0; i < message.samples.length; ++i)\n $root.sentencepiece.SelfTestData.Sample\n .encode(\n message.samples[i],\n writer.uint32(/* id 1, wireType 2 =*/ 10).fork())\n .ldelim();\n return writer;\n };\n\n /**\n * Encodes the specified SelfTestData message, length delimited. Does not\n * implicitly {@link sentencepiece.SelfTestData.verify|verify} messages.\n * @function encodeDelimited\n * @memberof sentencepiece.SelfTestData\n * @static\n * @param {sentencepiece.ISelfTestData} message SelfTestData message or\n * plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n SelfTestData.encodeDelimited = function encodeDelimited(message, writer) {\n return this.encode(message, writer).ldelim();\n };\n\n /**\n * Decodes a SelfTestData message from the specified reader or buffer.\n * @function decode\n * @memberof sentencepiece.SelfTestData\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @param {number} [length] Message length if known beforehand\n * @returns {sentencepiece.SelfTestData} SelfTestData\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n SelfTestData.decode = function decode(reader, length, error) {\n if (!(reader instanceof $Reader)) reader = $Reader.create(reader);\n let end = length === undefined ? reader.len : reader.pos + length,\n message = new $root.sentencepiece.SelfTestData();\n while (reader.pos < end) {\n let tag = reader.uint32();\n if (tag === error) break;\n switch (tag >>> 3) {\n case 1: {\n if (!(message.samples && message.samples.length))\n message.samples = [];\n message.samples.push($root.sentencepiece.SelfTestData.Sample.decode(\n reader, reader.uint32()));\n break;\n }\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n };\n\n /**\n * Decodes a SelfTestData message from the specified reader or buffer,\n * length delimited.\n * @function decodeDelimited\n * @memberof sentencepiece.SelfTestData\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @returns {sentencepiece.SelfTestData} SelfTestData\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n SelfTestData.decodeDelimited = function decodeDelimited(reader) {\n if (!(reader instanceof $Reader)) reader = new $Reader(reader);\n return this.decode(reader, reader.uint32());\n };\n\n /**\n * Verifies a SelfTestData message.\n * @function verify\n * @memberof sentencepiece.SelfTestData\n * @static\n * @param {Object.<string,*>} message Plain object to verify\n * @returns {string|null} `null` if valid, otherwise the reason why it is\n * not\n */\n SelfTestData.verify = function verify(message) {\n if (typeof message !== 'object' || message === null)\n return 'object expected';\n if (message.samples != null && message.hasOwnProperty('samples')) {\n if (!Array.isArray(message.samples)) return 'samples: array expected';\n for (let i = 0; i < message.samples.length; ++i) {\n let error = $root.sentencepiece.SelfTestData.Sample.verify(\n message.samples[i]);\n if (error) return 'samples.' + error;\n }\n }\n return null;\n };\n\n /**\n * Creates a SelfTestData message from a plain object. Also converts values\n * to their respective internal types.\n * @function fromObject\n * @memberof sentencepiece.SelfTestData\n * @static\n * @param {Object.<string,*>} object Plain object\n * @returns {sentencepiece.SelfTestData} SelfTestData\n */\n SelfTestData.fromObject = function fromObject(object) {\n if (object instanceof $root.sentencepiece.SelfTestData) return object;\n let message = new $root.sentencepiece.SelfTestData();\n if (object.samples) {\n if (!Array.isArray(object.samples))\n throw TypeError(\n '.sentencepiece.SelfTestData.samples: array expected');\n message.samples = [];\n for (let i = 0; i < object.samples.length; ++i) {\n if (typeof object.samples[i] !== 'object')\n throw TypeError(\n '.sentencepiece.SelfTestData.samples: object expected');\n message.samples[i] =\n $root.sentencepiece.SelfTestData.Sample.fromObject(\n object.samples[i]);\n }\n }\n return message;\n };\n\n /**\n * Creates a plain object from a SelfTestData message. Also converts values\n * to other types if specified.\n * @function toObject\n * @memberof sentencepiece.SelfTestData\n * @static\n * @param {sentencepiece.SelfTestData} message SelfTestData\n * @param {$protobuf.IConversionOptions} [options] Conversion options\n * @returns {Object.<string,*>} Plain object\n */\n SelfTestData.toObject = function toObject(message, options) {\n if (!options) options = {};\n let object = {};\n if (options.arrays || options.defaults) object.samples = [];\n if (message.samples && message.samples.length) {\n object.samples = [];\n for (let j = 0; j < message.samples.length; ++j)\n object.samples[j] = $root.sentencepiece.SelfTestData.Sample.toObject(\n message.samples[j], options);\n }\n return object;\n };\n\n /**\n * Converts this SelfTestData to JSON.\n * @function toJSON\n * @memberof sentencepiece.SelfTestData\n * @instance\n * @returns {Object.<string,*>} JSON object\n */\n SelfTestData.prototype.toJSON = function toJSON() {\n return this.constructor.toObject(this, $protobuf.util.toJSONOptions);\n };\n\n /**\n * Gets the default type url for SelfTestData\n * @function getTypeUrl\n * @memberof sentencepiece.SelfTestData\n * @static\n * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default\n * \"type.googleapis.com\")\n * @returns {string} The default type url\n */\n SelfTestData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {\n if (typeUrlPrefix === undefined) {\n typeUrlPrefix = 'type.googleapis.com';\n }\n return typeUrlPrefix + '/sentencepiece.SelfTestData';\n };\n\n SelfTestData.Sample = (function() {\n /**\n * Properties of a Sample.\n * @memberof sentencepiece.SelfTestData\n * @interface ISample\n * @property {string|null} [input] Sample input\n * @property {string|null} [expected] Sample expected\n */\n\n /**\n * Constructs a new Sample.\n * @memberof sentencepiece.SelfTestData\n * @classdesc Represents a Sample.\n * @implements ISample\n * @constructor\n * @param {sentencepiece.SelfTestData.ISample=} [properties] Properties to\n * set\n */\n function Sample(properties) {\n if (properties)\n for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n if (properties[keys[i]] != null)\n this[keys[i]] = properties[keys[i]];\n }\n\n /**\n * Sample input.\n * @member {string} input\n * @memberof sentencepiece.SelfTestData.Sample\n * @instance\n */\n Sample.prototype.input = '';\n\n /**\n * Sample expected.\n * @member {string} expected\n * @memberof sentencepiece.SelfTestData.Sample\n * @instance\n */\n Sample.prototype.expected = '';\n\n /**\n * Creates a new Sample instance using the specified properties.\n * @function create\n * @memberof sentencepiece.SelfTestData.Sample\n * @static\n * @param {sentencepiece.SelfTestData.ISample=} [properties] Properties to\n * set\n * @returns {sentencepiece.SelfTestData.Sample} Sample instance\n */\n Sample.create = function create(properties) {\n return new Sample(properties);\n };\n\n /**\n * Encodes the specified Sample message. Does not implicitly {@link\n * sentencepiece.SelfTestData.Sample.verify|verify} messages.\n * @function encode\n * @memberof sentencepiece.SelfTestData.Sample\n * @static\n * @param {sentencepiece.SelfTestData.ISample} message Sample message or\n * plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n Sample.encode = function encode(message, writer) {\n if (!writer) writer = $Writer.create();\n if (message.input != null &&\n Object.hasOwnProperty.call(message, 'input'))\n writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.input);\n if (message.expected != null &&\n Object.hasOwnProperty.call(message, 'expected'))\n writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.expected);\n return writer;\n };\n\n /**\n * Encodes the specified Sample message, length delimited. Does not\n * implicitly {@link sentencepiece.SelfTestData.Sample.verify|verify}\n * messages.\n * @function encodeDelimited\n * @memberof sentencepiece.SelfTestData.Sample\n * @static\n * @param {sentencepiece.SelfTestData.ISample} message Sample message or\n * plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n Sample.encodeDelimited = function encodeDelimited(message, writer) {\n return this.encode(message, writer).ldelim();\n };\n\n /**\n * Decodes a Sample message from the specified reader or buffer.\n * @function decode\n * @memberof sentencepiece.SelfTestData.Sample\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @param {number} [length] Message length if known beforehand\n * @returns {sentencepiece.SelfTestData.Sample} Sample\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n Sample.decode = function decode(reader, length, error) {\n if (!(reader instanceof $Reader)) reader = $Reader.create(reader);\n let end = length === undefined ? reader.len : reader.pos + length,\n message = new $root.sentencepiece.SelfTestData.Sample();\n while (reader.pos < end) {\n let tag = reader.uint32();\n if (tag === error) break;\n switch (tag >>> 3) {\n case 1: {\n message.input = reader.string();\n break;\n }\n case 2: {\n message.expected = reader.string();\n break;\n }\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n };\n\n /**\n * Decodes a Sample message from the specified reader or buffer, length\n * delimited.\n * @function decodeDelimited\n * @memberof sentencepiece.SelfTestData.Sample\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @returns {sentencepiece.SelfTestData.Sample} Sample\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n Sample.decodeDelimited = function decodeDelimited(reader) {\n if (!(reader instanceof $Reader)) reader = new $Reader(reader);\n return this.decode(reader, reader.uint32());\n };\n\n /**\n * Verifies a Sample message.\n * @function verify\n * @memberof sentencepiece.SelfTestData.Sample\n * @static\n * @param {Object.<string,*>} message Plain object to verify\n * @returns {string|null} `null` if valid, otherwise the reason why it is\n * not\n */\n Sample.verify = function verify(message) {\n if (typeof message !== 'object' || message === null)\n return 'object expected';\n if (message.input != null && message.hasOwnProperty('input'))\n if (!$util.isString(message.input)) return 'input: string expected';\n if (message.expected != null && message.hasOwnProperty('expected'))\n if (!$util.isString(message.expected))\n return 'expected: string expected';\n return null;\n };\n\n /**\n * Creates a Sample message from a plain object. Also converts values to\n * their respective internal types.\n * @function fromObject\n * @memberof sentencepiece.SelfTestData.Sample\n * @static\n * @param {Object.<string,*>} object Plain object\n * @returns {sentencepiece.SelfTestData.Sample} Sample\n */\n Sample.fromObject = function fromObject(object) {\n if (object instanceof $root.sentencepiece.SelfTestData.Sample)\n return object;\n let message = new $root.sentencepiece.SelfTestData.Sample();\n if (object.input != null) message.input = String(object.input);\n if (object.expected != null) message.expected = String(object.expected);\n return message;\n };\n\n /**\n * Creates a plain object from a Sample message. Also converts values to\n * other types if specified.\n * @function toObject\n * @memberof sentencepiece.SelfTestData.Sample\n * @static\n * @param {sentencepiece.SelfTestData.Sample} message Sample\n * @param {$protobuf.IConversionOptions} [options] Conversion options\n * @returns {Object.<string,*>} Plain object\n */\n Sample.toObject = function toObject(message, options) {\n if (!options) options = {};\n let object = {};\n if (options.defaults) {\n object.input = '';\n object.expected = '';\n }\n if (message.input != null && message.hasOwnProperty('input'))\n object.input = message.input;\n if (message.expected != null && message.hasOwnProperty('expected'))\n object.expected = message.expected;\n return object;\n };\n\n /**\n * Converts this Sample to JSON.\n * @function toJSON\n * @memberof sentencepiece.SelfTestData.Sample\n * @instance\n * @returns {Object.<string,*>} JSON object\n */\n Sample.prototype.toJSON = function toJSON() {\n return this.constructor.toObject(this, $protobuf.util.toJSONOptions);\n };\n\n /**\n * Gets the default type url for Sample\n * @function getTypeUrl\n * @memberof sentencepiece.SelfTestData.Sample\n * @static\n * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default\n * \"type.googleapis.com\")\n * @returns {string} The default type url\n */\n Sample.getTypeUrl = function getTypeUrl(typeUrlPrefix) {\n if (typeUrlPrefix === undefined) {\n typeUrlPrefix = 'type.googleapis.com';\n }\n return typeUrlPrefix + '/sentencepiece.SelfTestData.Sample';\n };\n\n return Sample;\n })();\n\n return SelfTestData;\n })();\n\n sentencepiece.ModelProto = (function() {\n /**\n * Properties of a ModelProto.\n * @memberof sentencepiece\n * @interface IModelProto\n * @property {Array.<sentencepiece.ModelProto.ISentencePiece>|null} [pieces]\n * ModelProto pieces\n * @property {sentencepiece.ITrainerSpec|null} [trainerSpec] ModelProto\n * trainerSpec\n * @property {sentencepiece.INormalizerSpec|null} [normalizerSpec]\n * ModelProto normalizerSpec\n * @property {sentencepiece.ISelfTestData|null} [selfTestData] ModelProto\n * selfTestData\n * @property {sentencepiece.INormalizerSpec|null} [denormalizerSpec]\n * ModelProto denormalizerSpec\n */\n\n /**\n * Constructs a new ModelProto.\n * @memberof sentencepiece\n * @classdesc Represents a ModelProto.\n * @implements IModelProto\n * @constructor\n * @param {sentencepiece.IModelProto=} [properties] Properties to set\n */\n function ModelProto(properties) {\n this.pieces = [];\n if (properties)\n for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]];\n }\n\n /**\n * ModelProto pieces.\n * @member {Array.<sentencepiece.ModelProto.ISentencePiece>} pieces\n * @memberof sentencepiece.ModelProto\n * @instance\n */\n ModelProto.prototype.pieces = $util.emptyArray;\n\n /**\n * ModelProto trainerSpec.\n * @member {sentencepiece.ITrainerSpec|null|undefined} trainerSpec\n * @memberof sentencepiece.ModelProto\n * @instance\n */\n ModelProto.prototype.trainerSpec = null;\n\n /**\n * ModelProto normalizerSpec.\n * @member {sentencepiece.INormalizerSpec|null|undefined} normalizerSpec\n * @memberof sentencepiece.ModelProto\n * @instance\n */\n ModelProto.prototype.normalizerSpec = null;\n\n /**\n * ModelProto selfTestData.\n * @member {sentencepiece.ISelfTestData|null|undefined} selfTestData\n * @memberof sentencepiece.ModelProto\n * @instance\n */\n ModelProto.prototype.selfTestData = null;\n\n /**\n * ModelProto denormalizerSpec.\n * @member {sentencepiece.INormalizerSpec|null|undefined} denormalizerSpec\n * @memberof sentencepiece.ModelProto\n * @instance\n */\n ModelProto.prototype.denormalizerSpec = null;\n\n /**\n * Creates a new ModelProto instance using the specified properties.\n * @function create\n * @memberof sentencepiece.ModelProto\n * @static\n * @param {sentencepiece.IModelProto=} [properties] Properties to set\n * @returns {sentencepiece.ModelProto} ModelProto instance\n */\n ModelProto.create = function create(properties) {\n return new ModelProto(properties);\n };\n\n /**\n * Encodes the specified ModelProto message. Does not implicitly {@link\n * sentencepiece.ModelProto.verify|verify} messages.\n * @function encode\n * @memberof sentencepiece.ModelProto\n * @static\n * @param {sentencepiece.IModelProto} message ModelProto message or plain\n * object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n ModelProto.encode = function encode(message, writer) {\n if (!writer) writer = $Writer.create();\n if (message.pieces != null && message.pieces.length)\n for (let i = 0; i < message.pieces.length; ++i)\n $root.sentencepiece.ModelProto.SentencePiece\n .encode(\n message.pieces[i],\n writer.uint32(/* id 1, wireType 2 =*/ 10).fork())\n .ldelim();\n if (message.trainerSpec != null &&\n Object.hasOwnProperty.call(message, 'trainerSpec'))\n $root.sentencepiece.TrainerSpec\n .encode(\n message.trainerSpec,\n writer.uint32(/* id 2, wireType 2 =*/ 18).fork())\n .ldelim();\n if (message.normalizerSpec != null &&\n Object.hasOwnProperty.call(message, 'normalizerSpec'))\n $root.sentencepiece.NormalizerSpec\n .encode(\n message.normalizerSpec,\n writer.uint32(/* id 3, wireType 2 =*/ 26).fork())\n .ldelim();\n if (message.selfTestData != null &&\n Object.hasOwnProperty.call(message, 'selfTestData'))\n $root.sentencepiece.SelfTestData\n .encode(\n message.selfTestData,\n writer.uint32(/* id 4, wireType 2 =*/ 34).fork())\n .ldelim();\n if (message.denormalizerSpec != null &&\n Object.hasOwnProperty.call(message, 'denormalizerSpec'))\n $root.sentencepiece.NormalizerSpec\n .encode(\n message.denormalizerSpec,\n writer.uint32(/* id 5, wireType 2 =*/ 42).fork())\n .ldelim();\n return writer;\n };\n\n /**\n * Encodes the specified ModelProto message, length delimited. Does not\n * implicitly {@link sentencepiece.ModelProto.verify|verify} messages.\n * @function encodeDelimited\n * @memberof sentencepiece.ModelProto\n * @static\n * @param {sentencepiece.IModelProto} message ModelProto message or plain\n * object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n ModelProto.encodeDelimited = function encodeDelimited(message, writer) {\n return this.encode(message, writer).ldelim();\n };\n\n /**\n * Decodes a ModelProto message from the specified reader or buffer.\n * @function decode\n * @memberof sentencepiece.ModelProto\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @param {number} [length] Message length if known beforehand\n * @returns {sentencepiece.ModelProto} ModelProto\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n ModelProto.decode = function decode(reader, length, error) {\n if (!(reader instanceof $Reader)) reader = $Reader.create(reader);\n let end = length === undefined ? reader.len : reader.pos + length,\n message = new $root.sentencepiece.ModelProto();\n while (reader.pos < end) {\n let tag = reader.uint32();\n if (tag === error) break;\n switch (tag >>> 3) {\n case 1: {\n if (!(message.pieces && message.pieces.length)) message.pieces = [];\n message.pieces.push(\n $root.sentencepiece.ModelProto.SentencePiece.decode(\n reader, reader.uint32()));\n break;\n }\n case 2: {\n message.trainerSpec =\n $root.sentencepiece.TrainerSpec.decode(reader, reader.uint32());\n break;\n }\n case 3: {\n message.normalizerSpec = $root.sentencepiece.NormalizerSpec.decode(\n reader, reader.uint32());\n break;\n }\n case 4: {\n message.selfTestData = $root.sentencepiece.SelfTestData.decode(\n reader, reader.uint32());\n break;\n }\n case 5: {\n message.denormalizerSpec =\n $root.sentencepiece.NormalizerSpec.decode(\n reader, reader.uint32());\n break;\n }\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n };\n\n /**\n * Decodes a ModelProto message from the specified reader or buffer, length\n * delimited.\n * @function decodeDelimited\n * @memberof sentencepiece.ModelProto\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @returns {sentencepiece.ModelProto} ModelProto\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n ModelProto.decodeDelimited = function decodeDelimited(reader) {\n if (!(reader instanceof $Reader)) reader = new $Reader(reader);\n return this.decode(reader, reader.uint32());\n };\n\n /**\n * Verifies a ModelProto message.\n * @function verify\n * @memberof sentencepiece.ModelProto\n * @static\n * @param {Object.<string,*>} message Plain object to verify\n * @returns {string|null} `null` if valid, otherwise the reason why it is\n * not\n */\n ModelProto.verify = function verify(message) {\n if (typeof message !== 'object' || message === null)\n return 'object expected';\n if (message.pieces != null && message.hasOwnProperty('pieces')) {\n if (!Array.isArray(message.pieces)) return 'pieces: array expected';\n for (let i = 0; i < message.pieces.length; ++i) {\n let error = $root.sentencepiece.ModelProto.SentencePiece.verify(\n message.pieces[i]);\n if (error) return 'pieces.' + error;\n }\n }\n if (message.trainerSpec != null &&\n message.hasOwnProperty('trainerSpec')) {\n let error = $root.sentencepiece.TrainerSpec.verify(message.trainerSpec);\n if (error) return 'trainerSpec.' + error;\n }\n if (message.normalizerSpec != null &&\n message.hasOwnProperty('normalizerSpec')) {\n let error =\n $root.sentencepiece.NormalizerSpec.verify(message.normalizerSpec);\n if (error) return 'normalizerSpec.' + error;\n }\n if (message.selfTestData != null &&\n message.hasOwnProperty('selfTestData')) {\n let error =\n $root.sentencepiece.SelfTestData.verify(message.selfTestData);\n if (error) return 'selfTestData.' + error;\n }\n if (message.denormalizerSpec != null &&\n message.hasOwnProperty('denormalizerSpec')) {\n let error =\n $root.sentencepiece.NormalizerSpec.verify(message.denormalizerSpec);\n if (error) return 'denormalizerSpec.' + error;\n }\n return null;\n };\n\n /**\n * Creates a ModelProto message from a plain object. Also converts values to\n * their respective internal types.\n * @function fromObject\n * @memberof sentencepiece.ModelProto\n * @static\n * @param {Object.<string,*>} object Plain object\n * @returns {sentencepiece.ModelProto} ModelProto\n */\n ModelProto.fromObject = function fromObject(object) {\n if (object instanceof $root.sentencepiece.ModelProto) return object;\n let message = new $root.sentencepiece.ModelProto();\n if (object.pieces) {\n if (!Array.isArray(object.pieces))\n throw TypeError('.sentencepiece.ModelProto.pieces: array expected');\n message.pieces = [];\n for (let i = 0; i < object.pieces.length; ++i) {\n if (typeof object.pieces[i] !== 'object')\n throw TypeError(\n '.sentencepiece.ModelProto.pieces: object expected');\n message.pieces[i] =\n $root.sentencepiece.ModelProto.SentencePiece.fromObject(\n object.pieces[i]);\n }\n }\n if (object.trainerSpec != null) {\n if (typeof object.trainerSpec !== 'object')\n throw TypeError(\n '.sentencepiece.ModelProto.trainerSpec: object expected');\n message.trainerSpec =\n $root.sentencepiece.TrainerSpec.fromObject(object.trainerSpec);\n }\n if (object.normalizerSpec != null) {\n if (typeof object.normalizerSpec !== 'object')\n throw TypeError(\n '.sentencepiece.ModelProto.normalizerSpec: object expected');\n message.normalizerSpec = $root.sentencepiece.NormalizerSpec.fromObject(\n object.normalizerSpec);\n }\n if (object.selfTestData != null) {\n if (typeof object.selfTestData !== 'object')\n throw TypeError(\n '.sentencepiece.ModelProto.selfTestData: object expected');\n message.selfTestData =\n $root.sentencepiece.SelfTestData.fromObject(object.selfTestData);\n }\n if (object.denormalizerSpec != null) {\n if (typeof object.denormalizerSpec !== 'object')\n throw TypeError(\n '.sentencepiece.ModelProto.denormalizerSpec: object expected');\n message.denormalizerSpec =\n $root.sentencepiece.NormalizerSpec.fromObject(\n object.denormalizerSpec);\n }\n return message;\n };\n\n /**\n * Creates a plain object from a ModelProto message. Also converts values to\n * other types if specified.\n * @function toObject\n * @memberof sentencepiece.ModelProto\n * @static\n * @param {sentencepiece.ModelProto} message ModelProto\n * @param {$protobuf.IConversionOptions} [options] Conversion options\n * @returns {Object.<string,*>} Plain object\n */\n ModelProto.toObject = function toObject(message, options) {\n if (!options) options = {};\n let object = {};\n if (options.arrays || options.defaults) object.pieces = [];\n if (options.defaults) {\n object.trainerSpec = null;\n object.normalizerSpec = null;\n object.selfTestData = null;\n object.denormalizerSpec = null;\n }\n if (message.pieces && message.pieces.length) {\n object.pieces = [];\n for (let j = 0; j < message.pieces.length; ++j)\n object.pieces[j] =\n $root.sentencepiece.ModelProto.SentencePiece.toObject(\n message.pieces[j], options);\n }\n if (message.trainerSpec != null && message.hasOwnProperty('trainerSpec'))\n object.trainerSpec = $root.sentencepiece.TrainerSpec.toObject(\n message.trainerSpec, options);\n if (message.normalizerSpec != null &&\n message.hasOwnProperty('normalizerSpec'))\n object.normalizerSpec = $root.sentencepiece.NormalizerSpec.toObject(\n message.normalizerSpec, options);\n if (message.selfTestData != null &&\n message.hasOwnProperty('selfTestData'))\n object.selfTestData = $root.sentencepiece.SelfTestData.toObject(\n message.selfTestData, options);\n if (message.denormalizerSpec != null &&\n message.hasOwnProperty('denormalizerSpec'))\n object.denormalizerSpec = $root.sentencepiece.NormalizerSpec.toObject(\n message.denormalizerSpec, options);\n return object;\n };\n\n /**\n * Converts this ModelProto to JSON.\n * @function toJSON\n * @memberof sentencepiece.ModelProto\n * @instance\n * @returns {Object.<string,*>} JSON object\n */\n ModelProto.prototype.toJSON = function toJSON() {\n return this.constructor.toObject(this, $protobuf.util.toJSONOptions);\n };\n\n /**\n * Gets the default type url for ModelProto\n * @function getTypeUrl\n * @memberof sentencepiece.ModelProto\n * @static\n * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default\n * \"type.googleapis.com\")\n * @returns {string} The default type url\n */\n ModelProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {\n if (typeUrlPrefix === undefined) {\n typeUrlPrefix = 'type.googleapis.com';\n }\n return typeUrlPrefix + '/sentencepiece.ModelProto';\n };\n\n ModelProto.SentencePiece = (function() {\n /**\n * Properties of a SentencePiece.\n * @memberof sentencepiece.ModelProto\n * @interface ISentencePiece\n * @property {string|null} [piece] SentencePiece piece\n * @property {number|null} [score] SentencePiece score\n * @property {sentencepiece.ModelProto.SentencePiece.Type|null} [type]\n * SentencePiece type\n */\n\n /**\n * Constructs a new SentencePiece.\n * @memberof sentencepiece.ModelProto\n * @classdesc Represents a SentencePiece.\n * @implements ISentencePiece\n * @constructor\n * @param {sentencepiece.ModelProto.ISentencePiece=} [properties]\n * Properties to set\n */\n function SentencePiece(properties) {\n if (properties)\n for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n if (properties[keys[i]] != null)\n this[keys[i]] = properties[keys[i]];\n }\n\n /**\n * SentencePiece piece.\n * @member {string} piece\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @instance\n */\n SentencePiece.prototype.piece = '';\n\n /**\n * SentencePiece score.\n * @member {number} score\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @instance\n */\n SentencePiece.prototype.score = 0;\n\n /**\n * SentencePiece type.\n * @member {sentencepiece.ModelProto.SentencePiece.Type} type\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @instance\n */\n SentencePiece.prototype.type = 1;\n\n /**\n * Creates a new SentencePiece instance using the specified properties.\n * @function create\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @static\n * @param {sentencepiece.ModelProto.ISentencePiece=} [properties]\n * Properties to set\n * @returns {sentencepiece.ModelProto.SentencePiece} SentencePiece\n * instance\n */\n SentencePiece.create = function create(properties) {\n return new SentencePiece(properties);\n };\n\n /**\n * Encodes the specified SentencePiece message. Does not implicitly {@link\n * sentencepiece.ModelProto.SentencePiece.verify|verify} messages.\n * @function encode\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @static\n * @param {sentencepiece.ModelProto.ISentencePiece} message SentencePiece\n * message or plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n SentencePiece.encode = function encode(message, writer) {\n if (!writer) writer = $Writer.create();\n if (message.piece != null &&\n Object.hasOwnProperty.call(message, 'piece'))\n writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.piece);\n if (message.score != null &&\n Object.hasOwnProperty.call(message, 'score'))\n writer.uint32(/* id 2, wireType 5 =*/ 21).float(message.score);\n if (message.type != null && Object.hasOwnProperty.call(message, 'type'))\n writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.type);\n return writer;\n };\n\n /**\n * Encodes the specified SentencePiece message, length delimited. Does not\n * implicitly {@link sentencepiece.ModelProto.SentencePiece.verify|verify}\n * messages.\n * @function encodeDelimited\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @static\n * @param {sentencepiece.ModelProto.ISentencePiece} message SentencePiece\n * message or plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n SentencePiece.encodeDelimited = function encodeDelimited(\n message, writer) {\n return this.encode(message, writer).ldelim();\n };\n\n /**\n * Decodes a SentencePiece message from the specified reader or buffer.\n * @function decode\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @param {number} [length] Message length if known beforehand\n * @returns {sentencepiece.ModelProto.SentencePiece} SentencePiece\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n SentencePiece.decode = function decode(reader, length, error) {\n if (!(reader instanceof $Reader)) reader = $Reader.create(reader);\n let end = length === undefined ? reader.len : reader.pos + length,\n message = new $root.sentencepiece.ModelProto.SentencePiece();\n while (reader.pos < end) {\n let tag = reader.uint32();\n if (tag === error) break;\n switch (tag >>> 3) {\n case 1: {\n message.piece = reader.string();\n break;\n }\n case 2: {\n message.score = reader.float();\n break;\n }\n case 3: {\n message.type = reader.int32();\n break;\n }\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n };\n\n /**\n * Decodes a SentencePiece message from the specified reader or buffer,\n * length delimited.\n * @function decodeDelimited\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode\n * from\n * @returns {sentencepiece.ModelProto.SentencePiece} SentencePiece\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n SentencePiece.decodeDelimited = function decodeDelimited(reader) {\n if (!(reader instanceof $Reader)) reader = new $Reader(reader);\n return this.decode(reader, reader.uint32());\n };\n\n /**\n * Verifies a SentencePiece message.\n * @function verify\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @static\n * @param {Object.<string,*>} message Plain object to verify\n * @returns {string|null} `null` if valid, otherwise the reason why it is\n * not\n */\n SentencePiece.verify = function verify(message) {\n if (typeof message !== 'object' || message === null)\n return 'object expected';\n if (message.piece != null && message.hasOwnProperty('piece'))\n if (!$util.isString(message.piece)) return 'piece: string expected';\n if (message.score != null && message.hasOwnProperty('score'))\n if (typeof message.score !== 'number')\n return 'score: number expected';\n if (message.type != null && message.hasOwnProperty('type'))\n switch (message.type) {\n default:\n return 'type: enum value expected';\n case 1:\n case 2:\n case 3:\n case 4:\n case 6:\n case 5:\n break;\n }\n return null;\n };\n\n /**\n * Creates a SentencePiece message from a plain object. Also converts\n * values to their respective internal types.\n * @function fromObject\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @static\n * @param {Object.<string,*>} object Plain object\n * @returns {sentencepiece.ModelProto.SentencePiece} SentencePiece\n */\n SentencePiece.fromObject = function fromObject(object) {\n if (object instanceof $root.sentencepiece.ModelProto.SentencePiece)\n return object;\n let message = new $root.sentencepiece.ModelProto.SentencePiece();\n if (object.piece != null) message.piece = String(object.piece);\n if (object.score != null) message.score = Number(object.score);\n switch (object.type) {\n default:\n if (typeof object.type === 'number') {\n message.type = object.type;\n break;\n }\n break;\n case 'NORMAL':\n case 1:\n message.type = 1;\n break;\n case 'UNKNOWN':\n case 2:\n message.type = 2;\n break;\n case 'CONTROL':\n case 3:\n message.type = 3;\n break;\n case 'USER_DEFINED':\n case 4:\n message.type = 4;\n break;\n case 'BYTE':\n case 6:\n message.type = 6;\n break;\n case 'UNUSED':\n case 5:\n message.type = 5;\n break;\n }\n return message;\n };\n\n /**\n * Creates a plain object from a SentencePiece message. Also converts\n * values to other types if specified.\n * @function toObject\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @static\n * @param {sentencepiece.ModelProto.SentencePiece} message SentencePiece\n * @param {$protobuf.IConversionOptions} [options] Conversion options\n * @returns {Object.<string,*>} Plain object\n */\n SentencePiece.toObject = function toObject(message, options) {\n if (!options) options = {};\n let object = {};\n if (options.defaults) {\n object.piece = '';\n object.score = 0;\n object.type = options.enums === String ? 'NORMAL' : 1;\n }\n if (message.piece != null && message.hasOwnProperty('piece'))\n object.piece = message.piece;\n if (message.score != null && message.hasOwnProperty('score'))\n object.score = options.json && !isFinite(message.score) ?\n String(message.score) :\n message.score;\n if (message.type != null && message.hasOwnProperty('type'))\n object.type = options.enums === String ?\n $root.sentencepiece.ModelProto.SentencePiece\n .Type[message.type] === undefined ?\n message.type :\n $root.sentencepiece.ModelProto.SentencePiece.Type[message.type] :\n message.type;\n return object;\n };\n\n /**\n * Converts this SentencePiece to JSON.\n * @function toJSON\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @instance\n * @returns {Object.<string,*>} JSON object\n */\n SentencePiece.prototype.toJSON = function toJSON() {\n return this.constructor.toObject(this, $protobuf.util.toJSONOptions);\n };\n\n /**\n * Gets the default type url for SentencePiece\n * @function getTypeUrl\n * @memberof sentencepiece.ModelProto.SentencePiece\n * @static\n * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default\n * \"type.googleapis.com\")\n * @returns {string} The default type url\n */\n SentencePiece.getTypeUrl = function getTypeUrl(typeUrlPrefix) {\n if (typeUrlPrefix === undefined) {\n typeUrlPrefix = 'type.googleapis.com';\n }\n return typeUrlPrefix + '/sentencepiece.ModelProto.SentencePiece';\n };\n\n /**\n * Type enum.\n * @name sentencepiece.ModelProto.SentencePiece.Type\n * @enum {number}\n * @property {number} NORMAL=1 NORMAL value\n * @property {number} UNKNOWN=2 UNKNOWN value\n * @property {number} CONTROL=3 CONTROL value\n * @property {number} USER_DEFINED=4 USER_DEFINED value\n * @property {number} BYTE=6 BYTE value\n * @property {number} UNUSED=5 UNUSED value\n */\n SentencePiece.Type = (function() {\n const valuesById = {}, values = Object.create(valuesById);\n values[valuesById[1] = 'NORMAL'] = 1;\n values[valuesById[2] = 'UNKNOWN'] = 2;\n values[valuesById[3] = 'CONTROL'] = 3;\n values[valuesById[4] = 'USER_DEFINED'] = 4;\n values[valuesById[6] = 'BYTE'] = 6;\n values[valuesById[5] = 'UNUSED'] = 5;\n return values;\n })();\n\n return SentencePiece;\n })();\n\n return ModelProto;\n })();\n\n return sentencepiece;\n})();\n\nexport {$root as default};\n","/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * Pure TypeScript implementation of SentencePiece tokenizer.\n * Translated from github.com/eliben/go-sentencepiece\n */\n\nimport {ModelProto, ModelType, SentencePieceType} from './_model.js';\nimport {PrefixMatcher} from './_prefix_matcher.js';\nimport {PriorityQueue} from './_priority_queue.js';\nimport {sentencepiece} from './sentencepiece_model.pb.js';\n\nconst WHITESPACE_SEPARATOR = '▁';\n\n/** Token represents a single token from the input text */\nexport interface Token {\n id: number;\n text: string;\n}\n\n/** Model information */\nexport interface ModelInfo {\n vocabularySize: number;\n beginningOfSentenceID: number;\n endOfSentenceID: number;\n unknownID: number;\n padID: number;\n}\n\nconst SYMBOL_BOS = '<bos>';\nconst SYMBOL_EOS = '<eos>';\nconst SYMBOL_PAD = '<pad>';\n\n/**\n * Processor represents a SentencePiece processor (tokenizer).\n * It converts input text into a sequence of tokens and back.\n */\nexport class SentencePieceProcessor {\n private model: ModelProto;\n private pieces: Map<string, number>;\n private reserved: Map<string, number>;\n private unknownID: number;\n private userDefinedMatcher: PrefixMatcher;\n private byte2Token: Map<number, Token>;\n private idToByte: Map<number, number>;\n private maxPieceLength: number;\n\n /**\n * Creates a new Processor from model proto bytes.\n */\n constructor(modelProtoBytes: Uint8Array) {\n this.model = this.parseModelProto(modelProtoBytes);\n\n const tspec = this.model.trainerSpec;\n if (!tspec || tspec.modelType !== ModelType.BPE) {\n throw new Error(\n `Model type ${tspec?.modelType} not supported, only BPE is supported`,\n );\n }\n\n const nspec = this.model.normalizerSpec;\n if (nspec?.addDummyPrefix || nspec?.removeExtraWhitespaces) {\n throw new Error(\n `Normalizer spec options not supported: ${JSON.stringify(nspec)}`,\n );\n }\n\n const userDefined = new Set<string>();\n this.pieces = new Map();\n this.reserved = new Map();\n this.byte2Token = new Map();\n this.idToByte = new Map();\n this.unknownID = -1;\n this.maxPieceLength = 0;\n\n if (!this.model.pieces) {\n throw new Error('Model has no pieces');\n }\n\n for (let i = 0; i < this.model.pieces.length; i++) {\n const piece = this.model.pieces[i];\n const pieceText = piece.piece ?? '';\n const pieceType = piece.type ?? SentencePieceType.NORMAL;\n\n const isNormalPiece =\n pieceType === SentencePieceType.NORMAL ||\n pieceType === SentencePieceType.USER_DEFINED ||\n pieceType === SentencePieceType.UNUSED;\n\n if (isNormalPiece) {\n this.pieces.set(pieceText, i);\n this.maxPieceLength = Math.max(this.maxPieceLength, pieceText.length);\n } else {\n this.reserved.set(pieceText, i);\n }\n\n if (pieceType === SentencePieceType.USER_DEFINED) {\n userDefined.add(pieceText);\n } else if (pieceType === SentencePieceType.UNKNOWN) {\n if (this.unknownID >= 0) {\n throw new Error('unk redefined');\n }\n this.unknownID = i;\n } else if (pieceType === SentencePieceType.BYTE) {\n if (!tspec.byteFallback) {\n throw new Error(\n `byte piece \"${pieceText}\" found although byte_fallback=false`,\n );\n }\n const bv = convertHexValue(pieceText);\n if (bv >= 0 && bv < 256) {\n this.byte2Token.set(bv, {id: i, text: pieceText});\n this.idToByte.set(i, bv);\n }\n }\n }\n\n if (this.unknownID < 0) {\n throw new Error('unk symbol is not defined');\n }\n\n // If byte_fallback is specified, ensure all 256 byte values are present\n if (tspec.byteFallback) {\n for (let i = 0; i < 256; i++) {\n if (!this.byte2Token.has(i)) {\n throw new Error(\n `byte value 0x${i.toString(16).padStart(2, '0')} not found`,\n );\n }\n }\n }\n\n this.userDefinedMatcher = new PrefixMatcher(userDefined);\n }\n\n /**\n * Encodes text into a list of tokens.\n */\n encode(text: string): Token[] {\n text = this.normalize(text);\n\n // Symbol list element type\n interface SymListElem {\n prev: number;\n next: number;\n noMerge: boolean;\n symbol: string;\n }\n\n const symList: SymListElem[] = [];\n\n while (text.length > 0) {\n const [slen, found] = this.symbolMatch(text);\n\n const sym: SymListElem = {\n noMerge: found,\n symbol: text.substring(0, slen),\n prev: symList.length - 1,\n next: symList.length + 1,\n };\n symList.push(sym);\n\n text = text.substring(slen);\n }\n\n if (symList.length === 0) {\n return [];\n }\n\n symList[symList.length - 1].next = -1;\n let _nTokens = symList.length;\n\n interface MergeCandidate {\n left: number;\n right: number;\n length: number;\n score: number;\n }\n\n const mergeQueue = new PriorityQueue<MergeCandidate>(\n symList.length,\n (a, b) => {\n if (a.score > b.score || (a.score === b.score && a.left < b.left)) {\n return 1;\n }\n return -1;\n },\n );\n\n const findMerged = (\n x: SymListElem,\n y: SymListElem,\n ): [string, number, boolean] => {\n const merged = x.symbol + y.symbol;\n const id = this.pieces.get(merged);\n if (id !== undefined && this.model.pieces) {\n return [this.model.pieces[id].piece ?? '', id, true];\n }\n return ['', 0, false];\n };\n\n const suggestNewMergePair = (left: number, right: number) => {\n if (\n left === -1 ||\n right === -1 ||\n symList[left].noMerge ||\n symList[right].noMerge\n ) {\n return;\n }\n\n const [mergedSymbol, id, ok] = findMerged(symList[left], symList[right]);\n if (ok && this.model.pieces) {\n mergeQueue.insert({\n left,\n right,\n length: mergedSymbol.length,\n score: this.model.pieces[id].score ?? 0,\n });\n }\n };\n\n for (let i = 1; i < symList.length; i++) {\n suggestNewMergePair(i - 1, i);\n }\n\n const candidateIsDead = (candidate: MergeCandidate): boolean => {\n const leftSymbol = symList[candidate.left].symbol;\n const rightSymbol = symList[candidate.right].symbol;\n return (\n leftSymbol === '' ||\n rightSymbol === '' ||\n leftSymbol.length + rightSymbol.length !== candidate.length\n );\n };\n\n let mergeQueueDead = 0;\n while (mergeQueue.len() > 0) {\n const candidate = mergeQueue.popMax();\n const leftSymbol = symList[candidate.left];\n const rightSymbol = symList[candidate.right];\n\n if (candidateIsDead(candidate)) {\n mergeQueueDead--;\n continue;\n }\n\n if (mergeQueueDead * 3 > mergeQueue.len()) {\n mergeQueue.removeFunc(candidateIsDead);\n mergeQueueDead = 0;\n }\n\n const [mergedSymbol, , ok] = findMerged(leftSymbol, rightSymbol);\n if (!ok) {\n throw new Error('failed to merge symbols');\n }\n symList[candidate.left].symbol = mergedSymbol;\n _nTokens--;\n\n symList[candidate.left].next = rightSymbol.next;\n if (rightSymbol.next >= 0) {\n symList[rightSymbol.next].prev = candidate.left;\n }\n\n symList[candidate.right].symbol = '';\n mergeQueueDead++;\n\n suggestNewMergePair(leftSymbol.prev, candidate.left);\n suggestNewMergePair(candidate.left, rightSymbol.next);\n }\n\n const tokens: Token[] = [];\n for (let i = 0; i >= 0; i = symList[i].next) {\n const symbol = symList[i].symbol;\n const id = this.symbolToID(symbol);\n if (id === this.unknownID && this.model.trainerSpec?.byteFallback) {\n // Need to convert byte to token at UTF-8 bytes level\n const bytes = new TextEncoder().encode(symbol);\n for (let j = 0; j < bytes.length; j++) {\n const byteToken = this.byte2Token.get(bytes[j]);\n if (byteToken) {\n tokens.push(byteToken);\n }\n }\n } else {\n tokens.push({id, text: symbol});\n }\n }\n\n return tokens;\n }\n\n /**\n * Decodes a list of token IDs back into text.\n */\n decode(ids: number[]): string {\n const parts: string[] = [];\n\n let i = 0;\n while (i < ids.length) {\n let nextNonByte = i;\n while (nextNonByte < ids.length && this.isByteID(ids[nextNonByte])) {\n nextNonByte++;\n }\n const numBytes = nextNonByte - i;\n\n if (numBytes > 0) {\n const bytes: number[] = [];\n for (let bi = i; bi < nextNonByte; bi++) {\n const byte = this.idToByte.get(ids[bi]);\n if (byte !== undefined) {\n bytes.push(byte);\n }\n }\n\n const textDecoder = new TextDecoder('utf-8', {fatal: false});\n const text = textDecoder.decode(new Uint8Array(bytes));\n parts.push(text);\n }\n\n if (nextNonByte >= ids.length) {\n break;\n }\n\n const id = ids[nextNonByte];\n // eslint-disable-next-line no-empty\n if (this.isControlID(id)) {\n } else if (id === this.unknownID) {\n parts.push(this.model.trainerSpec?.unkSurface ?? '');\n } else if (this.model.pieces && this.model.pieces[id]) {\n const piece = this.model.pieces[id].piece ?? '';\n parts.push(this.replaceSeparatorsBySpace(piece));\n }\n i = nextNonByte + 1;\n }\n\n return parts.join('');\n }\n\n /**\n * Decodes a list of tokens back into text.\n */\n decodeTokens(tokens: Token[]): string {\n return this.decode(tokens.map((t) => t.id));\n }\n\n /**\n * Returns information about the loaded model.\n */\n modelInfo(): ModelInfo {\n const getControlID = (symbol: string): number => {\n const id = this.symbolToID(symbol);\n return this.isControlID(id) ? id : -1;\n };\n\n return {\n vocabularySize: this.model.pieces?.length ?? 0,\n beginningOfSentenceID: getControlID(SYMBOL_BOS),\n endOfSentenceID: getControlID(SYMBOL_EOS),\n padID: getControlID(SYMBOL_PAD),\n unknownID: this.unknownID,\n };\n }\n\n private normalize(text: string): string {\n return text.replace(/ /g, WHITESPACE_SEPARATOR);\n }\n\n private replaceSeparatorsBySpace(text: string): string {\n return text.replace(new RegExp(WHITESPACE_SEPARATOR, 'g'), ' ');\n }\n\n private symbolMatch(text: string): [number, boolean] {\n const prefixLen = this.userDefinedMatcher.findPrefixLen(text);\n if (prefixLen > 0) {\n return [prefixLen, true];\n }\n\n // Return character length (1), not byte length\n // This matches the Java implementation where i++ advances by 1 character\n return [1, false];\n }\n\n private symbolToID(symbol: string): number {\n const reservedID = this.reserved.get(symbol);\n if (reservedID !== undefined) {\n return reservedID;\n }\n const pieceID = this.pieces.get(symbol);\n if (pieceID !== undefined) {\n return pieceID;\n }\n return this.unknownID;\n }\n\n private isByteID(id: number): boolean {\n if (!this.model.pieces || id >= this.model.pieces.length) {\n return false;\n }\n return this.model.pieces[id].type === SentencePieceType.BYTE;\n }\n\n private isControlID(id: number): boolean {\n if (!this.model.pieces || id >= this.model.pieces.length) {\n return false;\n }\n return this.model.pieces[id].type === SentencePieceType.CONTROL;\n }\n\n private parseModelProto(data: Uint8Array): ModelProto {\n const decoded = sentencepiece.ModelProto.decode(data);\n\n const model: ModelProto = {\n pieces: decoded.pieces?.map(\n (p: sentencepiece.ModelProto.ISentencePiece) => ({\n piece: p.piece ?? undefined,\n score: p.score ?? undefined,\n type: (p.type as unknown as SentencePieceType) ?? undefined,\n }),\n ),\n trainerSpec: decoded.trainerSpec\n ? {\n modelType:\n (decoded.trainerSpec.modelType as unknown as ModelType) ??\n undefined,\n vocabSize: decoded.trainerSpec.vocabSize ?? undefined,\n characterCoverage:\n decoded.trainerSpec.characterCoverage ?? undefined,\n byteFallback: decoded.trainerSpec.byteFallback ?? undefined,\n unkSurface: decoded.trainerSpec.unkSurface ?? undefined,\n }\n : undefined,\n normalizerSpec: decoded.normalizerSpec\n ? {\n name: decoded.normalizerSpec.name ?? undefined,\n precompiledCharsmap: decoded.normalizerSpec.precompiledCharsmap\n ? new Uint8Array(decoded.normalizerSpec.precompiledCharsmap)\n : undefined,\n addDummyPrefix: decoded.normalizerSpec.addDummyPrefix ?? undefined,\n removeExtraWhitespaces:\n decoded.normalizerSpec.removeExtraWhitespaces ?? undefined,\n escapeWhitespaces:\n decoded.normalizerSpec.escapeWhitespaces ?? undefined,\n normalizationRuleTsv:\n decoded.normalizerSpec.normalizationRuleTsv ?? undefined,\n }\n : undefined,\n };\n\n return model;\n }\n}\n\nfunction convertHexValue(bv: string): number {\n const match = bv.match(/^<0x([0-9A-Fa-f]{2})>$/);\n if (!match) {\n return -1;\n }\n return parseInt(match[1], 16);\n}\n","/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {TokenizerConfig, TokenizerPlatform} from './_interfaces.js';\n\n/**\n * Source of truth: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models\n */\nconst GEMINI_MODELS_TO_TOKENIZER_NAMES: Record<string, string> = {\n 'gemini-2.5-pro': 'gemma3',\n 'gemini-2.5-flash': 'gemma3',\n 'gemini-2.5-flash-lite': 'gemma3',\n 'gemini-2.0-flash': 'gemma3',\n 'gemini-2.0-flash-lite': 'gemma3',\n};\n\nconst GEMINI_STABLE_MODELS_TO_TOKENIZER_NAMES: Record<string, string> = {\n 'gemini-3-pro-preview': 'gemma3',\n 'gemini-2.5-pro-preview-06-05': 'gemma3',\n 'gemini-2.5-pro-preview-05-06': 'gemma3',\n 'gemini-2.5-pro-exp-03-25': 'gemma3',\n 'gemini-live-2.5-flash': 'gemma3',\n 'gemini-2.5-flash-preview-05-20': 'gemma3',\n 'gemini-2.5-flash-preview-04-17': 'gemma3',\n 'gemini-2.5-flash-lite-preview-06-17': 'gemma3',\n 'gemini-2.0-flash-001': 'gemma3',\n 'gemini-2.0-flash-lite-001': 'gemma3',\n};\n\nconst TOKENIZERS: Record<string, TokenizerConfig> = {\n gemma2: {\n modelUrl:\n 'https://raw.githubusercontent.com/google/gemma_pytorch/33b652c465537c6158f9a472ea5700e5e770ad3f/tokenizer/tokenizer.model',\n modelHash:\n '61a7b147390c64585d6c3543dd6fc636906c9af3865a5548f27f31aee1d4c8e2',\n },\n gemma3: {\n modelUrl:\n 'https://raw.githubusercontent.com/google/gemma_pytorch/014acb7ac4563a5f77c76d7ff98f31b568c16508/tokenizer/gemma3_cleaned_262144_v2.spiece.model',\n modelHash:\n '1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c',\n },\n};\n\n/**\n * Gets the tokenizer name for the given model name.\n *\n * @param modelName The Gemini model name\n * @return The tokenizer name to use\n * @throws Error if the model is not supported\n */\nexport function getTokenizerName(modelName: string): string {\n if (modelName in GEMINI_MODELS_TO_TOKENIZER_NAMES) {\n return GEMINI_MODELS_TO_TOKENIZER_NAMES[modelName];\n }\n if (modelName in GEMINI_STABLE_MODELS_TO_TOKENIZER_NAMES) {\n return GEMINI_STABLE_MODELS_TO_TOKENIZER_NAMES[modelName];\n }\n\n const supportedModels = [\n ...Object.keys(GEMINI_MODELS_TO_TOKENIZER_NAMES),\n ...Object.keys(GEMINI_STABLE_MODELS_TO_TOKENIZER_NAMES),\n ].join(', ');\n\n throw new Error(\n `Model ${modelName} is not supported for local tokenization. Supported models: ${supportedModels}.`,\n );\n}\n\n/**\n * Gets the tokenizer configuration for the given tokenizer name.\n *\n * @param tokenizerName The tokenizer name\n * @return The tokenizer configuration\n * @throws Error if the tokenizer is not found\n */\nexport function getTokenizerConfig(tokenizerName: string): TokenizerConfig {\n if (!(tokenizerName in TOKENIZERS)) {\n throw new Error(\n `Tokenizer ${tokenizerName} is not supported. Supported tokenizers: ${Object.keys(TOKENIZERS).join(', ')}`,\n );\n }\n return TOKENIZERS[tokenizerName];\n}\n\n/**\n * Loads tokenizer model bytes from cache or URL.\n *\n * @param tokenizerName The tokenizer name\n * @param platform Platform-specific implementations\n * @return The model bytes\n */\nexport async function loadModelProtoBytes(\n tokenizerName: string,\n platform: TokenizerPlatform,\n): Promise<Uint8Array> {\n const config = getTokenizerConfig(tokenizerName);\n\n const encoder = new TextEncoder();\n const cacheKey = await platform.fileSystem.computeSha1(\n encoder.encode(config.modelUrl),\n );\n\n let modelData = await platform.cache.load(cacheKey, config.modelHash);\n\n if (!modelData) {\n modelData = await platform.fileSystem.fetchFromUrl(config.modelUrl);\n\n const isValid = await platform.fileSystem.validateHash(\n modelData,\n config.modelHash,\n );\n\n if (!isValid) {\n const actualHash = await platform.fileSystem.computeSha1(modelData);\n throw new Error(\n `Downloaded model file is corrupted. Expected hash ${config.modelHash}. Got file hash ${actualHash}.`,\n );\n }\n\n await platform.cache.save(cacheKey, modelData);\n }\n\n return modelData;\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * TextsAccumulator extracts countable text from Content and Tool objects.\n *\n * This class traverses complex Content and Tool objects and extracts all text\n * content that should be included when calculating token counts.\n *\n * A key feature is its ability to detect unsupported fields in Content objects.\n * If a user provides a Content object with fields that this local tokenizer\n * doesn't recognize, this class will log a warning.\n *\n * Translated from python-genai/local_tokenizer.py\n */\n\nimport type {\n Content,\n FunctionCall,\n FunctionDeclaration,\n FunctionResponse,\n Part,\n Schema,\n Tool,\n} from '../../types.js';\n\n/**\n * Accumulates countable texts from Content and Tool objects.\n */\nexport class TextsAccumulator {\n private texts: string[];\n\n constructor() {\n this.texts = [];\n }\n\n /**\n * Returns all accumulated texts.\n */\n getTexts(): string[] {\n return this.texts;\n }\n\n /**\n * Adds multiple Content objects.\n */\n addContents(contents: Content[]): void {\n for (const content of contents) {\n this.addContent(content);\n }\n }\n\n addContent(content: Content): void {\n const countedContent: Content = {\n parts: [],\n role: content.role,\n };\n\n if (content.parts) {\n for (const part of content.parts) {\n const countedPart: Part = {};\n\n if (part.fileData || part.inlineData) {\n throw new Error(\n 'LocalTokenizers do not support non-text content types.',\n );\n }\n\n if (part.videoMetadata) {\n countedPart.videoMetadata = part.videoMetadata;\n }\n\n if (part.functionCall) {\n this.addFunctionCall(part.functionCall);\n countedPart.functionCall = part.functionCall;\n }\n\n if (part.functionResponse) {\n this.addFunctionResponse(part.functionResponse);\n countedPart.functionResponse = part.functionResponse;\n }\n\n if (part.text) {\n countedPart.text = part.text;\n this.texts.push(part.text);\n }\n\n if (countedContent.parts) {\n countedContent.parts.push(countedPart);\n }\n }\n }\n\n if (!this.deepEqual(content, countedContent)) {\n console.warn(\n `Content contains unsupported types for token counting. ` +\n `Supported fields: ${JSON.stringify(countedContent)}. ` +\n `Got: ${JSON.stringify(content)}.`,\n );\n }\n }\n\n addFunctionCall(functionCall: FunctionCall): void {\n if (functionCall.name) {\n this.texts.push(functionCall.name);\n }\n\n if (functionCall.args) {\n this.dictTraverse(functionCall.args);\n }\n }\n\n addTools(tools: Tool[]): void {\n for (const tool of tools) {\n this.addTool(tool);\n }\n }\n\n addTool(tool: Tool): void {\n if (tool.functionDeclarations) {\n for (const functionDeclaration of tool.functionDeclarations) {\n this.functionDeclarationTraverse(functionDeclaration);\n }\n }\n }\n\n addFunctionResponses(functionResponses: FunctionResponse[]): void {\n for (const functionResponse of functionResponses) {\n this.addFunctionResponse(functionResponse);\n }\n }\n\n addFunctionResponse(functionResponse: FunctionResponse): void {\n if (functionResponse.name) {\n this.texts.push(functionResponse.name);\n }\n\n if (functionResponse.response) {\n this.dictTraverse(functionResponse.response);\n }\n }\n\n private functionDeclarationTraverse(\n functionDeclaration: FunctionDeclaration,\n ): void {\n if (functionDeclaration.name) {\n this.texts.push(functionDeclaration.name);\n }\n\n if (functionDeclaration.description) {\n this.texts.push(functionDeclaration.description);\n }\n\n if (functionDeclaration.parameters) {\n this.addSchema(functionDeclaration.parameters);\n }\n\n if (functionDeclaration.response) {\n this.addSchema(functionDeclaration.response);\n }\n }\n\n addSchema(schema: Schema): void {\n if (schema.format) {\n this.texts.push(schema.format);\n }\n\n if (schema.description) {\n this.texts.push(schema.description);\n }\n\n if (schema.enum) {\n this.texts.push(...schema.enum);\n }\n\n if (schema.required) {\n this.texts.push(...schema.required);\n }\n\n if (schema.items) {\n this.addSchema(schema.items);\n }\n\n if (schema.properties) {\n for (const [key, value] of Object.entries(schema.properties)) {\n this.texts.push(key);\n this.addSchema(value);\n }\n }\n\n if (schema.example !== undefined && schema.example !== null) {\n this.anyTraverse(schema.example);\n }\n }\n\n private dictTraverse(obj: Record<string, any>): void {\n this.texts.push(...Object.keys(obj));\n for (const value of Object.values(obj)) {\n this.anyTraverse(value);\n }\n }\n\n private anyTraverse(value: any): void {\n if (typeof value === 'string') {\n this.texts.push(value);\n } else if (typeof value === 'object' && value !== null) {\n if (Array.isArray(value)) {\n for (const item of value) {\n this.anyTraverse(item);\n }\n } else {\n this.dictTraverse(value);\n }\n }\n }\n\n private deepEqual(obj1: any, obj2: any): boolean {\n if (obj1 === obj2) return true;\n if (obj1 == null || obj2 == null) return obj1 === obj2;\n if (typeof obj1 !== 'object' || typeof obj2 !== 'object') return false;\n\n if (Array.isArray(obj1) && Array.isArray(obj2)) {\n if (obj1.length !== obj2.length) return false;\n for (let i = 0; i < obj1.length; i++) {\n if (!this.deepEqual(obj1[i], obj2[i])) return false;\n }\n return true;\n }\n\n const keys1 = Object.keys(obj1).filter((k) => obj1[k] !== undefined);\n const keys2 = Object.keys(obj2).filter((k) => obj2[k] !== undefined);\n\n if (keys1.length !== keys2.length) return false;\n\n for (const key of keys1) {\n if (!keys2.includes(key)) return false;\n if (!this.deepEqual(obj1[key], obj2[key])) return false;\n }\n\n return true;\n }\n}\n","/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * LocalTokenizer implementation that integrates SentencePiece with platform-specific\n * caching and file operations.\n *\n * This is the main implementation that brings together:\n * - SentencePiece BPE tokenizer\n * - Platform-specific model loading and caching\n * - Text extraction from Content/Tool/Schema objects\n */\n\nimport {tContent, tContents} from '../../_transformers.js';\nimport type {\n ComputeTokensResult,\n ContentListUnion,\n CountTokensConfig,\n CountTokensResult,\n TokensInfo,\n} from '../../types.js';\nimport {SentencePieceProcessor} from '../sentencepiece/_processor.js';\nimport {ILocalTokenizer, TokenizerPlatform} from './_interfaces.js';\nimport {getTokenizerName, loadModelProtoBytes} from './_loader.js';\nimport {TextsAccumulator} from './_texts_accumulator.js';\n\ntype SentencePieceProcessorConstructor = new (\n modelBytes: Uint8Array,\n) => SentencePieceProcessor;\n\n/**\n * LocalTokenizer provides text-only local tokenization for Gemini models.\n *\n * LIMITATIONS:\n * - Only supports text-based tokenization (no multimodal)\n * - Forward compatibility depends on open-source tokenizer models\n * - For tools/schemas, only supports types.Tool and types.Schema objects\n * (Python functions or Pydantic models cannot be passed directly)\n */\nexport class LocalTokenizer implements ILocalTokenizer {\n private tokenizerName: string;\n private platform: TokenizerPlatform;\n private processor?: SentencePieceProcessor;\n private modelName: string;\n\n /**\n * Creates a new LocalTokenizer.\n *\n * @param modelName Gemini model name (e.g., 'gemini-2.0-flash-001')\n * @param platform Platform-specific implementations for caching and file operations\n */\n constructor(\n modelName: string,\n platform: TokenizerPlatform,\n private readonly ProcessorClass: SentencePieceProcessorConstructor = SentencePieceProcessor,\n ) {\n this.modelName = modelName;\n this.tokenizerName = getTokenizerName(modelName);\n this.platform = platform;\n }\n\n private async ensureProcessor(): Promise<void> {\n if (this.processor) {\n return;\n }\n\n const modelBytes = await loadModelProtoBytes(\n this.tokenizerName,\n this.platform,\n );\n\n this.processor = new this.ProcessorClass(modelBytes);\n }\n\n /**\n * Counts the number of tokens in the given content.\n *\n * @param contents The contents to tokenize\n * @param config Optional configuration for counting tokens\n * @return A CountTokensResult containing the total number of tokens\n *\n * @example\n * ```typescript\n * const tokenizer = new LocalTokenizer('gemini-2.0-flash-001', platform);\n * const result = await tokenizer.countTokens(\"What is your name?\");\n * console.log(result.totalTokens); // 5\n * ```\n */\n async countTokens(\n contents: ContentListUnion,\n config?: CountTokensConfig,\n ): Promise<CountTokensResult> {\n await this.ensureProcessor();\n\n const processedContents = tContents(contents);\n\n const textAccumulator = new TextsAccumulator();\n textAccumulator.addContents(processedContents);\n\n if (config?.systemInstruction) {\n const systemContent = tContent(config.systemInstruction);\n textAccumulator.addContents([systemContent]);\n }\n\n if (config?.tools) {\n textAccumulator.addTools(config.tools);\n }\n\n if (config?.generationConfig?.responseSchema) {\n textAccumulator.addSchema(config.generationConfig.responseSchema);\n }\n\n const texts = textAccumulator.getTexts();\n let totalTokens = 0;\n\n for (const text of texts) {\n const tokens = this.processor!.encode(text);\n totalTokens += tokens.length;\n }\n\n return {\n totalTokens,\n };\n }\n\n /**\n * Computes detailed token information for the given content.\n *\n * @param contents The contents to tokenize\n * @return A ComputeTokensResult containing token IDs, bytes, and roles\n *\n * @example\n * ```typescript\n * const tokenizer = new LocalTokenizer('gemini-2.0-flash-001', platform);\n * const result = await tokenizer.computeTokens(\"What is your name?\");\n * console.log(result.tokensInfo);\n * // [{tokenIds: [279, 329, 1313, 2508, 13], tokens: [' What', ' is', ...], role: 'user'}]\n * ```\n */\n async computeTokens(\n contents: ContentListUnion,\n ): Promise<ComputeTokensResult> {\n await this.ensureProcessor();\n\n const processedContents = tContents(contents);\n\n const tokensInfo: TokensInfo[] = [];\n\n for (const content of processedContents) {\n const textAccumulator = new TextsAccumulator();\n textAccumulator.addContent(content);\n\n const texts = textAccumulator.getTexts();\n\n const allTokenIds: number[] = [];\n const allTokens: string[] = [];\n\n for (const text of texts) {\n const tokens = this.processor!.encode(text);\n allTokenIds.push(...tokens.map((t) => t.id));\n allTokens.push(...tokens.map((t) => this.tokenTextToBase64(t.text)));\n }\n\n if (allTokenIds.length > 0) {\n tokensInfo.push({\n tokenIds: allTokenIds.map((id) => id.toString()),\n tokens: allTokens,\n role: content.role,\n });\n }\n }\n\n return {\n tokensInfo,\n };\n }\n\n private tokenTextToBase64(text: string): string {\n const encoder = new TextEncoder();\n const bytes = encoder.encode(text.replace(/▁/g, ' '));\n\n let binary = '';\n for (let i = 0; i < bytes.length; i++) {\n binary += String.fromCharCode(bytes[i]);\n }\n return btoa(binary);\n }\n}\n","/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as crypto from 'crypto';\nimport * as fs from 'fs/promises';\nimport * as os from 'os';\nimport * as path from 'path';\n\nimport {\n TokenizerCache,\n TokenizerFileSystem,\n TokenizerPlatform,\n} from '../cross/tokenizer/_interfaces.js';\n\n/**\n * Node.js implementation of tokenizer cache using the file system.\n */\nexport class NodeTokenizerCache implements TokenizerCache {\n private cacheDir: string;\n\n constructor() {\n this.cacheDir = path.join(os.tmpdir(), 'vertexai_tokenizer_model');\n }\n\n async load(\n cacheKey: string,\n expectedHash: string,\n ): Promise<Uint8Array | null> {\n const filePath = path.join(this.cacheDir, cacheKey);\n try {\n const data = await fs.readFile(filePath);\n const hash = crypto.createHash('sha256').update(data).digest('hex');\n\n if (hash === expectedHash) {\n return new Uint8Array(data);\n }\n\n await this.removeFile(filePath);\n return null;\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n } catch (error) {\n return null;\n }\n }\n\n async save(cacheKey: string, data: Uint8Array): Promise<void> {\n const filePath = path.join(this.cacheDir, cacheKey);\n try {\n await fs.mkdir(this.cacheDir, {recursive: true});\n\n const tmpPath = `${this.cacheDir}.${crypto.randomUUID()}.tmp`;\n await fs.writeFile(tmpPath, data);\n await fs.rename(tmpPath, filePath);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n } catch (error) {\n // Cache is optional, so errors are silently ignored\n }\n }\n\n private async removeFile(filePath: string): Promise<void> {\n try {\n await fs.unlink(filePath);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n } catch (error) {\n // Cache is optional, so errors are silently ignored\n }\n }\n}\n\n/**\n * Node.js implementation of tokenizer file system operations.\n */\nexport class NodeTokenizerFileSystem implements TokenizerFileSystem {\n async fetchFromUrl(url: string): Promise<Uint8Array> {\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(\n `Failed to fetch tokenizer model from ${url}: ${response.statusText}`,\n );\n }\n const arrayBuffer = await response.arrayBuffer();\n return new Uint8Array(arrayBuffer);\n }\n\n async validateHash(data: Uint8Array, expectedHash: string): Promise<boolean> {\n const hash = crypto.createHash('sha256').update(data).digest('hex');\n return hash === expectedHash;\n }\n\n async computeSha1(text: Uint8Array): Promise<string> {\n const hash = crypto.createHash('sha1').update(text).digest('hex');\n return hash;\n }\n}\n\n/**\n * Node.js platform implementation for tokenizer.\n */\nexport class NodeTokenizerPlatform implements TokenizerPlatform {\n cache: TokenizerCache;\n fileSystem: TokenizerFileSystem;\n\n constructor() {\n this.cache = new NodeTokenizerCache();\n this.fileSystem = new NodeTokenizerFileSystem();\n }\n}\n","/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * Node.js-specific LocalTokenizer implementation.\n *\n * This wrapper automatically uses the Node.js platform (filesystem caching, crypto hashing)\n * without requiring users to manually create a platform instance.\n */\n\nimport {LocalTokenizer as BaseLocalTokenizer} from '../cross/tokenizer/_local_tokenizer_impl.js';\nimport type {\n ComputeTokensResult,\n ContentListUnion,\n CountTokensConfig,\n CountTokensResult,\n} from '../types.js';\nimport {NodeTokenizerPlatform} from './_node_tokenizer_platform.js';\n\n/**\n * LocalTokenizer for Node.js environment.\n *\n * Provides local tokenization for Gemini models without requiring API calls.\n * Automatically uses Node.js platform (filesystem caching in temp directory).\n *\n * @example\n * ```typescript\n * import {LocalTokenizer} from '@google/genai/node';\n *\n * const tokenizer = new LocalTokenizer('gemini-2.0-flash-001');\n * const result = await tokenizer.countTokens(\"What is your name?\");\n * console.log(result.totalTokens); // 5\n * ```\n *\n * @experimental This API is experimental and may change in future versions.\n */\nexport class LocalTokenizer {\n private baseTokenizer: BaseLocalTokenizer;\n\n /**\n * Creates a new LocalTokenizer for Node.js.\n *\n * @param modelName Gemini model name (e.g., 'gemini-2.0-flash-001')\n */\n constructor(modelName: string) {\n const platform = new NodeTokenizerPlatform();\n this.baseTokenizer = new BaseLocalTokenizer(modelName, platform);\n }\n\n /**\n * Counts the number of tokens in the given content.\n *\n * @param contents The contents to tokenize\n * @param config Optional configuration for counting tokens\n * @return A CountTokensResult containing the total number of tokens\n */\n async countTokens(\n contents: ContentListUnion,\n config?: CountTokensConfig,\n ): Promise<CountTokensResult> {\n return this.baseTokenizer.countTokens(contents, config);\n }\n\n /**\n * Computes detailed token information for the given content.\n *\n * @param contents The contents to tokenize\n * @return A ComputeTokensResult containing token IDs, bytes, and roles\n */\n async computeTokens(\n contents: ContentListUnion,\n ): Promise<ComputeTokensResult> {\n return this.baseTokenizer.computeTokens(contents);\n }\n}\n"],"names":["BaseLocalTokenizer"],"mappings":";;;;;;AAAA;;;;AAIG;AAYH;AACA,IAAY,OAiBX;AAjBD,CAAA,UA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