in genai-on-vertex-ai/gemini/evals_playbook/utils/evals_playbook.py [0:0]
def save_prompt_template(self, task_id, experiment_id, prompt_id, prompt_template):
# Construct the full file path in the bucket
fmt_prompt_id = clean_string(prompt_id)
prefix = f'{task_id}/prompts/{experiment_id}'
gcs_file_path = f'gs://{STAGING_BUCKET}/{prefix}/template_{fmt_prompt_id}.txt'
# write to GCS
write_to_gcs(gcs_file_path, prompt_template)
print(f"Prompt template saved to {gcs_file_path} successfully!")