| 27 | |
| 28 | |
| 29 | class ResponsesPydanticFunctionTool(Dict[str, Any]): |
| 30 | model: type[pydantic.BaseModel] |
| 31 | |
| 32 | def __init__(self, tool: ResponsesFunctionToolParam, model: type[pydantic.BaseModel]) -> None: |
| 33 | super().__init__(tool) |
| 34 | self.model = model |
| 35 | |
| 36 | def cast(self) -> ResponsesFunctionToolParam: |
| 37 | return cast(ResponsesFunctionToolParam, self) |
| 38 | |
| 39 | |
| 40 | def pydantic_function_tool( |