antho-proxia commited on
Commit
8d8cd0b
·
verified ·
1 Parent(s): 9f5090f

Upload folder using huggingface_hub (part 3)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_wait_config.py +22 -0
  2. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_wait_config_param.py +23 -0
  3. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_wait_input.py +15 -0
  4. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_wait_tool_use_block.py +27 -0
  5. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_zoom_config.py +22 -0
  6. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_zoom_config_param.py +23 -0
  7. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_zoom_input.py +19 -0
  8. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_zoom_tool_use_block.py +31 -0
  9. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_control_ephemeral.py +23 -0
  10. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_control_ephemeral_param.py +22 -0
  11. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_creation.py +11 -0
  12. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_messages_changed.py +21 -0
  13. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_model_changed.py +21 -0
  14. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_previous_message_not_found.py +17 -0
  15. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_reason.py +24 -0
  16. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_system_changed.py +21 -0
  17. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_tools_changed.py +21 -0
  18. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_unavailable.py +18 -0
  19. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_capability_support.py +10 -0
  20. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_char_location.py +22 -0
  21. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_char_location_param.py +20 -0
  22. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_config.py +7 -0
  23. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_content_block_location.py +37 -0
  24. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_content_block_location_param.py +35 -0
  25. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_page_location.py +22 -0
  26. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_page_location_param.py +20 -0
  27. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_search_result_location.py +45 -0
  28. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_search_result_location_param.py +45 -0
  29. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_web_search_result_location_param.py +18 -0
  30. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citations_config_param.py +9 -0
  31. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citations_config_param_param.py +9 -0
  32. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citations_delta.py +28 -0
  33. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citations_web_search_result_location.py +18 -0
  34. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_clear_thinking_20251015_edit_param.py +21 -0
  35. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_clear_thinking_20251015_edit_response.py +16 -0
  36. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_param.py +36 -0
  37. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_response.py +16 -0
  38. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cloud_config.py +24 -0
  39. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cloud_config_params.py +33 -0
  40. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_output_block.py +11 -0
  41. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_output_block_param.py +11 -0
  42. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_result_block.py +19 -0
  43. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_result_block_param.py +20 -0
  44. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20250522.py +33 -0
  45. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20250522_param.py +34 -0
  46. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20250825.py +33 -0
  47. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20250825_param.py +34 -0
  48. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20260120.py +42 -0
  49. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20260120_param.py +43 -0
  50. .venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20260521.py +35 -0
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_wait_config.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaBrowserWaitConfig"]
6
+
7
+
8
+ class BetaBrowserWaitConfig(BaseModel):
9
+ """``wait``'s config overrides."""
10
+
11
+ defer_loading: Optional[bool] = None
12
+ """Defer loading for this member.
13
+
14
+ Must resolve to the same value on every enabled member of the toolset.
15
+ """
16
+
17
+ enabled: Optional[bool] = None
18
+ """Whether this member is offered to the model.
19
+
20
+ Default is per member, per the toolset's documentation. A member whose enabled
21
+ resolves false is withheld from the served schema.
22
+ """
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_wait_config_param.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Optional
4
+ from typing_extensions import TypedDict
5
+
6
+ __all__ = ["BetaBrowserWaitConfigParam"]
7
+
8
+
9
+ class BetaBrowserWaitConfigParam(TypedDict, total=False):
10
+ """``wait``'s config overrides."""
11
+
12
+ defer_loading: Optional[bool]
13
+ """Defer loading for this member.
14
+
15
+ Must resolve to the same value on every enabled member of the toolset.
16
+ """
17
+
18
+ enabled: Optional[bool]
19
+ """Whether this member is offered to the model.
20
+
21
+ Default is per member, per the toolset's documentation. A member whose enabled
22
+ resolves false is withheld from the served schema.
23
+ """
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_wait_input.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaBrowserWaitInput"]
6
+
7
+
8
+ class BetaBrowserWaitInput(BaseModel):
9
+ """Pause for the given duration."""
10
+
11
+ duration: float
12
+ """Seconds to wait (maximum 30)."""
13
+
14
+ tab_id: Optional[str] = None
15
+ """Tab to act on. Defaults to the active tab when omitted."""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_wait_tool_use_block.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+ from .beta_tool_use_caller import BetaToolUseCaller
6
+ from .beta_browser_wait_input import BetaBrowserWaitInput
7
+
8
+ __all__ = ["BetaBrowserWaitToolUseBlock"]
9
+
10
+
11
+ class BetaBrowserWaitToolUseBlock(BaseModel):
12
+ id: str
13
+
14
+ input: BetaBrowserWaitInput
15
+ """Pause for the given duration."""
16
+
17
+ name: Literal["wait"]
18
+
19
+ toolset_name: Literal["browser"]
20
+
21
+ type: Literal["tool_use"]
22
+
23
+ caller: Optional[BetaToolUseCaller] = None
24
+ """
25
+ Which party invoked the tool call: the model directly, or a server tool on its
26
+ behalf.
27
+ """
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_zoom_config.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaBrowserZoomConfig"]
6
+
7
+
8
+ class BetaBrowserZoomConfig(BaseModel):
9
+ """``zoom``'s config overrides."""
10
+
11
+ defer_loading: Optional[bool] = None
12
+ """Defer loading for this member.
13
+
14
+ Must resolve to the same value on every enabled member of the toolset.
15
+ """
16
+
17
+ enabled: Optional[bool] = None
18
+ """Whether this member is offered to the model.
19
+
20
+ Default is per member, per the toolset's documentation. A member whose enabled
21
+ resolves false is withheld from the served schema.
22
+ """
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_zoom_config_param.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Optional
4
+ from typing_extensions import TypedDict
5
+
6
+ __all__ = ["BetaBrowserZoomConfigParam"]
7
+
8
+
9
+ class BetaBrowserZoomConfigParam(TypedDict, total=False):
10
+ """``zoom``'s config overrides."""
11
+
12
+ defer_loading: Optional[bool]
13
+ """Defer loading for this member.
14
+
15
+ Must resolve to the same value on every enabled member of the toolset.
16
+ """
17
+
18
+ enabled: Optional[bool]
19
+ """Whether this member is offered to the model.
20
+
21
+ Default is per member, per the toolset's documentation. A member whose enabled
22
+ resolves false is withheld from the served schema.
23
+ """
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_zoom_input.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List, Optional
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaBrowserZoomInput"]
6
+
7
+
8
+ class BetaBrowserZoomInput(BaseModel):
9
+ """
10
+ Return a cropped screenshot of the given viewport region, scaled up for closer
11
+ inspection — useful for small icons, buttons, or text. Coordinates are in the
12
+ same viewport-pixel space as a full screenshot.
13
+ """
14
+
15
+ region: List[int]
16
+ """[x0, y0, x1, y1] in viewport pixels."""
17
+
18
+ tab_id: Optional[str] = None
19
+ """Tab to act on. Defaults to the active tab when omitted."""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_browser_zoom_tool_use_block.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+ from .beta_tool_use_caller import BetaToolUseCaller
6
+ from .beta_browser_zoom_input import BetaBrowserZoomInput
7
+
8
+ __all__ = ["BetaBrowserZoomToolUseBlock"]
9
+
10
+
11
+ class BetaBrowserZoomToolUseBlock(BaseModel):
12
+ id: str
13
+
14
+ input: BetaBrowserZoomInput
15
+ """
16
+ Return a cropped screenshot of the given viewport region, scaled up for closer
17
+ inspection — useful for small icons, buttons, or text. Coordinates are in the
18
+ same viewport-pixel space as a full screenshot.
19
+ """
20
+
21
+ name: Literal["zoom"]
22
+
23
+ toolset_name: Literal["browser"]
24
+
25
+ type: Literal["tool_use"]
26
+
27
+ caller: Optional[BetaToolUseCaller] = None
28
+ """
29
+ Which party invoked the tool call: the model directly, or a server tool on its
30
+ behalf.
31
+ """
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_control_ephemeral.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+
6
+ __all__ = ["BetaCacheControlEphemeral"]
7
+
8
+
9
+ class BetaCacheControlEphemeral(BaseModel):
10
+ type: Literal["ephemeral"]
11
+
12
+ ttl: Optional[Literal["5m", "1h"]] = None
13
+ """The time-to-live for the cache control breakpoint.
14
+
15
+ This may be one the following values:
16
+
17
+ - `5m`: 5 minutes
18
+ - `1h`: 1 hour
19
+
20
+ Defaults to `5m`. See
21
+ [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching)
22
+ for details.
23
+ """
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_control_ephemeral_param.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing_extensions import Literal, Required, TypedDict
4
+
5
+ __all__ = ["BetaCacheControlEphemeralParam"]
6
+
7
+
8
+ class BetaCacheControlEphemeralParam(TypedDict, total=False):
9
+ type: Required[Literal["ephemeral"]]
10
+
11
+ ttl: Literal["5m", "1h"]
12
+ """The time-to-live for the cache control breakpoint.
13
+
14
+ This may be one the following values:
15
+
16
+ - `5m`: 5 minutes
17
+ - `1h`: 1 hour
18
+
19
+ Defaults to `5m`. See
20
+ [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching)
21
+ for details.
22
+ """
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_creation.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from ..._models import BaseModel
2
+
3
+ __all__ = ["BetaCacheCreation"]
4
+
5
+
6
+ class BetaCacheCreation(BaseModel):
7
+ ephemeral_1h_input_tokens: int
8
+ """The number of input tokens used to create the 1 hour cache entry."""
9
+
10
+ ephemeral_5m_input_tokens: int
11
+ """The number of input tokens used to create the 5 minute cache entry."""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_messages_changed.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing_extensions import Literal
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaCacheMissMessagesChanged"]
6
+
7
+
8
+ class BetaCacheMissMessagesChanged(BaseModel):
9
+ """
10
+ A `cache_miss_reason` for a request whose `messages` differ from the previous request's in an earlier entry, instead of only having entries appended. The `model`, `system`, and `tools` match.
11
+
12
+ See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
13
+ """
14
+
15
+ cache_missed_input_tokens: int
16
+ """
17
+ Approximate number of input tokens that would have been read from cache had the
18
+ prefix matched the previous request.
19
+ """
20
+
21
+ type: Literal["messages_changed"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_model_changed.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing_extensions import Literal
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaCacheMissModelChanged"]
6
+
7
+
8
+ class BetaCacheMissModelChanged(BaseModel):
9
+ """
10
+ A `cache_miss_reason` for a request whose `model` or `speed` differs from the previous request's.
11
+
12
+ See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
13
+ """
14
+
15
+ cache_missed_input_tokens: int
16
+ """
17
+ Approximate number of input tokens that would have been read from cache had the
18
+ prefix matched the previous request.
19
+ """
20
+
21
+ type: Literal["model_changed"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_previous_message_not_found.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing_extensions import Literal
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaCacheMissPreviousMessageNotFound"]
6
+
7
+
8
+ class BetaCacheMissPreviousMessageNotFound(BaseModel):
9
+ """
10
+ A `cache_miss_reason` for when the API doesn't have a stored record of the request that `diagnostics.previous_message_id` references.
11
+
12
+ This doesn't mean that this request changed.
13
+
14
+ See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
15
+ """
16
+
17
+ type: Literal["previous_message_not_found"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_reason.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Union
2
+ from typing_extensions import Annotated, TypeAlias
3
+
4
+ from ..._models import UnionDiscriminator
5
+ from .beta_cache_miss_unavailable import BetaCacheMissUnavailable
6
+ from .beta_cache_miss_model_changed import BetaCacheMissModelChanged
7
+ from .beta_cache_miss_tools_changed import BetaCacheMissToolsChanged
8
+ from .beta_cache_miss_system_changed import BetaCacheMissSystemChanged
9
+ from .beta_cache_miss_messages_changed import BetaCacheMissMessagesChanged
10
+ from .beta_cache_miss_previous_message_not_found import BetaCacheMissPreviousMessageNotFound
11
+
12
+ __all__ = ["BetaCacheMissReason"]
13
+
14
+ BetaCacheMissReason: TypeAlias = Annotated[
15
+ Union[
16
+ BetaCacheMissModelChanged,
17
+ BetaCacheMissSystemChanged,
18
+ BetaCacheMissToolsChanged,
19
+ BetaCacheMissMessagesChanged,
20
+ BetaCacheMissPreviousMessageNotFound,
21
+ BetaCacheMissUnavailable,
22
+ ],
23
+ UnionDiscriminator("type"),
24
+ ]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_system_changed.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing_extensions import Literal
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaCacheMissSystemChanged"]
6
+
7
+
8
+ class BetaCacheMissSystemChanged(BaseModel):
9
+ """
10
+ A `cache_miss_reason` for a request whose `system` differs from the previous request's.
11
+
12
+ See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
13
+ """
14
+
15
+ cache_missed_input_tokens: int
16
+ """
17
+ Approximate number of input tokens that would have been read from cache had the
18
+ prefix matched the previous request.
19
+ """
20
+
21
+ type: Literal["system_changed"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_tools_changed.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing_extensions import Literal
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaCacheMissToolsChanged"]
6
+
7
+
8
+ class BetaCacheMissToolsChanged(BaseModel):
9
+ """
10
+ A `cache_miss_reason` for a request whose `tools` differ from the previous request's, for example because tools were added, removed, or reordered.
11
+
12
+ See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
13
+ """
14
+
15
+ cache_missed_input_tokens: int
16
+ """
17
+ Approximate number of input tokens that would have been read from cache had the
18
+ prefix matched the previous request.
19
+ """
20
+
21
+ type: Literal["tools_changed"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cache_miss_unavailable.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing_extensions import Literal
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaCacheMissUnavailable"]
6
+
7
+
8
+ class BetaCacheMissUnavailable(BaseModel):
9
+ """A `cache_miss_reason` for when the API can't give a diagnosis.
10
+
11
+ The request itself was processed normally.
12
+
13
+ This includes a request whose `model`, `system`, and `tools` match the previous request's but whose other prompt-affecting parameters, such as `thinking` or `tool_choice`, differ.
14
+
15
+ See the [cache diagnostics guide](https://platform.claude.com/docs/en/build-with-claude/cache-diagnostics#cache-miss-reason-types) to learn what to change for each reason.
16
+ """
17
+
18
+ type: Literal["unavailable"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_capability_support.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from ..._models import BaseModel
2
+
3
+ __all__ = ["BetaCapabilitySupport"]
4
+
5
+
6
+ class BetaCapabilitySupport(BaseModel):
7
+ """Indicates whether a capability is supported."""
8
+
9
+ supported: bool
10
+ """Whether this capability is supported by the model."""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_char_location.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+
6
+ __all__ = ["BetaCitationCharLocation"]
7
+
8
+
9
+ class BetaCitationCharLocation(BaseModel):
10
+ cited_text: str
11
+
12
+ document_index: int
13
+
14
+ document_title: Optional[str] = None
15
+
16
+ end_char_index: int
17
+
18
+ file_id: Optional[str] = None
19
+
20
+ start_char_index: int
21
+
22
+ type: Literal["char_location"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_char_location_param.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal, Required, TypedDict
5
+
6
+ __all__ = ["BetaCitationCharLocationParam"]
7
+
8
+
9
+ class BetaCitationCharLocationParam(TypedDict, total=False):
10
+ cited_text: Required[str]
11
+
12
+ document_index: Required[int]
13
+
14
+ document_title: Required[Optional[str]]
15
+
16
+ end_char_index: Required[int]
17
+
18
+ start_char_index: Required[int]
19
+
20
+ type: Required[Literal["char_location"]]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_config.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from ..._models import BaseModel
2
+
3
+ __all__ = ["BetaCitationConfig"]
4
+
5
+
6
+ class BetaCitationConfig(BaseModel):
7
+ enabled: bool
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_content_block_location.py ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+
6
+ __all__ = ["BetaCitationContentBlockLocation"]
7
+
8
+
9
+ class BetaCitationContentBlockLocation(BaseModel):
10
+ cited_text: str
11
+ """The full text of the cited block range, concatenated.
12
+
13
+ Always equals the contents of `content[start_block_index:end_block_index]`
14
+ joined together. The text block is the minimal citable unit; this field is never
15
+ a substring of a single block. Not counted toward output tokens, and not counted
16
+ toward input tokens when sent back in subsequent turns.
17
+ """
18
+
19
+ document_index: int
20
+
21
+ document_title: Optional[str] = None
22
+
23
+ end_block_index: int
24
+ """
25
+ Exclusive 0-based end index of the cited block range in the source's `content`
26
+ array.
27
+
28
+ Always greater than `start_block_index`; a single-block citation has
29
+ `end_block_index = start_block_index + 1`.
30
+ """
31
+
32
+ file_id: Optional[str] = None
33
+
34
+ start_block_index: int
35
+ """0-based index of the first cited block in the source's `content` array."""
36
+
37
+ type: Literal["content_block_location"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_content_block_location_param.py ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal, Required, TypedDict
5
+
6
+ __all__ = ["BetaCitationContentBlockLocationParam"]
7
+
8
+
9
+ class BetaCitationContentBlockLocationParam(TypedDict, total=False):
10
+ cited_text: Required[str]
11
+ """The full text of the cited block range, concatenated.
12
+
13
+ Always equals the contents of `content[start_block_index:end_block_index]`
14
+ joined together. The text block is the minimal citable unit; this field is never
15
+ a substring of a single block. Not counted toward output tokens, and not counted
16
+ toward input tokens when sent back in subsequent turns.
17
+ """
18
+
19
+ document_index: Required[int]
20
+
21
+ document_title: Required[Optional[str]]
22
+
23
+ end_block_index: Required[int]
24
+ """
25
+ Exclusive 0-based end index of the cited block range in the source's `content`
26
+ array.
27
+
28
+ Always greater than `start_block_index`; a single-block citation has
29
+ `end_block_index = start_block_index + 1`.
30
+ """
31
+
32
+ start_block_index: Required[int]
33
+ """0-based index of the first cited block in the source's `content` array."""
34
+
35
+ type: Required[Literal["content_block_location"]]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_page_location.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+
6
+ __all__ = ["BetaCitationPageLocation"]
7
+
8
+
9
+ class BetaCitationPageLocation(BaseModel):
10
+ cited_text: str
11
+
12
+ document_index: int
13
+
14
+ document_title: Optional[str] = None
15
+
16
+ end_page_number: int
17
+
18
+ file_id: Optional[str] = None
19
+
20
+ start_page_number: int
21
+
22
+ type: Literal["page_location"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_page_location_param.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal, Required, TypedDict
5
+
6
+ __all__ = ["BetaCitationPageLocationParam"]
7
+
8
+
9
+ class BetaCitationPageLocationParam(TypedDict, total=False):
10
+ cited_text: Required[str]
11
+
12
+ document_index: Required[int]
13
+
14
+ document_title: Required[Optional[str]]
15
+
16
+ end_page_number: Required[int]
17
+
18
+ start_page_number: Required[int]
19
+
20
+ type: Required[Literal["page_location"]]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_search_result_location.py ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+
6
+ __all__ = ["BetaCitationSearchResultLocation"]
7
+
8
+
9
+ class BetaCitationSearchResultLocation(BaseModel):
10
+ cited_text: str
11
+ """The full text of the cited block range, concatenated.
12
+
13
+ Always equals the contents of `content[start_block_index:end_block_index]`
14
+ joined together. The text block is the minimal citable unit; this field is never
15
+ a substring of a single block. Not counted toward output tokens, and not counted
16
+ toward input tokens when sent back in subsequent turns.
17
+ """
18
+
19
+ end_block_index: int
20
+ """
21
+ Exclusive 0-based end index of the cited block range in the source's `content`
22
+ array.
23
+
24
+ Always greater than `start_block_index`; a single-block citation has
25
+ `end_block_index = start_block_index + 1`.
26
+ """
27
+
28
+ search_result_index: int
29
+ """
30
+ 0-based index of the cited search result among all `search_result` content
31
+ blocks in the request, in the order they appear across messages and tool
32
+ results.
33
+
34
+ Counted separately from `document_index`; server-side web search results are not
35
+ included in this count.
36
+ """
37
+
38
+ source: str
39
+
40
+ start_block_index: int
41
+ """0-based index of the first cited block in the source's `content` array."""
42
+
43
+ title: Optional[str] = None
44
+
45
+ type: Literal["search_result_location"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_search_result_location_param.py ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal, Required, TypedDict
5
+
6
+ __all__ = ["BetaCitationSearchResultLocationParam"]
7
+
8
+
9
+ class BetaCitationSearchResultLocationParam(TypedDict, total=False):
10
+ cited_text: Required[str]
11
+ """The full text of the cited block range, concatenated.
12
+
13
+ Always equals the contents of `content[start_block_index:end_block_index]`
14
+ joined together. The text block is the minimal citable unit; this field is never
15
+ a substring of a single block. Not counted toward output tokens, and not counted
16
+ toward input tokens when sent back in subsequent turns.
17
+ """
18
+
19
+ end_block_index: Required[int]
20
+ """
21
+ Exclusive 0-based end index of the cited block range in the source's `content`
22
+ array.
23
+
24
+ Always greater than `start_block_index`; a single-block citation has
25
+ `end_block_index = start_block_index + 1`.
26
+ """
27
+
28
+ search_result_index: Required[int]
29
+ """
30
+ 0-based index of the cited search result among all `search_result` content
31
+ blocks in the request, in the order they appear across messages and tool
32
+ results.
33
+
34
+ Counted separately from `document_index`; server-side web search results are not
35
+ included in this count.
36
+ """
37
+
38
+ source: Required[str]
39
+
40
+ start_block_index: Required[int]
41
+ """0-based index of the first cited block in the source's `content` array."""
42
+
43
+ title: Required[Optional[str]]
44
+
45
+ type: Required[Literal["search_result_location"]]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citation_web_search_result_location_param.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal, Required, TypedDict
5
+
6
+ __all__ = ["BetaCitationWebSearchResultLocationParam"]
7
+
8
+
9
+ class BetaCitationWebSearchResultLocationParam(TypedDict, total=False):
10
+ cited_text: Required[str]
11
+
12
+ encrypted_index: Required[str]
13
+
14
+ title: Required[Optional[str]]
15
+
16
+ type: Required[Literal["web_search_result_location"]]
17
+
18
+ url: Required[str]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citations_config_param.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaCitationsConfigParam"]
6
+
7
+
8
+ class BetaCitationsConfigParam(BaseModel):
9
+ enabled: Optional[bool] = None
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citations_config_param_param.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing_extensions import TypedDict
4
+
5
+ __all__ = ["BetaCitationsConfigParamParam"]
6
+
7
+
8
+ class BetaCitationsConfigParamParam(TypedDict, total=False):
9
+ enabled: bool
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citations_delta.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Union
2
+ from typing_extensions import Literal, Annotated, TypeAlias
3
+
4
+ from ..._models import BaseModel, UnionDiscriminator
5
+ from .beta_citation_char_location import BetaCitationCharLocation
6
+ from .beta_citation_page_location import BetaCitationPageLocation
7
+ from .beta_citation_content_block_location import BetaCitationContentBlockLocation
8
+ from .beta_citation_search_result_location import BetaCitationSearchResultLocation
9
+ from .beta_citations_web_search_result_location import BetaCitationsWebSearchResultLocation
10
+
11
+ __all__ = ["BetaCitationsDelta", "Citation"]
12
+
13
+ Citation: TypeAlias = Annotated[
14
+ Union[
15
+ BetaCitationCharLocation,
16
+ BetaCitationPageLocation,
17
+ BetaCitationContentBlockLocation,
18
+ BetaCitationsWebSearchResultLocation,
19
+ BetaCitationSearchResultLocation,
20
+ ],
21
+ UnionDiscriminator("type"),
22
+ ]
23
+
24
+
25
+ class BetaCitationsDelta(BaseModel):
26
+ citation: Citation
27
+
28
+ type: Literal["citations_delta"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_citations_web_search_result_location.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+
6
+ __all__ = ["BetaCitationsWebSearchResultLocation"]
7
+
8
+
9
+ class BetaCitationsWebSearchResultLocation(BaseModel):
10
+ cited_text: str
11
+
12
+ encrypted_index: str
13
+
14
+ title: Optional[str] = None
15
+
16
+ type: Literal["web_search_result_location"]
17
+
18
+ url: str
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_clear_thinking_20251015_edit_param.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Union
4
+ from typing_extensions import Literal, Required, TypeAlias, TypedDict
5
+
6
+ from .beta_thinking_turns_param import BetaThinkingTurnsParam
7
+ from .beta_all_thinking_turns_param import BetaAllThinkingTurnsParam
8
+
9
+ __all__ = ["BetaClearThinking20251015EditParam", "Keep"]
10
+
11
+ Keep: TypeAlias = Union[BetaThinkingTurnsParam, BetaAllThinkingTurnsParam, Literal["all"]]
12
+
13
+
14
+ class BetaClearThinking20251015EditParam(TypedDict, total=False):
15
+ type: Required[Literal["clear_thinking_20251015"]]
16
+
17
+ keep: Keep
18
+ """Number of most recent assistant turns to keep thinking blocks for.
19
+
20
+ Older turns will have their thinking blocks removed.
21
+ """
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_clear_thinking_20251015_edit_response.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing_extensions import Literal
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaClearThinking20251015EditResponse"]
6
+
7
+
8
+ class BetaClearThinking20251015EditResponse(BaseModel):
9
+ cleared_input_tokens: int
10
+ """Number of input tokens cleared by this edit."""
11
+
12
+ cleared_thinking_turns: int
13
+ """Number of thinking turns that were cleared."""
14
+
15
+ type: Literal["clear_thinking_20251015"]
16
+ """The type of context management edit applied."""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_param.py ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Union, Optional
4
+ from typing_extensions import Literal, Required, TypeAlias, TypedDict
5
+
6
+ from ..._types import SequenceNotStr
7
+ from .beta_tool_uses_keep_param import BetaToolUsesKeepParam
8
+ from .beta_tool_uses_trigger_param import BetaToolUsesTriggerParam
9
+ from .beta_input_tokens_trigger_param import BetaInputTokensTriggerParam
10
+ from .beta_input_tokens_clear_at_least_param import BetaInputTokensClearAtLeastParam
11
+
12
+ __all__ = ["BetaClearToolUses20250919EditParam", "Trigger"]
13
+
14
+ Trigger: TypeAlias = Union[BetaInputTokensTriggerParam, BetaToolUsesTriggerParam]
15
+
16
+
17
+ class BetaClearToolUses20250919EditParam(TypedDict, total=False):
18
+ type: Required[Literal["clear_tool_uses_20250919"]]
19
+
20
+ clear_at_least: Optional[BetaInputTokensClearAtLeastParam]
21
+ """Minimum number of tokens that must be cleared when triggered.
22
+
23
+ Context will only be modified if at least this many tokens can be removed.
24
+ """
25
+
26
+ clear_tool_inputs: Union[bool, SequenceNotStr[str], None]
27
+ """Whether to clear all tool inputs (bool) or specific tool inputs to clear (list)"""
28
+
29
+ exclude_tools: Optional[SequenceNotStr[str]]
30
+ """Tool names whose uses are preserved from clearing"""
31
+
32
+ keep: BetaToolUsesKeepParam
33
+ """Number of tool uses to retain in the conversation"""
34
+
35
+ trigger: Trigger
36
+ """Condition that triggers the context management strategy"""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_response.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing_extensions import Literal
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaClearToolUses20250919EditResponse"]
6
+
7
+
8
+ class BetaClearToolUses20250919EditResponse(BaseModel):
9
+ cleared_input_tokens: int
10
+ """Number of input tokens cleared by this edit."""
11
+
12
+ cleared_tool_uses: int
13
+ """Number of tool uses that were cleared."""
14
+
15
+ type: Literal["clear_tool_uses_20250919"]
16
+ """The type of context management edit applied."""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cloud_config.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Union
2
+ from typing_extensions import Literal, Annotated, TypeAlias
3
+
4
+ from ..._models import BaseModel, UnionDiscriminator
5
+ from .beta_packages import BetaPackages
6
+ from .beta_limited_network import BetaLimitedNetwork
7
+ from .beta_unrestricted_network import BetaUnrestrictedNetwork
8
+
9
+ __all__ = ["BetaCloudConfig", "Networking"]
10
+
11
+ Networking: TypeAlias = Annotated[Union[BetaUnrestrictedNetwork, BetaLimitedNetwork], UnionDiscriminator("type")]
12
+
13
+
14
+ class BetaCloudConfig(BaseModel):
15
+ """`cloud` environment configuration."""
16
+
17
+ networking: Networking
18
+ """Network configuration policy."""
19
+
20
+ packages: BetaPackages
21
+ """Package manager configuration."""
22
+
23
+ type: Literal["cloud"]
24
+ """Environment type"""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_cloud_config_params.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Union, Optional
4
+ from typing_extensions import Literal, Required, TypeAlias, TypedDict
5
+
6
+ from .beta_packages_params import BetaPackagesParams
7
+ from .beta_limited_network_params import BetaLimitedNetworkParams
8
+ from .beta_unrestricted_network_param import BetaUnrestrictedNetworkParam
9
+
10
+ __all__ = ["BetaCloudConfigParams", "Networking"]
11
+
12
+ Networking: TypeAlias = Union[BetaUnrestrictedNetworkParam, BetaLimitedNetworkParams]
13
+
14
+
15
+ class BetaCloudConfigParams(TypedDict, total=False):
16
+ """Request params for `cloud` environment configuration.
17
+
18
+ Fields default to null; on update, omitted fields preserve the
19
+ existing value.
20
+ """
21
+
22
+ type: Required[Literal["cloud"]]
23
+ """Environment type"""
24
+
25
+ networking: Optional[Networking]
26
+ """Network configuration policy. Omit on update to preserve the existing value."""
27
+
28
+ packages: Optional[BetaPackagesParams]
29
+ """Package manager configuration.
30
+
31
+ Under `limited` networking, requires `networking.allow_package_managers` to be
32
+ `true`. Omit on update to preserve the existing value.
33
+ """
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_output_block.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing_extensions import Literal
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["BetaCodeExecutionOutputBlock"]
6
+
7
+
8
+ class BetaCodeExecutionOutputBlock(BaseModel):
9
+ file_id: str
10
+
11
+ type: Literal["code_execution_output"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_output_block_param.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing_extensions import Literal, Required, TypedDict
4
+
5
+ __all__ = ["BetaCodeExecutionOutputBlockParam"]
6
+
7
+
8
+ class BetaCodeExecutionOutputBlockParam(TypedDict, total=False):
9
+ file_id: Required[str]
10
+
11
+ type: Required[Literal["code_execution_output"]]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_result_block.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+ from .beta_code_execution_output_block import BetaCodeExecutionOutputBlock
6
+
7
+ __all__ = ["BetaCodeExecutionResultBlock"]
8
+
9
+
10
+ class BetaCodeExecutionResultBlock(BaseModel):
11
+ content: List[BetaCodeExecutionOutputBlock]
12
+
13
+ return_code: int
14
+
15
+ stderr: str
16
+
17
+ stdout: str
18
+
19
+ type: Literal["code_execution_result"]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_result_block_param.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import Iterable
4
+ from typing_extensions import Literal, Required, TypedDict
5
+
6
+ from .beta_code_execution_output_block_param import BetaCodeExecutionOutputBlockParam
7
+
8
+ __all__ = ["BetaCodeExecutionResultBlockParam"]
9
+
10
+
11
+ class BetaCodeExecutionResultBlockParam(TypedDict, total=False):
12
+ content: Required[Iterable[BetaCodeExecutionOutputBlockParam]]
13
+
14
+ return_code: Required[int]
15
+
16
+ stderr: Required[str]
17
+
18
+ stdout: Required[str]
19
+
20
+ type: Required[Literal["code_execution_result"]]
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20250522.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List, Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+ from .beta_cache_control_ephemeral import BetaCacheControlEphemeral
6
+
7
+ __all__ = ["BetaCodeExecutionTool20250522"]
8
+
9
+
10
+ class BetaCodeExecutionTool20250522(BaseModel):
11
+ name: Literal["code_execution"]
12
+ """Name of the tool.
13
+
14
+ This is how the tool will be called by the model and in `tool_use` blocks.
15
+ """
16
+
17
+ type: Literal["code_execution_20250522"]
18
+
19
+ allowed_callers: Optional[
20
+ List[Literal["direct", "code_execution_20250825", "code_execution_20260120", "code_execution_20260521"]]
21
+ ] = None
22
+
23
+ cache_control: Optional[BetaCacheControlEphemeral] = None
24
+ """Create a cache control breakpoint at this content block."""
25
+
26
+ defer_loading: Optional[bool] = None
27
+ """If true, tool will not be included in initial system prompt.
28
+
29
+ Only loaded when returned via tool_reference from tool search.
30
+ """
31
+
32
+ strict: Optional[bool] = None
33
+ """When true, guarantees schema validation on tool names and inputs"""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20250522_param.py ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import List, Optional
4
+ from typing_extensions import Literal, Required, TypedDict
5
+
6
+ from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
7
+
8
+ __all__ = ["BetaCodeExecutionTool20250522Param"]
9
+
10
+
11
+ class BetaCodeExecutionTool20250522Param(TypedDict, total=False):
12
+ name: Required[Literal["code_execution"]]
13
+ """Name of the tool.
14
+
15
+ This is how the tool will be called by the model and in `tool_use` blocks.
16
+ """
17
+
18
+ type: Required[Literal["code_execution_20250522"]]
19
+
20
+ allowed_callers: List[
21
+ Literal["direct", "code_execution_20250825", "code_execution_20260120", "code_execution_20260521"]
22
+ ]
23
+
24
+ cache_control: Optional[BetaCacheControlEphemeralParam]
25
+ """Create a cache control breakpoint at this content block."""
26
+
27
+ defer_loading: bool
28
+ """If true, tool will not be included in initial system prompt.
29
+
30
+ Only loaded when returned via tool_reference from tool search.
31
+ """
32
+
33
+ strict: bool
34
+ """When true, guarantees schema validation on tool names and inputs"""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20250825.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List, Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+ from .beta_cache_control_ephemeral import BetaCacheControlEphemeral
6
+
7
+ __all__ = ["BetaCodeExecutionTool20250825"]
8
+
9
+
10
+ class BetaCodeExecutionTool20250825(BaseModel):
11
+ name: Literal["code_execution"]
12
+ """Name of the tool.
13
+
14
+ This is how the tool will be called by the model and in `tool_use` blocks.
15
+ """
16
+
17
+ type: Literal["code_execution_20250825"]
18
+
19
+ allowed_callers: Optional[
20
+ List[Literal["direct", "code_execution_20250825", "code_execution_20260120", "code_execution_20260521"]]
21
+ ] = None
22
+
23
+ cache_control: Optional[BetaCacheControlEphemeral] = None
24
+ """Create a cache control breakpoint at this content block."""
25
+
26
+ defer_loading: Optional[bool] = None
27
+ """If true, tool will not be included in initial system prompt.
28
+
29
+ Only loaded when returned via tool_reference from tool search.
30
+ """
31
+
32
+ strict: Optional[bool] = None
33
+ """When true, guarantees schema validation on tool names and inputs"""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20250825_param.py ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import List, Optional
4
+ from typing_extensions import Literal, Required, TypedDict
5
+
6
+ from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
7
+
8
+ __all__ = ["BetaCodeExecutionTool20250825Param"]
9
+
10
+
11
+ class BetaCodeExecutionTool20250825Param(TypedDict, total=False):
12
+ name: Required[Literal["code_execution"]]
13
+ """Name of the tool.
14
+
15
+ This is how the tool will be called by the model and in `tool_use` blocks.
16
+ """
17
+
18
+ type: Required[Literal["code_execution_20250825"]]
19
+
20
+ allowed_callers: List[
21
+ Literal["direct", "code_execution_20250825", "code_execution_20260120", "code_execution_20260521"]
22
+ ]
23
+
24
+ cache_control: Optional[BetaCacheControlEphemeralParam]
25
+ """Create a cache control breakpoint at this content block."""
26
+
27
+ defer_loading: bool
28
+ """If true, tool will not be included in initial system prompt.
29
+
30
+ Only loaded when returned via tool_reference from tool search.
31
+ """
32
+
33
+ strict: bool
34
+ """When true, guarantees schema validation on tool names and inputs"""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20260120.py ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List, Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+ from .beta_cache_control_ephemeral import BetaCacheControlEphemeral
6
+
7
+ __all__ = ["BetaCodeExecutionTool20260120"]
8
+
9
+
10
+ class BetaCodeExecutionTool20260120(BaseModel):
11
+ """A `tools` entry for the code execution tool, version `code_execution_20260120`.
12
+
13
+ It adds REPL state persistence to version `code_execution_20250825`.
14
+
15
+ REPL state persistence applies with programmatic tool calling. With it, the Python interpreter state, such as variable bindings, persists across requests that reuse the container.
16
+
17
+ See the [code execution tool guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#tool-versions) to learn what each tool version adds.
18
+ """
19
+
20
+ name: Literal["code_execution"]
21
+ """Name of the tool.
22
+
23
+ This is how the tool will be called by the model and in `tool_use` blocks.
24
+ """
25
+
26
+ type: Literal["code_execution_20260120"]
27
+
28
+ allowed_callers: Optional[
29
+ List[Literal["direct", "code_execution_20250825", "code_execution_20260120", "code_execution_20260521"]]
30
+ ] = None
31
+
32
+ cache_control: Optional[BetaCacheControlEphemeral] = None
33
+ """Create a cache control breakpoint at this content block."""
34
+
35
+ defer_loading: Optional[bool] = None
36
+ """If true, tool will not be included in initial system prompt.
37
+
38
+ Only loaded when returned via tool_reference from tool search.
39
+ """
40
+
41
+ strict: Optional[bool] = None
42
+ """When true, guarantees schema validation on tool names and inputs"""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20260120_param.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from typing import List, Optional
4
+ from typing_extensions import Literal, Required, TypedDict
5
+
6
+ from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam
7
+
8
+ __all__ = ["BetaCodeExecutionTool20260120Param"]
9
+
10
+
11
+ class BetaCodeExecutionTool20260120Param(TypedDict, total=False):
12
+ """A `tools` entry for the code execution tool, version `code_execution_20260120`.
13
+
14
+ It adds REPL state persistence to version `code_execution_20250825`.
15
+
16
+ REPL state persistence applies with programmatic tool calling. With it, the Python interpreter state, such as variable bindings, persists across requests that reuse the container.
17
+
18
+ See the [code execution tool guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool#tool-versions) to learn what each tool version adds.
19
+ """
20
+
21
+ name: Required[Literal["code_execution"]]
22
+ """Name of the tool.
23
+
24
+ This is how the tool will be called by the model and in `tool_use` blocks.
25
+ """
26
+
27
+ type: Required[Literal["code_execution_20260120"]]
28
+
29
+ allowed_callers: List[
30
+ Literal["direct", "code_execution_20250825", "code_execution_20260120", "code_execution_20260521"]
31
+ ]
32
+
33
+ cache_control: Optional[BetaCacheControlEphemeralParam]
34
+ """Create a cache control breakpoint at this content block."""
35
+
36
+ defer_loading: bool
37
+ """If true, tool will not be included in initial system prompt.
38
+
39
+ Only loaded when returned via tool_reference from tool search.
40
+ """
41
+
42
+ strict: bool
43
+ """When true, guarantees schema validation on tool names and inputs"""
.venv/lib/python3.13/site-packages/anthropic/types/beta/beta_code_execution_tool_20260521.py ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List, Optional
2
+ from typing_extensions import Literal
3
+
4
+ from ..._models import BaseModel
5
+ from .beta_cache_control_ephemeral import BetaCacheControlEphemeral
6
+
7
+ __all__ = ["BetaCodeExecutionTool20260521"]
8
+
9
+
10
+ class BetaCodeExecutionTool20260521(BaseModel):
11
+ """Code execution tool with REPL state persistence."""
12
+
13
+ name: Literal["code_execution"]
14
+ """Name of the tool.
15
+
16
+ This is how the tool will be called by the model and in `tool_use` blocks.
17
+ """
18
+
19
+ type: Literal["code_execution_20260521"]
20
+
21
+ allowed_callers: Optional[
22
+ List[Literal["direct", "code_execution_20250825", "code_execution_20260120", "code_execution_20260521"]]
23
+ ] = None
24
+
25
+ cache_control: Optional[BetaCacheControlEphemeral] = None
26
+ """Create a cache control breakpoint at this content block."""
27
+
28
+ defer_loading: Optional[bool] = None
29
+ """If true, tool will not be included in initial system prompt.
30
+
31
+ Only loaded when returned via tool_reference from tool search.
32
+ """
33
+
34
+ strict: Optional[bool] = None
35
+ """When true, guarantees schema validation on tool names and inputs"""