diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_base64_image_source_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_base64_image_source_param.py new file mode 100644 index 0000000000000000000000000000000000000000..8f13ce3861526156334d8be19167f07366670225 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_base64_image_source_param.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import Literal, Required, Annotated, TypedDict + +from ..._types import Base64FileInput +from ..._utils import PropertyInfo +from ..._models import set_pydantic_config + +__all__ = ["BetaBase64ImageSourceParam"] + + +class BetaBase64ImageSourceParam(TypedDict, total=False): + data: Required[Annotated[Union[str, Base64FileInput], PropertyInfo(format="base64")]] + + media_type: Required[Literal["image/jpeg", "image/png", "image/gif", "image/webp"]] + + type: Required[Literal["base64"]] + + +set_pydantic_config(BetaBase64ImageSourceParam, {"arbitrary_types_allowed": True}) diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_base64_pdf_block_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_base64_pdf_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..1f6425ac11d04c6b1f346d6527ca73d0fc02a4b9 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_base64_pdf_block_param.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from .beta_request_document_block_param import BetaRequestDocumentBlockParam + +BetaBase64PDFBlockParam = BetaRequestDocumentBlockParam diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_bash_code_execution_output_block_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_bash_code_execution_output_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..2d4fc5401a5506e0177a0d428f1a02ef800f667a --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_bash_code_execution_output_block_param.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaBashCodeExecutionOutputBlockParam"] + + +class BetaBashCodeExecutionOutputBlockParam(TypedDict, total=False): + file_id: Required[str] + + type: Required[Literal["bash_code_execution_output"]] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_bash_code_execution_result_block.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_bash_code_execution_result_block.py new file mode 100644 index 0000000000000000000000000000000000000000..f92174714e6ab8e973bd9655815fae9b8154e51c --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_bash_code_execution_result_block.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List +from typing_extensions import Literal + +from ..._models import BaseModel +from .beta_bash_code_execution_output_block import BetaBashCodeExecutionOutputBlock + +__all__ = ["BetaBashCodeExecutionResultBlock"] + + +class BetaBashCodeExecutionResultBlock(BaseModel): + content: List[BetaBashCodeExecutionOutputBlock] + + return_code: int + + stderr: str + + stdout: str + + type: Literal["bash_code_execution_result"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_cache_creation.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_cache_creation.py new file mode 100644 index 0000000000000000000000000000000000000000..366fc8e1533dc6b94666ea0102a1ea3b7dee958f --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_cache_creation.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ..._models import BaseModel + +__all__ = ["BetaCacheCreation"] + + +class BetaCacheCreation(BaseModel): + ephemeral_1h_input_tokens: int + """The number of input tokens used to create the 1 hour cache entry.""" + + ephemeral_5m_input_tokens: int + """The number of input tokens used to create the 5 minute cache entry.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_char_location.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_char_location.py new file mode 100644 index 0000000000000000000000000000000000000000..8efb8527a44b09f4e38f622bb370d669ae63ab51 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_char_location.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaCitationCharLocation"] + + +class BetaCitationCharLocation(BaseModel): + cited_text: str + + document_index: int + + document_title: Optional[str] = None + + end_char_index: int + + file_id: Optional[str] = None + + start_char_index: int + + type: Literal["char_location"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_content_block_location.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_content_block_location.py new file mode 100644 index 0000000000000000000000000000000000000000..6608ea40c01cafa465b21ad93ce54167043b6207 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_content_block_location.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaCitationContentBlockLocation"] + + +class BetaCitationContentBlockLocation(BaseModel): + cited_text: str + + document_index: int + + document_title: Optional[str] = None + + end_block_index: int + + file_id: Optional[str] = None + + start_block_index: int + + type: Literal["content_block_location"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_page_location.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_page_location.py new file mode 100644 index 0000000000000000000000000000000000000000..71a7b9a46367c25d8f2884e3da4c3646e8a523a0 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_page_location.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaCitationPageLocation"] + + +class BetaCitationPageLocation(BaseModel): + cited_text: str + + document_index: int + + document_title: Optional[str] = None + + end_page_number: int + + file_id: Optional[str] = None + + start_page_number: int + + type: Literal["page_location"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_search_result_location.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_search_result_location.py new file mode 100644 index 0000000000000000000000000000000000000000..a6e3e003eae9949f1989255ce094a1495136dcc5 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_search_result_location.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaCitationSearchResultLocation"] + + +class BetaCitationSearchResultLocation(BaseModel): + cited_text: str + + end_block_index: int + + search_result_index: int + + source: str + + start_block_index: int + + title: Optional[str] = None + + type: Literal["search_result_location"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_web_search_result_location_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_web_search_result_location_param.py new file mode 100644 index 0000000000000000000000000000000000000000..90625af1b7614a87e9ab398817f5d2074fd32869 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citation_web_search_result_location_param.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaCitationWebSearchResultLocationParam"] + + +class BetaCitationWebSearchResultLocationParam(TypedDict, total=False): + cited_text: Required[str] + + encrypted_index: Required[str] + + title: Required[Optional[str]] + + type: Required[Literal["web_search_result_location"]] + + url: Required[str] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citations_config_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citations_config_param.py new file mode 100644 index 0000000000000000000000000000000000000000..409cfde70f8410bd3eca2ed76685fa503e47f7f4 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citations_config_param.py @@ -0,0 +1,11 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import TypedDict + +__all__ = ["BetaCitationsConfigParam"] + + +class BetaCitationsConfigParam(TypedDict, total=False): + enabled: bool diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citations_delta.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citations_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..e836818096c15221aca113a63a8d2ccfe203a00f --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_citations_delta.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Literal, Annotated, TypeAlias + +from ..._utils import PropertyInfo +from ..._models import BaseModel +from .beta_citation_char_location import BetaCitationCharLocation +from .beta_citation_page_location import BetaCitationPageLocation +from .beta_citation_content_block_location import BetaCitationContentBlockLocation +from .beta_citation_search_result_location import BetaCitationSearchResultLocation +from .beta_citations_web_search_result_location import BetaCitationsWebSearchResultLocation + +__all__ = ["BetaCitationsDelta", "Citation"] + +Citation: TypeAlias = Annotated[ + Union[ + BetaCitationCharLocation, + BetaCitationPageLocation, + BetaCitationContentBlockLocation, + BetaCitationsWebSearchResultLocation, + BetaCitationSearchResultLocation, + ], + PropertyInfo(discriminator="type"), +] + + +class BetaCitationsDelta(BaseModel): + citation: Citation + + type: Literal["citations_delta"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_param.py new file mode 100644 index 0000000000000000000000000000000000000000..64b901f67f17ef692d1b646d852f0752d9636042 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_param.py @@ -0,0 +1,38 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from ..._types import SequenceNotStr +from .beta_tool_uses_keep_param import BetaToolUsesKeepParam +from .beta_tool_uses_trigger_param import BetaToolUsesTriggerParam +from .beta_input_tokens_trigger_param import BetaInputTokensTriggerParam +from .beta_input_tokens_clear_at_least_param import BetaInputTokensClearAtLeastParam + +__all__ = ["BetaClearToolUses20250919EditParam", "Trigger"] + +Trigger: TypeAlias = Union[BetaInputTokensTriggerParam, BetaToolUsesTriggerParam] + + +class BetaClearToolUses20250919EditParam(TypedDict, total=False): + type: Required[Literal["clear_tool_uses_20250919"]] + + clear_at_least: Optional[BetaInputTokensClearAtLeastParam] + """Minimum number of tokens that must be cleared when triggered. + + Context will only be modified if at least this many tokens can be removed. + """ + + clear_tool_inputs: Union[bool, SequenceNotStr[str], None] + """Whether to clear all tool inputs (bool) or specific tool inputs to clear (list)""" + + exclude_tools: Optional[SequenceNotStr[str]] + """Tool names whose uses are preserved from clearing""" + + keep: BetaToolUsesKeepParam + """Number of tool uses to retain in the conversation""" + + trigger: Trigger + """Condition that triggers the context management strategy""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_output_block.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_output_block.py new file mode 100644 index 0000000000000000000000000000000000000000..6f02c3ee566559c95cc625461597f5f1198878ec --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_output_block.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaCodeExecutionOutputBlock"] + + +class BetaCodeExecutionOutputBlock(BaseModel): + file_id: str + + type: Literal["code_execution_output"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_result_block_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_result_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..3557d63fd85401859b5ab1de26c2a2ce95665e09 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_result_block_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Iterable +from typing_extensions import Literal, Required, TypedDict + +from .beta_code_execution_output_block_param import BetaCodeExecutionOutputBlockParam + +__all__ = ["BetaCodeExecutionResultBlockParam"] + + +class BetaCodeExecutionResultBlockParam(TypedDict, total=False): + content: Required[Iterable[BetaCodeExecutionOutputBlockParam]] + + return_code: Required[int] + + stderr: Required[str] + + stdout: Required[str] + + type: Required[Literal["code_execution_result"]] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_tool_20250522_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_tool_20250522_param.py new file mode 100644 index 0000000000000000000000000000000000000000..1683a2572390a85d1b6550c7f5420d81727c50fd --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_tool_20250522_param.py @@ -0,0 +1,34 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Optional +from typing_extensions import Literal, Required, TypedDict + +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam + +__all__ = ["BetaCodeExecutionTool20250522Param"] + + +class BetaCodeExecutionTool20250522Param(TypedDict, total=False): + name: Required[Literal["code_execution"]] + """Name of the tool. + + This is how the tool will be called by the model and in `tool_use` blocks. + """ + + type: Required[Literal["code_execution_20250522"]] + + allowed_callers: List[Literal["direct", "code_execution_20250825", "code_execution_20260120"]] + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" + + defer_loading: bool + """If true, tool will not be included in initial system prompt. + + Only loaded when returned via tool_reference from tool search. + """ + + strict: bool + """When true, guarantees schema validation on tool names and inputs""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_tool_result_block.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_tool_result_block.py new file mode 100644 index 0000000000000000000000000000000000000000..141bbc094d1753e0e4038b3080237e488fa6019c --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_tool_result_block.py @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel +from .beta_code_execution_tool_result_block_content import BetaCodeExecutionToolResultBlockContent + +__all__ = ["BetaCodeExecutionToolResultBlock"] + + +class BetaCodeExecutionToolResultBlock(BaseModel): + content: BetaCodeExecutionToolResultBlockContent + """Code execution result with encrypted stdout for PFC + web_search results.""" + + tool_use_id: str + + type: Literal["code_execution_tool_result"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py new file mode 100644 index 0000000000000000000000000000000000000000..172969044c941f150818f700f4dddb7780d8bd67 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .beta_code_execution_result_block_param import BetaCodeExecutionResultBlockParam +from .beta_code_execution_tool_result_error_param import BetaCodeExecutionToolResultErrorParam +from .beta_encrypted_code_execution_result_block_param import BetaEncryptedCodeExecutionResultBlockParam + +__all__ = ["BetaCodeExecutionToolResultBlockParamContentParam"] + +BetaCodeExecutionToolResultBlockParamContentParam: TypeAlias = Union[ + BetaCodeExecutionToolResultErrorParam, BetaCodeExecutionResultBlockParam, BetaEncryptedCodeExecutionResultBlockParam +] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_compaction_block.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_compaction_block.py new file mode 100644 index 0000000000000000000000000000000000000000..f4c9374fb33d5d90189571169dbe4a8dcca70d57 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_compaction_block.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaCompactionBlock"] + + +class BetaCompactionBlock(BaseModel): + """A compaction block returned when autocompact is triggered. + + When content is None, it indicates the compaction failed to produce a valid + summary (e.g., malformed output from the model). Clients may round-trip + compaction blocks with null content; the server treats them as no-ops. + """ + + content: Optional[str] = None + """Summary of compacted content, or null if compaction failed""" + + type: Literal["compaction"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_compaction_iteration_usage.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_compaction_iteration_usage.py new file mode 100644 index 0000000000000000000000000000000000000000..1bbca20f258faadaec24ed80802f68226891ac94 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_compaction_iteration_usage.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ..._models import BaseModel +from .beta_cache_creation import BetaCacheCreation + +__all__ = ["BetaCompactionIterationUsage"] + + +class BetaCompactionIterationUsage(BaseModel): + """Token usage for a compaction iteration.""" + + cache_creation: Optional[BetaCacheCreation] = None + """Breakdown of cached tokens by TTL""" + + cache_creation_input_tokens: int + """The number of input tokens used to create the cache entry.""" + + cache_read_input_tokens: int + """The number of input tokens read from the cache.""" + + input_tokens: int + """The number of input tokens which were used.""" + + output_tokens: int + """The number of output tokens which were used.""" + + type: Literal["compaction"] + """Usage for a compaction iteration""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_container_params.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_container_params.py new file mode 100644 index 0000000000000000000000000000000000000000..58c40dd16ccfa8b72800c94eb2dabfbf76ced4c4 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_container_params.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Iterable, Optional +from typing_extensions import TypedDict + +from .beta_skill_params import BetaSkillParams + +__all__ = ["BetaContainerParams"] + + +class BetaContainerParams(TypedDict, total=False): + """Container parameters with skills to be loaded.""" + + id: Optional[str] + """Container id""" + + skills: Optional[Iterable[BetaSkillParams]] + """List of skills to load in the container""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_container_upload_block.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_container_upload_block.py new file mode 100644 index 0000000000000000000000000000000000000000..fe2aa2221d3be6938fa1b734e775c5d335a01bf3 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_container_upload_block.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaContainerUploadBlock"] + + +class BetaContainerUploadBlock(BaseModel): + """Response model for a file uploaded to the container.""" + + file_id: str + + type: Literal["container_upload"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_content_block_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_content_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..2aafb3ac01b1e000d271abb1e9c3bc145441a1f1 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_content_block_param.py @@ -0,0 +1,52 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .beta_content_block import BetaContentBlock +from .beta_text_block_param import BetaTextBlockParam +from .beta_image_block_param import BetaImageBlockParam +from .beta_thinking_block_param import BetaThinkingBlockParam +from .beta_tool_use_block_param import BetaToolUseBlockParam +from .beta_compaction_block_param import BetaCompactionBlockParam +from .beta_tool_result_block_param import BetaToolResultBlockParam +from .beta_mcp_tool_use_block_param import BetaMCPToolUseBlockParam +from .beta_search_result_block_param import BetaSearchResultBlockParam +from .beta_server_tool_use_block_param import BetaServerToolUseBlockParam +from .beta_container_upload_block_param import BetaContainerUploadBlockParam +from .beta_request_document_block_param import BetaRequestDocumentBlockParam +from .beta_redacted_thinking_block_param import BetaRedactedThinkingBlockParam +from .beta_web_fetch_tool_result_block_param import BetaWebFetchToolResultBlockParam +from .beta_web_search_tool_result_block_param import BetaWebSearchToolResultBlockParam +from .beta_request_mcp_tool_result_block_param import BetaRequestMCPToolResultBlockParam +from .beta_tool_search_tool_result_block_param import BetaToolSearchToolResultBlockParam +from .beta_code_execution_tool_result_block_param import BetaCodeExecutionToolResultBlockParam +from .beta_bash_code_execution_tool_result_block_param import BetaBashCodeExecutionToolResultBlockParam +from .beta_text_editor_code_execution_tool_result_block_param import BetaTextEditorCodeExecutionToolResultBlockParam + +__all__ = ["BetaContentBlockParam"] + +BetaContentBlockParam: TypeAlias = Union[ + BetaTextBlockParam, + BetaImageBlockParam, + BetaRequestDocumentBlockParam, + BetaSearchResultBlockParam, + BetaThinkingBlockParam, + BetaRedactedThinkingBlockParam, + BetaToolUseBlockParam, + BetaToolResultBlockParam, + BetaServerToolUseBlockParam, + BetaWebSearchToolResultBlockParam, + BetaWebFetchToolResultBlockParam, + BetaCodeExecutionToolResultBlockParam, + BetaBashCodeExecutionToolResultBlockParam, + BetaTextEditorCodeExecutionToolResultBlockParam, + BetaToolSearchToolResultBlockParam, + BetaMCPToolUseBlockParam, + BetaRequestMCPToolResultBlockParam, + BetaContainerUploadBlockParam, + BetaCompactionBlockParam, + BetaContentBlock, +] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_context_management_config_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_context_management_config_param.py new file mode 100644 index 0000000000000000000000000000000000000000..dec6895539a89ac545ae6a0e41de08a914a53938 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_context_management_config_param.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable +from typing_extensions import TypeAlias, TypedDict + +from .beta_compact_20260112_edit_param import BetaCompact20260112EditParam +from .beta_clear_thinking_20251015_edit_param import BetaClearThinking20251015EditParam +from .beta_clear_tool_uses_20250919_edit_param import BetaClearToolUses20250919EditParam + +__all__ = ["BetaContextManagementConfigParam", "Edit"] + +Edit: TypeAlias = Union[ + BetaClearToolUses20250919EditParam, BetaClearThinking20251015EditParam, BetaCompact20260112EditParam +] + + +class BetaContextManagementConfigParam(TypedDict, total=False): + edits: Iterable[Edit] + """List of context management edits to apply""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_context_management_response.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_context_management_response.py new file mode 100644 index 0000000000000000000000000000000000000000..278c437d86a6d78642314c23d8732b15b2b30162 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_context_management_response.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Union +from typing_extensions import Annotated, TypeAlias + +from ..._utils import PropertyInfo +from ..._models import BaseModel +from .beta_clear_thinking_20251015_edit_response import BetaClearThinking20251015EditResponse +from .beta_clear_tool_uses_20250919_edit_response import BetaClearToolUses20250919EditResponse + +__all__ = ["BetaContextManagementResponse", "AppliedEdit"] + +AppliedEdit: TypeAlias = Annotated[ + Union[BetaClearToolUses20250919EditResponse, BetaClearThinking20251015EditResponse], + PropertyInfo(discriminator="type"), +] + + +class BetaContextManagementResponse(BaseModel): + applied_edits: List[AppliedEdit] + """List of context management edits that were applied.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_direct_caller.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_direct_caller.py new file mode 100644 index 0000000000000000000000000000000000000000..6e7474d144a9172e6017c13f71e01db7d66cc5f9 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_direct_caller.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaDirectCaller"] + + +class BetaDirectCaller(BaseModel): + """Tool invocation directly from the model.""" + + type: Literal["direct"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_file_image_source_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_file_image_source_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c98ce7a593743bd2eb220317a5b99c07db39e5f0 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_file_image_source_param.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaFileImageSourceParam"] + + +class BetaFileImageSourceParam(TypedDict, total=False): + file_id: Required[str] + + type: Required[Literal["file"]] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_input_json_delta.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_input_json_delta.py new file mode 100644 index 0000000000000000000000000000000000000000..a5f9cbeaec78d7e7650f8f7a8690fa90b9fbf293 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_input_json_delta.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaInputJSONDelta"] + + +class BetaInputJSONDelta(BaseModel): + partial_json: str + + type: Literal["input_json_delta"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_input_tokens_clear_at_least_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_input_tokens_clear_at_least_param.py new file mode 100644 index 0000000000000000000000000000000000000000..e3a137bd23648719766e3a32ec9c87ed2c156fce --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_input_tokens_clear_at_least_param.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaInputTokensClearAtLeastParam"] + + +class BetaInputTokensClearAtLeastParam(TypedDict, total=False): + type: Required[Literal["input_tokens"]] + + value: Required[int] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_mcp_tool_use_block.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_mcp_tool_use_block.py new file mode 100644 index 0000000000000000000000000000000000000000..32cabdbf5fd5acf81211fdc2d062e732fe2ccbdc --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_mcp_tool_use_block.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Dict +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaMCPToolUseBlock"] + + +class BetaMCPToolUseBlock(BaseModel): + id: str + + input: Dict[str, object] + + name: str + """The name of the MCP tool""" + + server_name: str + """The name of the MCP server""" + + type: Literal["mcp_tool_use"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_memory_tool_20250818_str_replace_command.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_memory_tool_20250818_str_replace_command.py new file mode 100644 index 0000000000000000000000000000000000000000..1d018b1bd9b187cecc3f8b79b5a2c4ac90ba87fe --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_memory_tool_20250818_str_replace_command.py @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaMemoryTool20250818StrReplaceCommand"] + + +class BetaMemoryTool20250818StrReplaceCommand(BaseModel): + command: Literal["str_replace"] + """Command type identifier""" + + new_str: str + """Text to replace with""" + + old_str: str + """Text to search for and replace""" + + path: str + """Path to the file where text should be replaced""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_memory_tool_20250818_view_command.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_memory_tool_20250818_view_command.py new file mode 100644 index 0000000000000000000000000000000000000000..8d540bca8990f56be6c3e39a82337ebb3bb58d1e --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_memory_tool_20250818_view_command.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import List, Optional +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaMemoryTool20250818ViewCommand"] + + +class BetaMemoryTool20250818ViewCommand(BaseModel): + command: Literal["view"] + """Command type identifier""" + + path: str + """Path to directory or file to view""" + + view_range: Optional[List[int]] = None + """Optional line range for viewing specific lines""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_message_delta_usage.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_message_delta_usage.py new file mode 100644 index 0000000000000000000000000000000000000000..3d18dd7af1f10bb306b1c9058474192ebd5e03b0 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_message_delta_usage.py @@ -0,0 +1,37 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional + +from ..._models import BaseModel +from .beta_iterations_usage import BetaIterationsUsage +from .beta_server_tool_usage import BetaServerToolUsage + +__all__ = ["BetaMessageDeltaUsage"] + + +class BetaMessageDeltaUsage(BaseModel): + cache_creation_input_tokens: Optional[int] = None + """The cumulative number of input tokens used to create the cache entry.""" + + cache_read_input_tokens: Optional[int] = None + """The cumulative number of input tokens read from the cache.""" + + input_tokens: Optional[int] = None + """The cumulative number of input tokens which were used.""" + + iterations: Optional[BetaIterationsUsage] = None + """Per-iteration token usage breakdown. + + Each entry represents one sampling iteration, with its own input/output token + counts and cache statistics. This allows you to: + + - Determine which iterations exceeded long context thresholds (>=200k tokens) + - Calculate the true context window size from the last iteration + - Understand token accumulation across server-side tool use loops + """ + + output_tokens: int + """The cumulative number of output tokens which were used.""" + + server_tool_use: Optional[BetaServerToolUsage] = None + """The number of server tool requests.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_message_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_message_param.py new file mode 100644 index 0000000000000000000000000000000000000000..b41e56d34f6fd2f212350270c1fd15737df05737 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_message_param.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable +from typing_extensions import Literal, Required, TypedDict + +from .beta_content_block_param import BetaContentBlockParam + +__all__ = ["BetaMessageParam"] + + +class BetaMessageParam(TypedDict, total=False): + content: Required[Union[str, Iterable[BetaContentBlockParam]]] + + role: Required[Literal["user", "assistant"]] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_model_capabilities.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_model_capabilities.py new file mode 100644 index 0000000000000000000000000000000000000000..d489a52a22b1c56ecc387caae95781928371db7d --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_model_capabilities.py @@ -0,0 +1,40 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ..._models import BaseModel +from .beta_effort_capability import BetaEffortCapability +from .beta_capability_support import BetaCapabilitySupport +from .beta_thinking_capability import BetaThinkingCapability +from .beta_context_management_capability import BetaContextManagementCapability + +__all__ = ["BetaModelCapabilities"] + + +class BetaModelCapabilities(BaseModel): + """Model capability information.""" + + batch: BetaCapabilitySupport + """Whether the model supports the Batch API.""" + + citations: BetaCapabilitySupport + """Whether the model supports citation generation.""" + + code_execution: BetaCapabilitySupport + """Whether the model supports code execution tools.""" + + context_management: BetaContextManagementCapability + """Context management support and available strategies.""" + + effort: BetaEffortCapability + """Effort (reasoning_effort) support and available levels.""" + + image_input: BetaCapabilitySupport + """Whether the model accepts image content blocks.""" + + pdf_input: BetaCapabilitySupport + """Whether the model accepts PDF content blocks.""" + + structured_outputs: BetaCapabilitySupport + """Whether the model supports structured output / JSON mode / strict tool schemas.""" + + thinking: BetaThinkingCapability + """Thinking capability and supported type configurations.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_model_info.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_model_info.py new file mode 100644 index 0000000000000000000000000000000000000000..5080d314d47d15bd694d9e2d6cebefd4087c3189 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_model_info.py @@ -0,0 +1,39 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from datetime import datetime +from typing_extensions import Literal + +from ..._models import BaseModel +from .beta_model_capabilities import BetaModelCapabilities + +__all__ = ["BetaModelInfo"] + + +class BetaModelInfo(BaseModel): + id: str + """Unique model identifier.""" + + capabilities: Optional[BetaModelCapabilities] = None + """Model capability information.""" + + created_at: datetime + """RFC 3339 datetime string representing the time at which the model was released. + + May be set to an epoch value if the release date is unknown. + """ + + display_name: str + """A human-readable name for the model.""" + + max_input_tokens: Optional[int] = None + """Maximum input context window size in tokens for this model.""" + + max_tokens: Optional[int] = None + """Maximum value for the `max_tokens` parameter when using this model.""" + + type: Literal["model"] + """Object type. + + For Models, this is always `"model"`. + """ diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_output_config_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_output_config_param.py new file mode 100644 index 0000000000000000000000000000000000000000..210b868ed9964d268d5549835335aab4155a3e79 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_output_config_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Literal, TypedDict + +from .beta_json_output_format_param import BetaJSONOutputFormatParam + +__all__ = ["BetaOutputConfigParam"] + + +class BetaOutputConfigParam(TypedDict, total=False): + effort: Optional[Literal["low", "medium", "high", "max"]] + """All possible effort levels.""" + + format: Optional[BetaJSONOutputFormatParam] + """A schema to specify Claude's output format in responses. + + See + [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs) + """ diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_raw_message_start_event.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_raw_message_start_event.py new file mode 100644 index 0000000000000000000000000000000000000000..9bb16f948bd360429d8f90e4d311a45c9dd6c639 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_raw_message_start_event.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel +from .beta_message import BetaMessage + +__all__ = ["BetaRawMessageStartEvent"] + + +class BetaRawMessageStartEvent(BaseModel): + message: BetaMessage + + type: Literal["message_start"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_redacted_thinking_block.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_redacted_thinking_block.py new file mode 100644 index 0000000000000000000000000000000000000000..b27bd933278804b6b233eacc1420846c2082e2f4 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_redacted_thinking_block.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaRedactedThinkingBlock"] + + +class BetaRedactedThinkingBlock(BaseModel): + data: str + + type: Literal["redacted_thinking"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py new file mode 100644 index 0000000000000000000000000000000000000000..d897c8575ec0b1c8fbb014bc6a37f71493cf2f83 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Literal, Required, TypedDict + +from .beta_request_mcp_server_tool_configuration_param import BetaRequestMCPServerToolConfigurationParam + +__all__ = ["BetaRequestMCPServerURLDefinitionParam"] + + +class BetaRequestMCPServerURLDefinitionParam(TypedDict, total=False): + name: Required[str] + + type: Required[Literal["url"]] + + url: Required[str] + + authorization_token: Optional[str] + + tool_configuration: Optional[BetaRequestMCPServerToolConfigurationParam] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c32d2c5e370ffdbc31ce64652725829df3146133 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Iterable, Optional +from typing_extensions import Literal, Required, TypedDict + +from .beta_text_block_param import BetaTextBlockParam +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam + +__all__ = ["BetaRequestMCPToolResultBlockParam"] + + +class BetaRequestMCPToolResultBlockParam(TypedDict, total=False): + tool_use_id: Required[str] + + type: Required[Literal["mcp_tool_result"]] + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" + + content: Union[str, Iterable[BetaTextBlockParam]] + + is_error: bool diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_server_tool_caller_20260120_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_server_tool_caller_20260120_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c46f43e6b57bf297991ec53171ea3feb3acf0806 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_server_tool_caller_20260120_param.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaServerToolCaller20260120Param"] + + +class BetaServerToolCaller20260120Param(TypedDict, total=False): + tool_id: Required[str] + + type: Required[Literal["code_execution_20260120"]] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_server_tool_usage.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_server_tool_usage.py new file mode 100644 index 0000000000000000000000000000000000000000..2c64588005d0b9c4b7b44994d10c39267ce02214 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_server_tool_usage.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ..._models import BaseModel + +__all__ = ["BetaServerToolUsage"] + + +class BetaServerToolUsage(BaseModel): + web_fetch_requests: int + """The number of web fetch tool requests.""" + + web_search_requests: int + """The number of web search tool requests.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_skill.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_skill.py new file mode 100644 index 0000000000000000000000000000000000000000..d8952290e4afe650216c6416fdbbdcb1601b8f57 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_skill.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel + +__all__ = ["BetaSkill"] + + +class BetaSkill(BaseModel): + """A skill that was loaded in a container (response model).""" + + skill_id: str + """Skill ID""" + + type: Literal["anthropic", "custom"] + """Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)""" + + version: str + """Skill version or 'latest' for most recent version""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_skill_params.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_skill_params.py new file mode 100644 index 0000000000000000000000000000000000000000..b33f7bf5d0942cb80fe39c8d5b662f1d5d88e10d --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_skill_params.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaSkillParams"] + + +class BetaSkillParams(TypedDict, total=False): + """Specification for a skill to be loaded in a container (request model).""" + + skill_id: Required[str] + """Skill ID""" + + type: Required[Literal["anthropic", "custom"]] + """Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)""" + + version: str + """Skill version or 'latest' for most recent version""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_text_block_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_text_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..066f561510f106c4019e4343bb587af06ec0a42f --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_text_block_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Iterable, Optional +from typing_extensions import Literal, Required, TypedDict + +from .beta_text_citation_param import BetaTextCitationParam +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam + +__all__ = ["BetaTextBlockParam"] + + +class BetaTextBlockParam(TypedDict, total=False): + text: Required[str] + + type: Required[Literal["text"]] + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" + + citations: Optional[Iterable[BetaTextCitationParam]] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_capability.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_capability.py new file mode 100644 index 0000000000000000000000000000000000000000..c1bf545bb65aa06c900866cab03561937411ada5 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_capability.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ..._models import BaseModel +from .beta_thinking_types import BetaThinkingTypes + +__all__ = ["BetaThinkingCapability"] + + +class BetaThinkingCapability(BaseModel): + """Thinking capability details.""" + + supported: bool + """Whether this capability is supported by the model.""" + + types: BetaThinkingTypes + """Supported thinking type configurations.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_adaptive_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_adaptive_param.py new file mode 100644 index 0000000000000000000000000000000000000000..bd755e0536f1b53007248b812fc1c01b951bfbd4 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_adaptive_param.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaThinkingConfigAdaptiveParam"] + + +class BetaThinkingConfigAdaptiveParam(TypedDict, total=False): + type: Required[Literal["adaptive"]] + + display: Optional[Literal["summarized", "omitted"]] + """Controls how thinking content appears in the response. + + When set to `summarized`, thinking is returned normally. When set to `omitted`, + thinking content is redacted but a signature is returned for multi-turn + continuity. Defaults to `summarized`. + """ diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_disabled_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_disabled_param.py new file mode 100644 index 0000000000000000000000000000000000000000..e7c4a2a09c226bcc2624818c274846e29bf18ecd --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_disabled_param.py @@ -0,0 +1,11 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaThinkingConfigDisabledParam"] + + +class BetaThinkingConfigDisabledParam(TypedDict, total=False): + type: Required[Literal["disabled"]] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_enabled_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_enabled_param.py new file mode 100644 index 0000000000000000000000000000000000000000..6ba9397c88563467b8f8ecc15f2bbf3a998df80b --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_enabled_param.py @@ -0,0 +1,33 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaThinkingConfigEnabledParam"] + + +class BetaThinkingConfigEnabledParam(TypedDict, total=False): + budget_tokens: Required[int] + """Determines how many tokens Claude can use for its internal reasoning process. + + Larger budgets can enable more thorough analysis for complex problems, improving + response quality. + + Must be ≥1024 and less than `max_tokens`. + + See + [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking) + for details. + """ + + type: Required[Literal["enabled"]] + + display: Optional[Literal["summarized", "omitted"]] + """Controls how thinking content appears in the response. + + When set to `summarized`, thinking is returned normally. When set to `omitted`, + thinking content is redacted but a signature is returned for multi-turn + continuity. Defaults to `summarized`. + """ diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_param.py new file mode 100644 index 0000000000000000000000000000000000000000..aaf1fa2c3ae830391cfa49b0ce27207fecfe8a1a --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_thinking_config_param.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .beta_thinking_config_enabled_param import BetaThinkingConfigEnabledParam +from .beta_thinking_config_adaptive_param import BetaThinkingConfigAdaptiveParam +from .beta_thinking_config_disabled_param import BetaThinkingConfigDisabledParam + +__all__ = ["BetaThinkingConfigParam"] + +BetaThinkingConfigParam: TypeAlias = Union[ + BetaThinkingConfigEnabledParam, BetaThinkingConfigDisabledParam, BetaThinkingConfigAdaptiveParam +] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_choice_any_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_choice_any_param.py new file mode 100644 index 0000000000000000000000000000000000000000..4d3513ef771106a2772788e2062c5ddd3d77fd70 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_choice_any_param.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaToolChoiceAnyParam"] + + +class BetaToolChoiceAnyParam(TypedDict, total=False): + """The model will use any available tools.""" + + type: Required[Literal["any"]] + + disable_parallel_tool_use: bool + """Whether to disable parallel tool use. + + Defaults to `false`. If set to `true`, the model will output exactly one tool + use. + """ diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_choice_auto_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_choice_auto_param.py new file mode 100644 index 0000000000000000000000000000000000000000..97a52aded60cce3e6d3eb1e0aecbcaf3d2017ac4 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_choice_auto_param.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaToolChoiceAutoParam"] + + +class BetaToolChoiceAutoParam(TypedDict, total=False): + """The model will automatically decide whether to use tools.""" + + type: Required[Literal["auto"]] + + disable_parallel_tool_use: bool + """Whether to disable parallel tool use. + + Defaults to `false`. If set to `true`, the model will output at most one tool + use. + """ diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_choice_tool_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_choice_tool_param.py new file mode 100644 index 0000000000000000000000000000000000000000..f841958247affadabd850f36ef790322594eb51a --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_choice_tool_param.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaToolChoiceToolParam"] + + +class BetaToolChoiceToolParam(TypedDict, total=False): + """The model will use the specified tool with `tool_choice.name`.""" + + name: Required[str] + """The name of the tool to use.""" + + type: Required[Literal["tool"]] + + disable_parallel_tool_use: bool + """Whether to disable parallel tool use. + + Defaults to `false`. If set to `true`, the model will output exactly one tool + use. + """ diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_param.py new file mode 100644 index 0000000000000000000000000000000000000000..e64c26d2e98aa863352372b6bb14348b29f36b40 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_param.py @@ -0,0 +1,79 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict, List, Union, Iterable, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from ..._types import SequenceNotStr +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam + +__all__ = ["BetaToolParam", "InputSchema"] + + +class InputSchemaTyped(TypedDict, total=False): + """[JSON schema](https://json-schema.org/draft/2020-12) for this tool's input. + + This defines the shape of the `input` that your tool accepts and that the model will produce. + """ + + type: Required[Literal["object"]] + + properties: Optional[Dict[str, object]] + + required: Optional[SequenceNotStr[str]] + + +InputSchema: TypeAlias = Union[InputSchemaTyped, Dict[str, object]] + + +class BetaToolParam(TypedDict, total=False): + input_schema: Required[InputSchema] + """[JSON schema](https://json-schema.org/draft/2020-12) for this tool's input. + + This defines the shape of the `input` that your tool accepts and that the model + will produce. + """ + + name: Required[str] + """Name of the tool. + + This is how the tool will be called by the model and in `tool_use` blocks. + """ + + allowed_callers: List[Literal["direct", "code_execution_20250825", "code_execution_20260120"]] + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" + + defer_loading: bool + """If true, tool will not be included in initial system prompt. + + Only loaded when returned via tool_reference from tool search. + """ + + description: str + """Description of what this tool does. + + Tool descriptions should be as detailed as possible. The more information that + the model has about what the tool is and how to use it, the better it will + perform. You can use natural language descriptions to reinforce important + aspects of the tool input JSON schema. + """ + + eager_input_streaming: Optional[bool] + """Enable eager input streaming for this tool. + + When true, tool input parameters will be streamed incrementally as they are + generated, and types will be inferred on-the-fly rather than buffering the full + JSON output. When false, streaming is disabled for this tool even if the + fine-grained-tool-streaming beta is active. When null (default), uses the + default behavior based on beta headers. + """ + + input_examples: Iterable[Dict[str, object]] + + strict: bool + """When true, guarantees schema validation on tool names and inputs""" + + type: Optional[Literal["custom"]] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_result_block.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_result_block.py new file mode 100644 index 0000000000000000000000000000000000000000..9b957163feea0bc00071d1ef7d63c821292d3eb8 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_result_block.py @@ -0,0 +1,20 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import Literal, TypeAlias + +from ..._models import BaseModel +from .beta_tool_search_tool_result_error import BetaToolSearchToolResultError +from .beta_tool_search_tool_search_result_block import BetaToolSearchToolSearchResultBlock + +__all__ = ["BetaToolSearchToolResultBlock", "Content"] + +Content: TypeAlias = Union[BetaToolSearchToolResultError, BetaToolSearchToolSearchResultBlock] + + +class BetaToolSearchToolResultBlock(BaseModel): + content: Content + + tool_use_id: str + + type: Literal["tool_search_tool_result"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_result_block_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_result_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..2a74a254ba869d5d06334a627afe66840339700e --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_result_block_param.py @@ -0,0 +1,25 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union, Optional +from typing_extensions import Literal, Required, TypeAlias, TypedDict + +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam +from .beta_tool_search_tool_result_error_param import BetaToolSearchToolResultErrorParam +from .beta_tool_search_tool_search_result_block_param import BetaToolSearchToolSearchResultBlockParam + +__all__ = ["BetaToolSearchToolResultBlockParam", "Content"] + +Content: TypeAlias = Union[BetaToolSearchToolResultErrorParam, BetaToolSearchToolSearchResultBlockParam] + + +class BetaToolSearchToolResultBlockParam(TypedDict, total=False): + content: Required[Content] + + tool_use_id: Required[str] + + type: Required[Literal["tool_search_tool_result"]] + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_result_error_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_result_error_param.py new file mode 100644 index 0000000000000000000000000000000000000000..6a4a2a88ae83e71549069f2cba614093600390e1 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_result_error_param.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["BetaToolSearchToolResultErrorParam"] + + +class BetaToolSearchToolResultErrorParam(TypedDict, total=False): + error_code: Required[Literal["invalid_tool_input", "unavailable", "too_many_requests", "execution_time_exceeded"]] + + type: Required[Literal["tool_search_tool_result_error"]] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_search_result_block_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_search_result_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..3185f4052ef6aa1331069b44b4de8ae26c1b7a03 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_search_tool_search_result_block_param.py @@ -0,0 +1,16 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Iterable +from typing_extensions import Literal, Required, TypedDict + +from .beta_tool_reference_block_param import BetaToolReferenceBlockParam + +__all__ = ["BetaToolSearchToolSearchResultBlockParam"] + + +class BetaToolSearchToolSearchResultBlockParam(TypedDict, total=False): + tool_references: Required[Iterable[BetaToolReferenceBlockParam]] + + type: Required[Literal["tool_search_tool_search_result"]] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_text_editor_20241022_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_text_editor_20241022_param.py new file mode 100644 index 0000000000000000000000000000000000000000..577f0af5f8d1f8d2604d0e6c721c2f7f3c8ecaf5 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_text_editor_20241022_param.py @@ -0,0 +1,36 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict, List, Iterable, Optional +from typing_extensions import Literal, Required, TypedDict + +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam + +__all__ = ["BetaToolTextEditor20241022Param"] + + +class BetaToolTextEditor20241022Param(TypedDict, total=False): + name: Required[Literal["str_replace_editor"]] + """Name of the tool. + + This is how the tool will be called by the model and in `tool_use` blocks. + """ + + type: Required[Literal["text_editor_20241022"]] + + allowed_callers: List[Literal["direct", "code_execution_20250825", "code_execution_20260120"]] + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" + + defer_loading: bool + """If true, tool will not be included in initial system prompt. + + Only loaded when returned via tool_reference from tool search. + """ + + input_examples: Iterable[Dict[str, object]] + + strict: bool + """When true, guarantees schema validation on tool names and inputs""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_text_editor_20250728_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_text_editor_20250728_param.py new file mode 100644 index 0000000000000000000000000000000000000000..3172e0bba129178ba2493a1109f7a2502c59b099 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_text_editor_20250728_param.py @@ -0,0 +1,42 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Dict, List, Iterable, Optional +from typing_extensions import Literal, Required, TypedDict + +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam + +__all__ = ["BetaToolTextEditor20250728Param"] + + +class BetaToolTextEditor20250728Param(TypedDict, total=False): + name: Required[Literal["str_replace_based_edit_tool"]] + """Name of the tool. + + This is how the tool will be called by the model and in `tool_use` blocks. + """ + + type: Required[Literal["text_editor_20250728"]] + + allowed_callers: List[Literal["direct", "code_execution_20250825", "code_execution_20260120"]] + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" + + defer_loading: bool + """If true, tool will not be included in initial system prompt. + + Only loaded when returned via tool_reference from tool search. + """ + + input_examples: Iterable[Dict[str, object]] + + max_characters: Optional[int] + """Maximum number of characters to display when viewing a file. + + If not specified, defaults to displaying the full file. + """ + + strict: bool + """When true, guarantees schema validation on tool names and inputs""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_union_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_union_param.py new file mode 100644 index 0000000000000000000000000000000000000000..c60cb2aa55ebc813d421b49c07b6446c2c888895 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_tool_union_param.py @@ -0,0 +1,56 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .beta_tool_param import BetaToolParam +from .beta_mcp_toolset_param import BetaMCPToolsetParam +from .beta_tool_bash_20241022_param import BetaToolBash20241022Param +from .beta_tool_bash_20250124_param import BetaToolBash20250124Param +from .beta_memory_tool_20250818_param import BetaMemoryTool20250818Param +from .beta_web_fetch_tool_20250910_param import BetaWebFetchTool20250910Param +from .beta_web_fetch_tool_20260209_param import BetaWebFetchTool20260209Param +from .beta_web_fetch_tool_20260309_param import BetaWebFetchTool20260309Param +from .beta_web_search_tool_20250305_param import BetaWebSearchTool20250305Param +from .beta_web_search_tool_20260209_param import BetaWebSearchTool20260209Param +from .beta_tool_text_editor_20241022_param import BetaToolTextEditor20241022Param +from .beta_tool_text_editor_20250124_param import BetaToolTextEditor20250124Param +from .beta_tool_text_editor_20250429_param import BetaToolTextEditor20250429Param +from .beta_tool_text_editor_20250728_param import BetaToolTextEditor20250728Param +from .beta_tool_computer_use_20241022_param import BetaToolComputerUse20241022Param +from .beta_tool_computer_use_20250124_param import BetaToolComputerUse20250124Param +from .beta_tool_computer_use_20251124_param import BetaToolComputerUse20251124Param +from .beta_code_execution_tool_20250522_param import BetaCodeExecutionTool20250522Param +from .beta_code_execution_tool_20250825_param import BetaCodeExecutionTool20250825Param +from .beta_code_execution_tool_20260120_param import BetaCodeExecutionTool20260120Param +from .beta_tool_search_tool_bm25_20251119_param import BetaToolSearchToolBm25_20251119Param +from .beta_tool_search_tool_regex_20251119_param import BetaToolSearchToolRegex20251119Param + +__all__ = ["BetaToolUnionParam"] + +BetaToolUnionParam: TypeAlias = Union[ + BetaToolParam, + BetaToolBash20241022Param, + BetaToolBash20250124Param, + BetaCodeExecutionTool20250522Param, + BetaCodeExecutionTool20250825Param, + BetaCodeExecutionTool20260120Param, + BetaToolComputerUse20241022Param, + BetaMemoryTool20250818Param, + BetaToolComputerUse20250124Param, + BetaToolTextEditor20241022Param, + BetaToolComputerUse20251124Param, + BetaToolTextEditor20250124Param, + BetaToolTextEditor20250429Param, + BetaToolTextEditor20250728Param, + BetaWebSearchTool20250305Param, + BetaWebFetchTool20250910Param, + BetaWebSearchTool20260209Param, + BetaWebFetchTool20260209Param, + BetaWebFetchTool20260309Param, + BetaToolSearchToolBm25_20251119Param, + BetaToolSearchToolRegex20251119Param, + BetaMCPToolsetParam, +] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_usage.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_usage.py new file mode 100644 index 0000000000000000000000000000000000000000..897cc1e9f6569eb0eabd2a65e8ab13b6bf740b17 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_usage.py @@ -0,0 +1,51 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional +from typing_extensions import Literal + +from ..._models import BaseModel +from .beta_cache_creation import BetaCacheCreation +from .beta_iterations_usage import BetaIterationsUsage +from .beta_server_tool_usage import BetaServerToolUsage + +__all__ = ["BetaUsage"] + + +class BetaUsage(BaseModel): + cache_creation: Optional[BetaCacheCreation] = None + """Breakdown of cached tokens by TTL""" + + cache_creation_input_tokens: Optional[int] = None + """The number of input tokens used to create the cache entry.""" + + cache_read_input_tokens: Optional[int] = None + """The number of input tokens read from the cache.""" + + inference_geo: Optional[str] = None + """The geographic region where inference was performed for this request.""" + + input_tokens: int + """The number of input tokens which were used.""" + + iterations: Optional[BetaIterationsUsage] = None + """Per-iteration token usage breakdown. + + Each entry represents one sampling iteration, with its own input/output token + counts and cache statistics. This allows you to: + + - Determine which iterations exceeded long context thresholds (>=200k tokens) + - Calculate the true context window size from the last iteration + - Understand token accumulation across server-side tool use loops + """ + + output_tokens: int + """The number of output tokens which were used.""" + + server_tool_use: Optional[BetaServerToolUsage] = None + """The number of server tool requests.""" + + service_tier: Optional[Literal["standard", "priority", "batch"]] = None + """If the request used the priority, standard, or batch tier.""" + + speed: Optional[Literal["standard", "fast"]] = None + """The inference speed mode used for this request.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_fetch_block_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_fetch_block_param.py new file mode 100644 index 0000000000000000000000000000000000000000..49f6b41e3b7f931d0651484cca38eae2ea642440 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_fetch_block_param.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Optional +from typing_extensions import Literal, Required, TypedDict + +from .beta_request_document_block_param import BetaRequestDocumentBlockParam + +__all__ = ["BetaWebFetchBlockParam"] + + +class BetaWebFetchBlockParam(TypedDict, total=False): + content: Required[BetaRequestDocumentBlockParam] + + type: Required[Literal["web_fetch_result"]] + + url: Required[str] + """Fetched content URL""" + + retrieved_at: Optional[str] + """ISO 8601 timestamp when the content was retrieved""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_fetch_tool_20250910_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_fetch_tool_20250910_param.py new file mode 100644 index 0000000000000000000000000000000000000000..d323c05aca23cbf1acfd83766ad2c31bd371df76 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_fetch_tool_20250910_param.py @@ -0,0 +1,57 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Optional +from typing_extensions import Literal, Required, TypedDict + +from ..._types import SequenceNotStr +from .beta_citations_config_param import BetaCitationsConfigParam +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam + +__all__ = ["BetaWebFetchTool20250910Param"] + + +class BetaWebFetchTool20250910Param(TypedDict, total=False): + name: Required[Literal["web_fetch"]] + """Name of the tool. + + This is how the tool will be called by the model and in `tool_use` blocks. + """ + + type: Required[Literal["web_fetch_20250910"]] + + allowed_callers: List[Literal["direct", "code_execution_20250825", "code_execution_20260120"]] + + allowed_domains: Optional[SequenceNotStr[str]] + """List of domains to allow fetching from""" + + blocked_domains: Optional[SequenceNotStr[str]] + """List of domains to block fetching from""" + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" + + citations: Optional[BetaCitationsConfigParam] + """Citations configuration for fetched documents. + + Citations are disabled by default. + """ + + defer_loading: bool + """If true, tool will not be included in initial system prompt. + + Only loaded when returned via tool_reference from tool search. + """ + + max_content_tokens: Optional[int] + """Maximum number of tokens used by including web page text content in the context. + + The limit is approximate and does not apply to binary content such as PDFs. + """ + + max_uses: Optional[int] + """Maximum number of times the tool can be used in the API request.""" + + strict: bool + """When true, guarantees schema validation on tool names and inputs""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_fetch_tool_20260209_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_fetch_tool_20260209_param.py new file mode 100644 index 0000000000000000000000000000000000000000..e1b9f045238bba13de216b78c816d9ad5825577b --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_fetch_tool_20260209_param.py @@ -0,0 +1,57 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Optional +from typing_extensions import Literal, Required, TypedDict + +from ..._types import SequenceNotStr +from .beta_citations_config_param import BetaCitationsConfigParam +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam + +__all__ = ["BetaWebFetchTool20260209Param"] + + +class BetaWebFetchTool20260209Param(TypedDict, total=False): + name: Required[Literal["web_fetch"]] + """Name of the tool. + + This is how the tool will be called by the model and in `tool_use` blocks. + """ + + type: Required[Literal["web_fetch_20260209"]] + + allowed_callers: List[Literal["direct", "code_execution_20250825", "code_execution_20260120"]] + + allowed_domains: Optional[SequenceNotStr[str]] + """List of domains to allow fetching from""" + + blocked_domains: Optional[SequenceNotStr[str]] + """List of domains to block fetching from""" + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" + + citations: Optional[BetaCitationsConfigParam] + """Citations configuration for fetched documents. + + Citations are disabled by default. + """ + + defer_loading: bool + """If true, tool will not be included in initial system prompt. + + Only loaded when returned via tool_reference from tool search. + """ + + max_content_tokens: Optional[int] + """Maximum number of tokens used by including web page text content in the context. + + The limit is approximate and does not apply to binary content such as PDFs. + """ + + max_uses: Optional[int] + """Maximum number of times the tool can be used in the API request.""" + + strict: bool + """When true, guarantees schema validation on tool names and inputs""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_20250305_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_20250305_param.py new file mode 100644 index 0000000000000000000000000000000000000000..5b5c2a44d3024ce524eefa8c603418a278f2e332 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_20250305_param.py @@ -0,0 +1,57 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Optional +from typing_extensions import Literal, Required, TypedDict + +from ..._types import SequenceNotStr +from .beta_user_location_param import BetaUserLocationParam +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam + +__all__ = ["BetaWebSearchTool20250305Param"] + + +class BetaWebSearchTool20250305Param(TypedDict, total=False): + name: Required[Literal["web_search"]] + """Name of the tool. + + This is how the tool will be called by the model and in `tool_use` blocks. + """ + + type: Required[Literal["web_search_20250305"]] + + allowed_callers: List[Literal["direct", "code_execution_20250825", "code_execution_20260120"]] + + allowed_domains: Optional[SequenceNotStr[str]] + """If provided, only these domains will be included in results. + + Cannot be used alongside `blocked_domains`. + """ + + blocked_domains: Optional[SequenceNotStr[str]] + """If provided, these domains will never appear in results. + + Cannot be used alongside `allowed_domains`. + """ + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" + + defer_loading: bool + """If true, tool will not be included in initial system prompt. + + Only loaded when returned via tool_reference from tool search. + """ + + max_uses: Optional[int] + """Maximum number of times the tool can be used in the API request.""" + + strict: bool + """When true, guarantees schema validation on tool names and inputs""" + + user_location: Optional[BetaUserLocationParam] + """Parameters for the user's location. + + Used to provide more relevant search results. + """ diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_20260209_param.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_20260209_param.py new file mode 100644 index 0000000000000000000000000000000000000000..9fd5caec4f60186bf7dc9d30ae3efb22f05171d0 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_20260209_param.py @@ -0,0 +1,57 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List, Optional +from typing_extensions import Literal, Required, TypedDict + +from ..._types import SequenceNotStr +from .beta_user_location_param import BetaUserLocationParam +from .beta_cache_control_ephemeral_param import BetaCacheControlEphemeralParam + +__all__ = ["BetaWebSearchTool20260209Param"] + + +class BetaWebSearchTool20260209Param(TypedDict, total=False): + name: Required[Literal["web_search"]] + """Name of the tool. + + This is how the tool will be called by the model and in `tool_use` blocks. + """ + + type: Required[Literal["web_search_20260209"]] + + allowed_callers: List[Literal["direct", "code_execution_20250825", "code_execution_20260120"]] + + allowed_domains: Optional[SequenceNotStr[str]] + """If provided, only these domains will be included in results. + + Cannot be used alongside `blocked_domains`. + """ + + blocked_domains: Optional[SequenceNotStr[str]] + """If provided, these domains will never appear in results. + + Cannot be used alongside `allowed_domains`. + """ + + cache_control: Optional[BetaCacheControlEphemeralParam] + """Create a cache control breakpoint at this content block.""" + + defer_loading: bool + """If true, tool will not be included in initial system prompt. + + Only loaded when returned via tool_reference from tool search. + """ + + max_uses: Optional[int] + """Maximum number of times the tool can be used in the API request.""" + + strict: bool + """When true, guarantees schema validation on tool names and inputs""" + + user_location: Optional[BetaUserLocationParam] + """Parameters for the user's location. + + Used to provide more relevant search results. + """ diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_result_block.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_result_block.py new file mode 100644 index 0000000000000000000000000000000000000000..dbbbce75f99909e85be6cac82966efa7ce92a526 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_result_block.py @@ -0,0 +1,28 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias + +from ..._utils import PropertyInfo +from ..._models import BaseModel +from .beta_direct_caller import BetaDirectCaller +from .beta_server_tool_caller import BetaServerToolCaller +from .beta_server_tool_caller_20260120 import BetaServerToolCaller20260120 +from .beta_web_search_tool_result_block_content import BetaWebSearchToolResultBlockContent + +__all__ = ["BetaWebSearchToolResultBlock", "Caller"] + +Caller: TypeAlias = Annotated[ + Union[BetaDirectCaller, BetaServerToolCaller, BetaServerToolCaller20260120], PropertyInfo(discriminator="type") +] + + +class BetaWebSearchToolResultBlock(BaseModel): + content: BetaWebSearchToolResultBlockContent + + tool_use_id: str + + type: Literal["web_search_tool_result"] + + caller: Optional[Caller] = None + """Tool invocation directly from the model.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_result_error.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_result_error.py new file mode 100644 index 0000000000000000000000000000000000000000..65bd3d5c4a46a249fad9eb625a446456ac741259 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/beta_web_search_tool_result_error.py @@ -0,0 +1,14 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +from ..._models import BaseModel +from .beta_web_search_tool_result_error_code import BetaWebSearchToolResultErrorCode + +__all__ = ["BetaWebSearchToolResultError"] + + +class BetaWebSearchToolResultError(BaseModel): + error_code: BetaWebSearchToolResultErrorCode + + type: Literal["web_search_tool_result_error"] diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/file_list_params.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/file_list_params.py new file mode 100644 index 0000000000000000000000000000000000000000..cc615dd79323cef0e8d8719b530529f1bc8c65cd --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/file_list_params.py @@ -0,0 +1,34 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import List +from typing_extensions import Annotated, TypedDict + +from ..._utils import PropertyInfo +from ..anthropic_beta_param import AnthropicBetaParam + +__all__ = ["FileListParams"] + + +class FileListParams(TypedDict, total=False): + after_id: str + """ID of the object to use as a cursor for pagination. + + When provided, returns the page of results immediately after this object. + """ + + before_id: str + """ID of the object to use as a cursor for pagination. + + When provided, returns the page of results immediately before this object. + """ + + limit: int + """Number of items to return per page. + + Defaults to `20`. Ranges from `1` to `1000`. + """ + + betas: Annotated[List[AnthropicBetaParam], PropertyInfo(alias="anthropic-beta")] + """Optional header to specify the beta version(s) you want to use.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_create_response.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_create_response.py new file mode 100644 index 0000000000000000000000000000000000000000..7b7afe1e221bfcddae2e34ebffcf8231933ccee1 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_create_response.py @@ -0,0 +1,49 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional + +from ..._models import BaseModel + +__all__ = ["SkillCreateResponse"] + + +class SkillCreateResponse(BaseModel): + id: str + """Unique identifier for the skill. + + The format and length of IDs may change over time. + """ + + created_at: str + """ISO 8601 timestamp of when the skill was created.""" + + display_title: Optional[str] = None + """Display title for the skill. + + This is a human-readable label that is not included in the prompt sent to the + model. + """ + + latest_version: Optional[str] = None + """The latest version identifier for the skill. + + This represents the most recent version of the skill that has been created. + """ + + source: str + """Source of the skill. + + This may be one of the following values: + + - `"custom"`: the skill was created by a user + - `"anthropic"`: the skill was created by Anthropic + """ + + type: str + """Object type. + + For Skills, this is always `"skill"`. + """ + + updated_at: str + """ISO 8601 timestamp of when the skill was last updated.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_delete_response.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_delete_response.py new file mode 100644 index 0000000000000000000000000000000000000000..68c96fe4d9ed1bb23a5234586f5571a559078930 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_delete_response.py @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from ..._models import BaseModel + +__all__ = ["SkillDeleteResponse"] + + +class SkillDeleteResponse(BaseModel): + id: str + """Unique identifier for the skill. + + The format and length of IDs may change over time. + """ + + type: str + """Deleted object type. + + For Skills, this is always `"skill_deleted"`. + """ diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_list_response.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_list_response.py new file mode 100644 index 0000000000000000000000000000000000000000..d4cceab479c35caf811f0a4c0fd7b2372f507fdc --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_list_response.py @@ -0,0 +1,49 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional + +from ..._models import BaseModel + +__all__ = ["SkillListResponse"] + + +class SkillListResponse(BaseModel): + id: str + """Unique identifier for the skill. + + The format and length of IDs may change over time. + """ + + created_at: str + """ISO 8601 timestamp of when the skill was created.""" + + display_title: Optional[str] = None + """Display title for the skill. + + This is a human-readable label that is not included in the prompt sent to the + model. + """ + + latest_version: Optional[str] = None + """The latest version identifier for the skill. + + This represents the most recent version of the skill that has been created. + """ + + source: str + """Source of the skill. + + This may be one of the following values: + + - `"custom"`: the skill was created by a user + - `"anthropic"`: the skill was created by Anthropic + """ + + type: str + """Object type. + + For Skills, this is always `"skill"`. + """ + + updated_at: str + """ISO 8601 timestamp of when the skill was last updated.""" diff --git a/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_retrieve_response.py b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_retrieve_response.py new file mode 100644 index 0000000000000000000000000000000000000000..b57930172cf86528d84ed104e04a8c396f7135c0 --- /dev/null +++ b/data/conda_envs/openunlearning_2506/lib/python3.11/site-packages/anthropic/types/beta/skill_retrieve_response.py @@ -0,0 +1,49 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Optional + +from ..._models import BaseModel + +__all__ = ["SkillRetrieveResponse"] + + +class SkillRetrieveResponse(BaseModel): + id: str + """Unique identifier for the skill. + + The format and length of IDs may change over time. + """ + + created_at: str + """ISO 8601 timestamp of when the skill was created.""" + + display_title: Optional[str] = None + """Display title for the skill. + + This is a human-readable label that is not included in the prompt sent to the + model. + """ + + latest_version: Optional[str] = None + """The latest version identifier for the skill. + + This represents the most recent version of the skill that has been created. + """ + + source: str + """Source of the skill. + + This may be one of the following values: + + - `"custom"`: the skill was created by a user + - `"anthropic"`: the skill was created by Anthropic + """ + + type: str + """Object type. + + For Skills, this is always `"skill"`. + """ + + updated_at: str + """ISO 8601 timestamp of when the skill was last updated."""