|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import Union, Optional |
6 | | -from typing_extensions import Literal, Required, TypeAlias, TypedDict |
| 5 | +from typing import Union |
| 6 | +from typing_extensions import TypeAlias |
7 | 7 |
|
8 | 8 | from .tool_param import ToolParam |
9 | 9 | from .tool_bash_20250124_param import ToolBash20250124Param |
10 | | -from .cache_control_ephemeral_param import CacheControlEphemeralParam |
11 | 10 | from .web_search_tool_20250305_param import WebSearchTool20250305Param |
12 | 11 | from .tool_text_editor_20250124_param import ToolTextEditor20250124Param |
| 12 | +from .tool_text_editor_20250429_param import ToolTextEditor20250429Param |
13 | 13 | from .tool_text_editor_20250728_param import ToolTextEditor20250728Param |
14 | 14 |
|
15 | | -__all__ = ["MessageCountTokensToolParam", "TextEditor20250429"] |
16 | | - |
17 | | - |
18 | | -class TextEditor20250429(TypedDict, total=False): |
19 | | - name: Required[Literal["str_replace_based_edit_tool"]] |
20 | | - """Name of the tool. |
21 | | -
|
22 | | - This is how the tool will be called by the model and in `tool_use` blocks. |
23 | | - """ |
24 | | - |
25 | | - type: Required[Literal["text_editor_20250429"]] |
26 | | - |
27 | | - cache_control: Optional[CacheControlEphemeralParam] |
28 | | - """Create a cache control breakpoint at this content block.""" |
29 | | - |
| 15 | +__all__ = ["MessageCountTokensToolParam"] |
30 | 16 |
|
31 | 17 | MessageCountTokensToolParam: TypeAlias = Union[ |
32 | 18 | ToolParam, |
33 | 19 | ToolBash20250124Param, |
34 | 20 | ToolTextEditor20250124Param, |
35 | | - TextEditor20250429, |
| 21 | + ToolTextEditor20250429Param, |
36 | 22 | ToolTextEditor20250728Param, |
37 | 23 | WebSearchTool20250305Param, |
38 | 24 | ] |
0 commit comments