fix: direct_exp_gen to json_target_type in DSExpGen class (#661)

* refactor: Rename direct_exp_gen to json_target_type in DSExpGen class

* fix type
This commit is contained in:
you-n-g
2025-03-05 22:27:46 +08:00
committed by GitHub
parent 943d2087fc
commit c600468649
@@ -420,7 +420,7 @@ class DSExpGen(ExpGen):
user_prompt=user_prompt,
system_prompt=system_prompt,
json_mode=True,
direct_exp_gen=Dict[str, Dict[str, str]],
json_target_type=dict[str, dict[str, str] | str], # workflow_update may be a string
)
)
assert "hypothesis_proposal" in resp_dict, "Hypothesis proposal not provided."