MCPcopy
hub / github.com/openai/openai-python / ResponsesPydanticFunctionTool

Class ResponsesPydanticFunctionTool

src/openai/lib/_tools.py:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29class 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
40def pydantic_function_tool(

Callers 1

_make_toolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected