Skip to content

Commit 7b998df

Browse files
authored
Change type of examples_dataframe to PandasDataFrame
Updated reference to fix issue where imports to fail when pandas is not installed.
1 parent cffa558 commit 7b998df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vertexai/_genai/types/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3796,7 +3796,7 @@ class OptimizeConfig(_common.BaseModel):
37963796
default=None,
37973797
description="""The optimization target for the prompt optimizer. It must be one of the OptimizeTarget enum values: OPTIMIZATION_TARGET_GEMINI_NANO for the prompts from Android core API, OPTIMIZATION_TARGET_FEW_SHOT_RUBRICS for the few-shot prompt optimizer with rubrics, OPTIMIZATION_TARGET_FEW_SHOT_TARGET_RESPONSE for the few-shot prompt optimizer with target responses.""",
37983798
)
3799-
examples_dataframe: Optional[pd.DataFrame] = Field(
3799+
examples_dataframe: Optional[PandasDataFrame] = Field(
38003800
default=None,
38013801
description="""The examples dataframe for the few-shot prompt optimizer. It must contain "prompt" and "model_response" columns. Depending on which optimization target is used, it also needs to contain "rubrics" and "rubrics_evaluations" or "target_response" columns.""",
38023802
)

0 commit comments

Comments
 (0)