Lists built-in tools available for a model.\n\nArgs:\n params: Optional model identifier whose tool overrides should be applied to the listing.\n\nReturns:\n Built-in tools available for the requested model, with their parameters and instructions.
(self, params: ToolsListRequest, *, timeout: float | None = None)
| 25100 | self._client = client |
| 25101 | |
| 25102 | async def list(self, params: ToolsListRequest, *, timeout: float | None = None) -> ToolList: |
| 25103 | "Lists built-in tools available for a model.\n\nArgs:\n params: Optional model identifier whose tool overrides should be applied to the listing.\n\nReturns:\n Built-in tools available for the requested model, with their parameters and instructions." |
| 25104 | params_dict = {k: v for k, v in params.to_dict().items() if v is not None} |
| 25105 | return ToolList.from_dict(await self._client.request("tools.list", params_dict, **_timeout_kwargs(timeout))) |
| 25106 | |
| 25107 | |
| 25108 | # Experimental: this API group is experimental and may change or be removed. |