remove Field for return_type

This commit is contained in:
Xi Yan 2024-10-28 13:04:41 -07:00
parent b7d2b83d55
commit ffb3965ade

View file

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