write_data_driven_optimize_config
Creates and uploads a JSON configuration to Google Cloud Storage for data-driven prompt optimization, supporting methods like VAPO or Gemini Nano.
Instructions
Constructs a JSON configuration for Data-Driven Optimize and uploads it to GCS.
This tool generates a JSON configuration file based on the provided parameters and uploads it to the specified Google Cloud Storage URI. This configuration file is required to run data-driven prompt optimization.
Args:
gcs_config_uri: The GCS URI where the generated VAPO config JSON file will
be saved (e.g., 'gs://my-bucket/vapo/config.json').
prompt_optimizer_method: The method for prompt optimization. Either
'VAPO' or 'OPTIMIZATION_TARGET_GEMINI_NANO'.
target_model_endpoint_url: The custom endpoint URL for the target model.
Required for Gemini Nano target.
base_config: Optional. A dictionary representing the base configuration.
modifications: Optional. A dictionary representing the modifications to
apply to the base config.
base_config_path: Optional. Path to a base config file. If provided and
base_config is None, this config will be loaded.
Returns: A string containing a success message and details about the uploaded configuration file, including a link to the Vertex AI console.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_config | No | ||
| modifications | No | ||
| gcs_config_uri | Yes | ||
| base_config_path | No | ||
| prompt_optimizer_method | Yes | ||
| target_model_endpoint_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |