main
 1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
 2
 3from typing import Optional
 4from typing_extensions import Literal
 5
 6from ..._models import BaseModel
 7from ..shared.custom_tool_input_format import CustomToolInputFormat
 8
 9__all__ = ["CustomTool"]
10
11
12class CustomTool(BaseModel):
13    name: str
14    """The name of the custom tool, used to identify it in tool calls."""
15
16    type: Literal["custom"]
17    """The type of the custom tool. Always `custom`."""
18
19    description: Optional[str] = None
20    """Optional description of the custom tool, used to provide more context."""
21
22    format: Optional[CustomToolInputFormat] = None
23    """The input format for the custom tool. Default is unconstrained text."""