File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020import json
2121from typing import Any , Optional , Union
2222
23- from google .genai import types as genai_types
2423from google .genai ._api_client import BaseApiClient
2524from google .genai ._common import get_value_by_path as getv
2625from google .genai ._common import set_value_by_path as setv
@@ -347,13 +346,7 @@ def _postprocess_user_scenarios_response(
347346 data_for_df = []
348347 if hasattr (response , "user_scenarios" ) and response .user_scenarios :
349348 for scenario in response .user_scenarios :
350- prompt_content = None
351- if scenario .starting_prompt :
352- prompt_content = genai_types .Content (
353- parts = [genai_types .Part (text = scenario .starting_prompt )]
354- )
355349 eval_case = types .EvalCase (
356- prompt = prompt_content ,
357350 user_scenario = scenario ,
358351 )
359352 eval_cases .append (eval_case )
You can’t perform that action at this time.
0 commit comments