cutting a new version addressin backward compatibility

This commit is contained in:
João Moura
2024-02-28 12:03:43 -03:00
parent 5857c22daf
commit 78bf008c36
5 changed files with 33 additions and 8 deletions

View File

@@ -175,9 +175,10 @@ class Task(BaseModel):
def interpolate_inputs(self, inputs: Dict[str, Any]) -> None:
"""Interpolate inputs into the task description and expected output."""
self.description = self.description.format(**inputs)
if self.expected_output:
self.expected_output = self.expected_output.format(**inputs)
if inputs:
self.description = self.description.format(**inputs)
if self.expected_output:
self.expected_output = self.expected_output.format(**inputs)
def increment_tools_errors(self) -> None:
"""Increment the tools errors counter."""