#7168·adk-python

[错误]: LocalEvalSampler 将显式的空 eval 案例 ID 列表视为所有案例

作者: boshilin123创建于 2026年9月18日更新于 2026年9月18日
标签eval

Required Information

Describe the Bug:

LocalEvalSamplerConfig documents train_eval_case_ids and validation_eval_case_ids as optional lists where all cases are selected when a field is not provided. However, LocalEvalSampler.__init__ uses truthiness checks, so explicitly passing an empty list is indistinguishable from passing None.

As a result, train_eval_case_ids=[] expands to every training case, and validation_eval_case_ids=[] expands to every validation case (or inherits the training cases). This can unexpectedly turn a no-case selection into a full evaluation run.

内容来源: google/adk-python