Revert "remove Field for return_type"

This reverts commit ffb3965ade.
This commit is contained in:
Ashwin Bharambe 2024-10-28 21:39:39 -07:00
parent eccd7dc4a9
commit 26d1668f7d

View file

@ -44,7 +44,9 @@ class ScoringFnDef(BaseModel):
description="List of parameters for the deterministic function",
default_factory=list,
)
return_type: ParamType
return_type: ParamType = Field(
description="The return type of the deterministic function",
)
context: Optional[LLMAsJudgeContext] = None
# We can optionally add information here to support packaging of code, etc.