main
1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
3from typing import Dict, Optional
4from typing_extensions import Literal
5
6from ..._models import BaseModel
7
8__all__ = ["FunctionTool"]
9
10
11class FunctionTool(BaseModel):
12 name: str
13 """The name of the function to call."""
14
15 parameters: Optional[Dict[str, object]] = None
16 """A JSON schema object describing the parameters of the function."""
17
18 strict: Optional[bool] = None
19 """Whether to enforce strict parameter validation. Default `true`."""
20
21 type: Literal["function"]
22 """The type of the function tool. Always `function`."""
23
24 description: Optional[str] = None
25 """A description of the function.
26
27 Used by the model to determine whether or not to call the function.
28 """