[Fix] Unquote ResponseTool annotation breaking lint on all PRs (#28095)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kangyan-Zhou
2026-06-12 15:20:36 -07:00
committed by GitHub
co-authored by Claude Fable 5
parent 54989b1fd0
commit b0b8436f1c
@@ -1320,7 +1320,7 @@ class ResponseTool(BaseModel):
tools: Optional[List[Dict[str, Any]]] = None
@model_validator(mode="after")
def validate_function_tool(self) -> "ResponseTool":
def validate_function_tool(self) -> ResponseTool:
if self.type == "function" and not self.name:
raise ValueError("Function tools must include a name.")
return self