add max_steps_per_run to task (#297)
Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
@@ -111,6 +111,7 @@ class TaskBlock(Block):
|
||||
# error code to error description for the LLM
|
||||
error_code_mapping: dict[str, str] | None = None
|
||||
max_retries: int = 0
|
||||
max_steps_per_run: int | None = None
|
||||
parameters: list[PARAMETER_TYPE] = []
|
||||
|
||||
def get_all_parameters(
|
||||
|
||||
@@ -84,6 +84,7 @@ class TaskBlockYAML(BlockYAML):
|
||||
data_schema: dict[str, Any] | None = None
|
||||
error_code_mapping: dict[str, str] | None = None
|
||||
max_retries: int = 0
|
||||
max_steps_per_run: int | None = None
|
||||
parameter_keys: list[str] | None = None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user