[Fix] Unquote ResponseTool annotation breaking lint on all PRs (#28095)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user