anthropic 0.74.0__tar.gz → 0.75.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- anthropic-0.75.0/.release-please-manifest.json +3 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/CHANGELOG.md +31 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/PKG-INFO +1 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/api.md +17 -0
- anthropic-0.75.0/examples/auto_compaction.py +77 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/structured_outputs.py +1 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/structured_outputs_streaming.py +1 -2
- anthropic-0.75.0/examples/tools_runner_search_tool.py +80 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/pyproject.toml +2 -2
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_version.py +1 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/streaming/_beta_messages.py +1 -1
- anthropic-0.75.0/src/anthropic/lib/tools/_beta_compaction_control.py +48 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/tools/_beta_functions.py +30 -8
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/tools/_beta_runner.py +216 -34
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/beta/messages/messages.py +76 -4
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/messages/messages.py +2 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/anthropic_beta_param.py +1 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/__init__.py +31 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_tool_20250522_param.py +9 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_tool_20250825_param.py +9 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_content_block.py +2 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_content_block_param.py +2 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_direct_caller.py +11 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_direct_caller_param.py +11 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_mcp_tool_config_param.py +13 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_mcp_tool_default_config_param.py +13 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_mcp_toolset_param.py +28 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_memory_tool_20250818_param.py +11 -1
- anthropic-0.75.0/src/anthropic/types/beta/beta_output_config_param.py +13 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_raw_content_block_start_event.py +2 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_server_tool_caller.py +13 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_server_tool_caller_param.py +13 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_server_tool_use_block.py +34 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_server_tool_use_block_param.py +40 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_bash_20241022_param.py +11 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_bash_20250124_param.py +11 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_computer_use_20241022_param.py +11 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_computer_use_20250124_param.py +11 -1
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_computer_use_20251124_param.py +47 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_param.py +11 -1
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_reference_block.py +13 -0
- anthropic-0.74.0/src/anthropic/types/beta/beta_tool_use_block_param.py → anthropic-0.75.0/src/anthropic/types/beta/beta_tool_reference_block_param.py +5 -9
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_result_block_param.py +6 -1
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_search_tool_bm25_20251119_param.py +33 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_search_tool_regex_20251119_param.py +33 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_search_tool_result_block.py +20 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_search_tool_result_block_param.py +25 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_search_tool_result_error.py +16 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_search_tool_result_error_param.py +13 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_search_tool_search_result_block.py +15 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_search_tool_search_result_block_param.py +16 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_text_editor_20241022_param.py +11 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_text_editor_20250124_param.py +11 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_text_editor_20250429_param.py +11 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_text_editor_20250728_param.py +11 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_union_param.py +8 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_use_block.py +26 -0
- anthropic-0.75.0/src/anthropic/types/beta/beta_tool_use_block_param.py +30 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_fetch_tool_20250910_param.py +9 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_search_tool_20250305_param.py +9 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/message_count_tokens_params.py +15 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/message_create_params.py +7 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/batch_create_params.py +4 -4
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/batch_create_params.py +2 -2
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/model.py +2 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/model_param.py +2 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/beta/messages/test_batches.py +8 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/beta/test_messages.py +32 -8
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/test_completions.py +16 -16
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/test_messages.py +8 -8
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/snapshots.py +3 -1
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/streaming/test_partial_json.py +19 -5
- anthropic-0.75.0/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_compaction_control/ab7b2edd-9c2d-4f53-9c04-92bb659b9caa.json +4 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/tools/test_runners.py +110 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/uv.lock +1 -1
- anthropic-0.74.0/.release-please-manifest.json +0 -3
- anthropic-0.74.0/src/anthropic/types/beta/beta_server_tool_use_block.py +0 -18
- anthropic-0.74.0/src/anthropic/types/beta/beta_server_tool_use_block_param.py +0 -25
- anthropic-0.74.0/src/anthropic/types/beta/beta_tool_use_block.py +0 -18
- {anthropic-0.74.0 → anthropic-0.75.0}/.gitignore +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/CONTRIBUTING.md +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/LICENSE +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/README.md +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/SECURITY.md +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/bin/check-release-environment +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/bin/publish-pypi +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/.keep +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/azure.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/batch_results.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/bedrock.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/images.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/logo.png +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/memory/basic.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/messages.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/messages_stream.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/text_completions_demo_async.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/text_completions_demo_sync.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/text_completions_streaming.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/thinking.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/thinking_stream.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/tools.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/tools_runner.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/tools_stream.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/vertex.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/web_search.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/examples/web_search_stream.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/helpers.md +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/release-please-config.json +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/requirements-dev.lock +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_base_client.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_client.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_compat.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_constants.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_decoders/jsonl.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_exceptions.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_files.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_legacy_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_models.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_qs.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_resource.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_streaming.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_types.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_compat.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_datetime_parse.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_httpx.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_logs.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_proxy.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_reflection.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_resources_proxy.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_streams.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_sync.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_transform.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_typing.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/_utils/_utils.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/.keep +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/_extras/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/_extras/_common.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/_extras/_google_auth.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/_files.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/_parse/_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/_parse/_transform.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/bedrock/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/bedrock/_auth.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/bedrock/_beta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/bedrock/_beta_messages.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/bedrock/_client.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/bedrock/_stream.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/bedrock/_stream_decoder.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/foundry.md +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/foundry.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/streaming/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/streaming/_beta_types.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/streaming/_messages.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/streaming/_types.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/tools/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/tools/_beta_builtin_memory_tool.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/vertex/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/vertex/_auth.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/vertex/_beta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/vertex/_beta_messages.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/lib/vertex/_client.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/pagination.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/py.typed +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/beta/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/beta/beta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/beta/files.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/beta/messages/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/beta/messages/batches.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/beta/models.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/beta/skills/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/beta/skills/skills.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/beta/skills/versions.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/completions.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/messages/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/messages/batches.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/resources/models.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/base64_image_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/base64_pdf_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_all_thinking_turns_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_base64_image_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_base64_pdf_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_base64_pdf_source.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_base64_pdf_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_bash_code_execution_output_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_bash_code_execution_output_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_bash_code_execution_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_bash_code_execution_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_cache_control_ephemeral_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_cache_creation.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citation_char_location.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citation_char_location_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citation_config.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citation_content_block_location.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citation_content_block_location_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citation_page_location.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citation_page_location_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citation_search_result_location.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citation_search_result_location_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citation_web_search_result_location_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citations_config_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citations_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_citations_web_search_result_location.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_output_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_output_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_content.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_code.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_container.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_container_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_container_upload_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_container_upload_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_content_block_source_content_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_content_block_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_context_management_config_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_context_management_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_count_tokens_context_management_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_document_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_file_document_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_file_image_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_image_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_input_json_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_input_tokens_clear_at_least_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_input_tokens_trigger_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_json_output_format_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_mcp_tool_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_mcp_tool_use_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_memory_tool_20250818_command.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_memory_tool_20250818_create_command.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_memory_tool_20250818_delete_command.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_memory_tool_20250818_insert_command.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_memory_tool_20250818_rename_command.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_memory_tool_20250818_str_replace_command.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_memory_tool_20250818_view_command.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_message.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_message_delta_usage.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_message_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_message_tokens_count.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_metadata_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_model_info.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_plain_text_source.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_plain_text_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_raw_content_block_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_raw_content_block_delta_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_raw_content_block_stop_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_raw_message_delta_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_raw_message_start_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_raw_message_stop_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_raw_message_stream_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_redacted_thinking_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_redacted_thinking_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_request_document_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_request_mcp_server_tool_configuration_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_search_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_server_tool_usage.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_signature_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_skill.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_skill_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_stop_reason.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_citation.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_citation_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_thinking_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_thinking_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_thinking_config_disabled_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_thinking_config_enabled_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_thinking_config_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_thinking_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_thinking_turns_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_choice_any_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_choice_auto_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_choice_none_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_choice_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_choice_tool_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_uses_keep_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_tool_uses_trigger_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_url_image_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_url_pdf_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_usage.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_fetch_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_fetch_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_code.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_search_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_search_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_search_tool_request_error_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_search_tool_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_content.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_search_tool_result_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/beta_web_search_tool_result_error_code.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/deleted_file.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/file_list_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/file_metadata.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/file_upload_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/batch_list_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/beta_deleted_message_batch.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/beta_message_batch.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/beta_message_batch_canceled_result.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/beta_message_batch_errored_result.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/beta_message_batch_expired_result.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/beta_message_batch_individual_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/beta_message_batch_request_counts.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/beta_message_batch_result.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/messages/beta_message_batch_succeeded_result.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/model_list_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/parsed_beta_message.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skill_create_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skill_create_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skill_delete_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skill_list_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skill_list_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skill_retrieve_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skills/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skills/version_create_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skills/version_create_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skills/version_delete_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skills/version_list_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skills/version_list_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta/skills/version_retrieve_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_api_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_authentication_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_billing_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_error_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_gateway_timeout_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_invalid_request_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_not_found_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_overloaded_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_permission_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/beta_rate_limit_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/cache_control_ephemeral_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/cache_creation.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citation_char_location.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citation_char_location_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citation_content_block_location.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citation_content_block_location_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citation_page_location.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citation_page_location_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citation_search_result_location_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citation_web_search_result_location_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citations_config_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citations_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citations_search_result_location.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/citations_web_search_result_location.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/completion.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/completion_create_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/content_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/content_block_delta_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/content_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/content_block_source_content_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/content_block_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/content_block_start_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/content_block_stop_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/document_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/image_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/input_json_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message_count_tokens_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message_count_tokens_tool_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message_create_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message_delta_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message_delta_usage.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message_start_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message_stop_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message_stream_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/message_tokens_count.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/batch_list_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/deleted_message_batch.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/message_batch.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/message_batch_canceled_result.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/message_batch_errored_result.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/message_batch_expired_result.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/message_batch_individual_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/message_batch_request_counts.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/message_batch_result.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/messages/message_batch_succeeded_result.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/metadata_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/model_info.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/model_list_params.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/plain_text_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/raw_content_block_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/raw_content_block_delta_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/raw_content_block_start_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/raw_content_block_stop_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/raw_message_delta_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/raw_message_start_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/raw_message_stop_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/raw_message_stream_event.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/redacted_thinking_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/redacted_thinking_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/search_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/server_tool_usage.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/server_tool_use_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/server_tool_use_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/api_error_object.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/authentication_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/billing_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/error_object.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/error_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/gateway_timeout_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/invalid_request_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/not_found_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/overloaded_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/permission_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/shared/rate_limit_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/signature_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/stop_reason.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/text_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/text_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/text_citation.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/text_citation_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/text_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/thinking_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/thinking_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/thinking_config_disabled_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/thinking_config_enabled_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/thinking_config_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/thinking_delta.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_bash_20250124_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_choice_any_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_choice_auto_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_choice_none_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_choice_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_choice_tool_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_text_editor_20250728_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_union_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_use_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/tool_use_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/url_image_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/url_pdf_source_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/usage.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/web_search_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/web_search_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/web_search_tool_20250305_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/web_search_tool_request_error_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/web_search_tool_result_block.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/web_search_tool_result_block_content.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/web_search_tool_result_block_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/src/anthropic/types/web_search_tool_result_error.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/beta/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/beta/messages/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/beta/skills/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/beta/skills/test_versions.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/beta/test_files.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/beta/test_models.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/beta/test_skills.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/messages/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/messages/test_batches.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/api_resources/test_models.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/conftest.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/decoders/test_jsonl.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/_parse/test_transform.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/streaming/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/streaming/fixtures/basic_response.txt +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/streaming/fixtures/incomplete_partial_json_response.txt +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/streaming/fixtures/tool_use_response.txt +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/streaming/helpers.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/streaming/test_beta_messages.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/streaming/test_messages.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/test_azure.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/test_bedrock.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/test_vertex.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/tools/__init__.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/tools/__inline_snapshot__/test_runners/test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/tools/test_functions.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/lib/utils.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/sample_file.txt +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_client.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_deepcopy.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_extract_files.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_files.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_legacy_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_models.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_qs.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_required_args.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_response.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_streaming.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_transform.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_utils/test_proxy.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/test_utils/test_typing.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tests/utils.py +0 -0
- {anthropic-0.74.0 → anthropic-0.75.0}/tools.md +0 -0
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.75.0 (2025-11-24)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.74.1...v0.75.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.74.1...v0.75.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** adds support for Claude Opus 4.5, Effort, Advance Tool Use Features, Autocompaction, and Computer Use v5 ([5c3e633](https://github.com/anthropics/anthropic-sdk-python/commit/5c3e633395acc100c45e8a403f1b5be4d17a3b32))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **internal:** small fixes ([36c82f7](https://github.com/anthropics/anthropic-sdk-python/commit/36c82f72b588bd549770a89072dd52d6f9e5b6a5))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Chores
|
|
18
|
+
|
|
19
|
+
* fix lint issues ([4f1fd54](https://github.com/anthropics/anthropic-sdk-python/commit/4f1fd54143b79a4a7976dfb332ec7bfc666d1598))
|
|
20
|
+
|
|
21
|
+
## 0.74.1 (2025-11-19)
|
|
22
|
+
|
|
23
|
+
Full Changelog: [v0.74.0...v0.74.1](https://github.com/anthropics/anthropic-sdk-python/compare/v0.74.0...v0.74.1)
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **structured outputs:** use correct beta header ([e90d347](https://github.com/anthropics/anthropic-sdk-python/commit/e90d347dfd80adc5ae2a412ebfe2eb55351ce08e))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Chores
|
|
31
|
+
|
|
32
|
+
* **examples:** update model references ([e09461d](https://github.com/anthropics/anthropic-sdk-python/commit/e09461da36405bbb1a7ef616b9281457b2a6e20f))
|
|
33
|
+
|
|
3
34
|
## 0.74.0 (2025-11-18)
|
|
4
35
|
|
|
5
36
|
Full Changelog: [v0.73.0...v0.74.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.73.0...v0.74.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: anthropic
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.75.0
|
|
4
4
|
Summary: The official Python library for the anthropic API
|
|
5
5
|
Project-URL: Homepage, https://github.com/anthropics/anthropic-sdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/anthropics/anthropic-sdk-python
|
|
@@ -256,6 +256,7 @@ from anthropic.types.beta import (
|
|
|
256
256
|
BetaContextManagementConfig,
|
|
257
257
|
BetaContextManagementResponse,
|
|
258
258
|
BetaCountTokensContextManagementResponse,
|
|
259
|
+
BetaDirectCaller,
|
|
259
260
|
BetaDocumentBlock,
|
|
260
261
|
BetaFileDocumentSource,
|
|
261
262
|
BetaFileImageSource,
|
|
@@ -264,9 +265,12 @@ from anthropic.types.beta import (
|
|
|
264
265
|
BetaInputTokensClearAtLeast,
|
|
265
266
|
BetaInputTokensTrigger,
|
|
266
267
|
BetaJSONOutputFormat,
|
|
268
|
+
BetaMCPToolConfig,
|
|
269
|
+
BetaMCPToolDefaultConfig,
|
|
267
270
|
BetaMCPToolResultBlock,
|
|
268
271
|
BetaMCPToolUseBlock,
|
|
269
272
|
BetaMCPToolUseBlockParam,
|
|
273
|
+
BetaMCPToolset,
|
|
270
274
|
BetaMemoryTool20250818,
|
|
271
275
|
BetaMemoryTool20250818Command,
|
|
272
276
|
BetaMemoryTool20250818CreateCommand,
|
|
@@ -280,6 +284,7 @@ from anthropic.types.beta import (
|
|
|
280
284
|
BetaMessageParam,
|
|
281
285
|
BetaMessageTokensCount,
|
|
282
286
|
BetaMetadata,
|
|
287
|
+
BetaOutputConfig,
|
|
283
288
|
BetaPlainTextSource,
|
|
284
289
|
BetaRawContentBlockDelta,
|
|
285
290
|
BetaRawContentBlockDeltaEvent,
|
|
@@ -296,6 +301,7 @@ from anthropic.types.beta import (
|
|
|
296
301
|
BetaRequestMCPServerURLDefinition,
|
|
297
302
|
BetaRequestMCPToolResultBlockParam,
|
|
298
303
|
BetaSearchResultBlockParam,
|
|
304
|
+
BetaServerToolCaller,
|
|
299
305
|
BetaServerToolUsage,
|
|
300
306
|
BetaServerToolUseBlock,
|
|
301
307
|
BetaServerToolUseBlockParam,
|
|
@@ -335,7 +341,18 @@ from anthropic.types.beta import (
|
|
|
335
341
|
BetaToolChoiceTool,
|
|
336
342
|
BetaToolComputerUse20241022,
|
|
337
343
|
BetaToolComputerUse20250124,
|
|
344
|
+
BetaToolComputerUse20251124,
|
|
345
|
+
BetaToolReferenceBlock,
|
|
346
|
+
BetaToolReferenceBlockParam,
|
|
338
347
|
BetaToolResultBlockParam,
|
|
348
|
+
BetaToolSearchToolBm25_20251119,
|
|
349
|
+
BetaToolSearchToolRegex20251119,
|
|
350
|
+
BetaToolSearchToolResultBlock,
|
|
351
|
+
BetaToolSearchToolResultBlockParam,
|
|
352
|
+
BetaToolSearchToolResultError,
|
|
353
|
+
BetaToolSearchToolResultErrorParam,
|
|
354
|
+
BetaToolSearchToolSearchResultBlock,
|
|
355
|
+
BetaToolSearchToolSearchResultBlockParam,
|
|
339
356
|
BetaToolTextEditor20241022,
|
|
340
357
|
BetaToolTextEditor20250124,
|
|
341
358
|
BetaToolTextEditor20250429,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"""Show the full summary content after compaction"""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
|
|
5
|
+
from anthropic import Anthropic
|
|
6
|
+
from anthropic.lib.tools import beta_tool
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@beta_tool
|
|
10
|
+
def search(query: str) -> str:
|
|
11
|
+
"""Search for information."""
|
|
12
|
+
return json.dumps(
|
|
13
|
+
{
|
|
14
|
+
"results": [
|
|
15
|
+
{"title": f"Result for {query}", "content": "Lorem ipsum " * 100},
|
|
16
|
+
{"title": f"More on {query}", "content": "Detailed info " * 100},
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@beta_tool
|
|
23
|
+
def done(summary: str) -> str: # noqa: ARG001
|
|
24
|
+
"""Call when finished."""
|
|
25
|
+
return "Complete"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
client = Anthropic()
|
|
29
|
+
|
|
30
|
+
runner = client.beta.messages.tool_runner(
|
|
31
|
+
model="claude-sonnet-4-20250514",
|
|
32
|
+
max_tokens=4096,
|
|
33
|
+
tools=[search, done],
|
|
34
|
+
messages=[
|
|
35
|
+
{
|
|
36
|
+
"role": "user",
|
|
37
|
+
"content": "You MUST search for EACH of these animals ONE BY ONE: dogs, cats, birds, fish, horses, elephants, lions, tigers, bears, wolves. After searching for ALL of them, call done.",
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
compaction_control={
|
|
41
|
+
"enabled": True,
|
|
42
|
+
"context_token_threshold": 3000, # Even lower threshold
|
|
43
|
+
},
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
prev_msg_count = 0
|
|
47
|
+
for i, message in enumerate(runner):
|
|
48
|
+
curr_msg_count = len(list(runner._params["messages"]))
|
|
49
|
+
print(f"Turn {i + 1}: {message.usage.input_tokens} input tokens, {curr_msg_count} messages")
|
|
50
|
+
|
|
51
|
+
if curr_msg_count < prev_msg_count:
|
|
52
|
+
print("=" * 70)
|
|
53
|
+
print("🔄 COMPACTION OCCURRED!")
|
|
54
|
+
print("=" * 70)
|
|
55
|
+
print(f"Messages went from {prev_msg_count} → {curr_msg_count}")
|
|
56
|
+
print(f"Input tokens: {message.usage.input_tokens}")
|
|
57
|
+
print("\nNEW MESSAGES LIST:")
|
|
58
|
+
print("-" * 70)
|
|
59
|
+
|
|
60
|
+
for msg in runner._params["messages"]:
|
|
61
|
+
role = msg.get("role", "?")
|
|
62
|
+
content = msg.get("content", "")
|
|
63
|
+
|
|
64
|
+
if isinstance(content, list):
|
|
65
|
+
for block in content:
|
|
66
|
+
if isinstance(block, dict) and block.get("type") == "text":
|
|
67
|
+
print(f"\n[{role}] TEXT BLOCK:")
|
|
68
|
+
print(block.get("text", ""))
|
|
69
|
+
elif isinstance(content, str):
|
|
70
|
+
print(f"\n[{role}]:")
|
|
71
|
+
print(content)
|
|
72
|
+
|
|
73
|
+
print("-" * 70)
|
|
74
|
+
|
|
75
|
+
prev_msg_count = curr_msg_count
|
|
76
|
+
|
|
77
|
+
print("\n✅ Done!")
|
|
@@ -28,7 +28,7 @@ Extract the product name, price, and quantity from this customer message:
|
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
parsed_message = client.beta.messages.parse(
|
|
31
|
-
model="claude-sonnet-4-5
|
|
31
|
+
model="claude-sonnet-4-5",
|
|
32
32
|
messages=[{"role": "user", "content": prompt}],
|
|
33
33
|
max_tokens=1024,
|
|
34
34
|
output_format=Order,
|
|
@@ -27,9 +27,8 @@ Extract the product name, price, and quantity from this customer message:
|
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
with client.beta.messages.stream(
|
|
30
|
-
model="claude-sonnet-4-5
|
|
30
|
+
model="claude-sonnet-4-5",
|
|
31
31
|
messages=[{"role": "user", "content": prompt}],
|
|
32
|
-
betas=["structured-outputs-2025-09-17"],
|
|
33
32
|
max_tokens=1024,
|
|
34
33
|
output_format=Order,
|
|
35
34
|
) as stream:
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from typing import Any, List
|
|
3
|
+
from typing_extensions import Literal
|
|
4
|
+
|
|
5
|
+
import rich
|
|
6
|
+
|
|
7
|
+
from anthropic import Anthropic, beta_tool
|
|
8
|
+
from anthropic.lib.tools import BetaFunctionTool, BetaFunctionToolResultType
|
|
9
|
+
from anthropic.types.beta import BetaToolReferenceBlockParam
|
|
10
|
+
|
|
11
|
+
client = Anthropic()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@beta_tool(defer_loading=True)
|
|
15
|
+
def get_weather(location: str, units: Literal["c", "f"]) -> str:
|
|
16
|
+
"""Lookup the weather for a given city in either celsius or fahrenheit
|
|
17
|
+
|
|
18
|
+
Args:
|
|
19
|
+
location: The city and state, e.g. San Francisco, CA
|
|
20
|
+
units: Unit for the output, either 'c' for celsius or 'f' for fahrenheit
|
|
21
|
+
Returns:
|
|
22
|
+
A dictionary containing the location, temperature, and weather condition.
|
|
23
|
+
"""
|
|
24
|
+
# Simulate a weather API call
|
|
25
|
+
print(f"Fetching weather for {location} in {units}")
|
|
26
|
+
|
|
27
|
+
# Here you would typically make an API call to a weather service
|
|
28
|
+
# For demonstration, we return a mock response
|
|
29
|
+
if units == "c":
|
|
30
|
+
return json.dumps(
|
|
31
|
+
{
|
|
32
|
+
"location": location,
|
|
33
|
+
"temperature": "20°C",
|
|
34
|
+
"condition": "Sunny",
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
else:
|
|
38
|
+
return json.dumps(
|
|
39
|
+
{
|
|
40
|
+
"location": location,
|
|
41
|
+
"temperature": "68°F",
|
|
42
|
+
"condition": "Sunny",
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def make_tool_searcher(tools: List[BetaFunctionTool[Any]]) -> BetaFunctionTool[Any]:
|
|
48
|
+
"""Returns a tool that Claude can use to search through all available tools"""
|
|
49
|
+
|
|
50
|
+
@beta_tool
|
|
51
|
+
def search_available_tools(*, keyword: str) -> BetaFunctionToolResultType:
|
|
52
|
+
"""Search for useful tools using a query string"""
|
|
53
|
+
|
|
54
|
+
results: list[BetaToolReferenceBlockParam] = []
|
|
55
|
+
for tool in tools:
|
|
56
|
+
if keyword in json.dumps(tool.to_dict()):
|
|
57
|
+
results.append({"type": "tool_reference", "tool_name": tool.name})
|
|
58
|
+
|
|
59
|
+
return results
|
|
60
|
+
|
|
61
|
+
return search_available_tools
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def main() -> None:
|
|
65
|
+
tools: list[BetaFunctionTool[Any]] = [
|
|
66
|
+
get_weather,
|
|
67
|
+
# ... many more tools
|
|
68
|
+
]
|
|
69
|
+
runner = client.beta.messages.tool_runner(
|
|
70
|
+
max_tokens=1024,
|
|
71
|
+
model="claude-sonnet-4-5-20250929",
|
|
72
|
+
tools=[*tools, make_tool_searcher(tools)],
|
|
73
|
+
messages=[{"role": "user", "content": "What is the weather in SF?"}],
|
|
74
|
+
betas=["tool-search-tool-2025-10-19"],
|
|
75
|
+
)
|
|
76
|
+
for message in runner:
|
|
77
|
+
rich.print(message)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
main()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "anthropic"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.75.0"
|
|
4
4
|
description = "The official Python library for the anthropic API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "MIT"
|
|
@@ -160,7 +160,7 @@ show_error_codes = true
|
|
|
160
160
|
#
|
|
161
161
|
# We also exclude our `tests` as mypy doesn't always infer
|
|
162
162
|
# types correctly and Pyright will still catch any type errors.
|
|
163
|
-
exclude = ['src/anthropic/_files.py', '_dev/.*.py', 'tests/.*', 'examples/mcp_server_weather.py', 'examples/tools_with_mcp.py', 'examples/memory/basic.py', 'src/anthropic/lib/_parse/_transform.py']
|
|
163
|
+
exclude = ['src/anthropic/_files.py', '_dev/.*.py', 'tests/.*', 'examples/mcp_server_weather.py', 'examples/tools_with_mcp.py', 'examples/memory/basic.py', 'src/anthropic/lib/_parse/_transform.py', 'src/anthropic/lib/tools/_beta_functions.py']
|
|
164
164
|
|
|
165
165
|
strict_equality = true
|
|
166
166
|
implicit_reexport = true
|
|
@@ -468,7 +468,7 @@ def accumulate_event(
|
|
|
468
468
|
current_snapshot.content.append(
|
|
469
469
|
cast(
|
|
470
470
|
Any, # Pydantic does not support generic unions at runtime
|
|
471
|
-
construct_type(type_=ParsedBetaContentBlock, value=event.content_block.
|
|
471
|
+
construct_type(type_=ParsedBetaContentBlock, value=event.content_block.to_dict()),
|
|
472
472
|
),
|
|
473
473
|
)
|
|
474
474
|
elif event.type == "content_block_delta":
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
from typing import TypedDict
|
|
2
|
+
from typing_extensions import Required
|
|
3
|
+
|
|
4
|
+
DEFAULT_SUMMARY_PROMPT = """You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:
|
|
5
|
+
1. Task Overview
|
|
6
|
+
The user's core request and success criteria
|
|
7
|
+
Any clarifications or constraints they specified
|
|
8
|
+
2. Current State
|
|
9
|
+
What has been completed so far
|
|
10
|
+
Files created, modified, or analyzed (with paths if relevant)
|
|
11
|
+
Key outputs or artifacts produced
|
|
12
|
+
3. Important Discoveries
|
|
13
|
+
Technical constraints or requirements uncovered
|
|
14
|
+
Decisions made and their rationale
|
|
15
|
+
Errors encountered and how they were resolved
|
|
16
|
+
What approaches were tried that didn't work (and why)
|
|
17
|
+
4. Next Steps
|
|
18
|
+
Specific actions needed to complete the task
|
|
19
|
+
Any blockers or open questions to resolve
|
|
20
|
+
Priority order if multiple steps remain
|
|
21
|
+
5. Context to Preserve
|
|
22
|
+
User preferences or style requirements
|
|
23
|
+
Domain-specific details that aren't obvious
|
|
24
|
+
Any promises made to the user
|
|
25
|
+
Be concise but complete—err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task.
|
|
26
|
+
Wrap your summary in <summary></summary> tags."""
|
|
27
|
+
|
|
28
|
+
DEFAULT_THRESHOLD = 100_000
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class CompactionControl(TypedDict, total=False):
|
|
32
|
+
context_token_threshold: int
|
|
33
|
+
"""The context token threshold at which to trigger compaction.
|
|
34
|
+
|
|
35
|
+
When the cumulative token count (input + output) across all messages exceeds this threshold,
|
|
36
|
+
the message history will be automatically summarized and compressed. Defaults to 150,000 tokens.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
model: str
|
|
40
|
+
"""
|
|
41
|
+
The model to use for generating the compaction summary.
|
|
42
|
+
If not specified, defaults to the same model used for the tool runner.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
summary_prompt: str
|
|
46
|
+
"""The prompt used to instruct the model on how to generate the summary."""
|
|
47
|
+
|
|
48
|
+
enabled: Required[bool]
|
|
@@ -14,9 +14,9 @@ from ... import _compat
|
|
|
14
14
|
from ..._utils import is_dict
|
|
15
15
|
from ..._compat import cached_property
|
|
16
16
|
from ..._models import TypeAdapter
|
|
17
|
-
from ...types.beta import BetaToolUnionParam
|
|
17
|
+
from ...types.beta import BetaToolParam, BetaToolUnionParam
|
|
18
18
|
from ..._utils._utils import CallableT
|
|
19
|
-
from ...types.tool_param import
|
|
19
|
+
from ...types.tool_param import InputSchema
|
|
20
20
|
from ...types.beta.beta_tool_result_block_param import Content as BetaContent
|
|
21
21
|
|
|
22
22
|
log = logging.getLogger(__name__)
|
|
@@ -39,7 +39,10 @@ class BetaBuiltinFunctionTool(ABC):
|
|
|
39
39
|
|
|
40
40
|
@property
|
|
41
41
|
def name(self) -> str:
|
|
42
|
-
|
|
42
|
+
raw = self.to_dict()
|
|
43
|
+
if "mcp_server_name" in raw:
|
|
44
|
+
return raw["mcp_server_name"]
|
|
45
|
+
return raw["name"]
|
|
43
46
|
|
|
44
47
|
|
|
45
48
|
class BetaAsyncBuiltinFunctionTool(ABC):
|
|
@@ -51,7 +54,10 @@ class BetaAsyncBuiltinFunctionTool(ABC):
|
|
|
51
54
|
|
|
52
55
|
@property
|
|
53
56
|
def name(self) -> str:
|
|
54
|
-
|
|
57
|
+
raw = self.to_dict()
|
|
58
|
+
if "mcp_server_name" in raw:
|
|
59
|
+
return raw["mcp_server_name"]
|
|
60
|
+
return raw["name"]
|
|
55
61
|
|
|
56
62
|
|
|
57
63
|
class BaseFunctionTool(Generic[CallableT]):
|
|
@@ -72,6 +78,7 @@ class BaseFunctionTool(Generic[CallableT]):
|
|
|
72
78
|
name: str | None = None,
|
|
73
79
|
description: str | None = None,
|
|
74
80
|
input_schema: InputSchema | type[BaseModel] | None = None,
|
|
81
|
+
defer_loading: bool | None = None,
|
|
75
82
|
) -> None:
|
|
76
83
|
if _compat.PYDANTIC_V1:
|
|
77
84
|
raise RuntimeError("Tool functions are only supported with Pydantic v2")
|
|
@@ -79,6 +86,7 @@ class BaseFunctionTool(Generic[CallableT]):
|
|
|
79
86
|
self.func = func
|
|
80
87
|
self._func_with_validate = pydantic.validate_call(func)
|
|
81
88
|
self.name = name or func.__name__
|
|
89
|
+
self._defer_loading = defer_loading
|
|
82
90
|
|
|
83
91
|
self.description = description or self._get_description_from_docstring()
|
|
84
92
|
|
|
@@ -94,12 +102,15 @@ class BaseFunctionTool(Generic[CallableT]):
|
|
|
94
102
|
def __call__(self) -> CallableT:
|
|
95
103
|
return self.func
|
|
96
104
|
|
|
97
|
-
def to_dict(self) ->
|
|
98
|
-
|
|
105
|
+
def to_dict(self) -> BetaToolParam:
|
|
106
|
+
defn: BetaToolParam = {
|
|
99
107
|
"name": self.name,
|
|
100
108
|
"description": self.description,
|
|
101
109
|
"input_schema": self.input_schema,
|
|
102
110
|
}
|
|
111
|
+
if self._defer_loading is not None:
|
|
112
|
+
defn["defer_loading"] = self._defer_loading
|
|
113
|
+
return defn
|
|
103
114
|
|
|
104
115
|
@cached_property
|
|
105
116
|
def _parsed_docstring(self) -> docstring_parser.Docstring:
|
|
@@ -211,6 +222,7 @@ def beta_tool(
|
|
|
211
222
|
name: str | None = None,
|
|
212
223
|
description: str | None = None,
|
|
213
224
|
input_schema: InputSchema | type[BaseModel] | None = None,
|
|
225
|
+
defer_loading: bool | None = None,
|
|
214
226
|
) -> Callable[[FunctionT], BetaFunctionTool[FunctionT]]: ...
|
|
215
227
|
|
|
216
228
|
|
|
@@ -220,6 +232,7 @@ def beta_tool(
|
|
|
220
232
|
name: str | None = None,
|
|
221
233
|
description: str | None = None,
|
|
222
234
|
input_schema: InputSchema | type[BaseModel] | None = None,
|
|
235
|
+
defer_loading: bool | None = None,
|
|
223
236
|
) -> BetaFunctionTool[FunctionT] | Callable[[FunctionT], BetaFunctionTool[FunctionT]]:
|
|
224
237
|
"""Create a FunctionTool from a function with automatic schema inference.
|
|
225
238
|
|
|
@@ -239,11 +252,15 @@ def beta_tool(
|
|
|
239
252
|
|
|
240
253
|
if func is not None:
|
|
241
254
|
# @beta_tool called without parentheses
|
|
242
|
-
return BetaFunctionTool(
|
|
255
|
+
return BetaFunctionTool(
|
|
256
|
+
func=func, name=name, description=description, input_schema=input_schema, defer_loading=defer_loading
|
|
257
|
+
)
|
|
243
258
|
|
|
244
259
|
# @beta_tool()
|
|
245
260
|
def decorator(func: FunctionT) -> BetaFunctionTool[FunctionT]:
|
|
246
|
-
return BetaFunctionTool(
|
|
261
|
+
return BetaFunctionTool(
|
|
262
|
+
func=func, name=name, description=description, input_schema=input_schema, defer_loading=defer_loading
|
|
263
|
+
)
|
|
247
264
|
|
|
248
265
|
return decorator
|
|
249
266
|
|
|
@@ -259,6 +276,7 @@ def beta_async_tool(
|
|
|
259
276
|
name: str | None = None,
|
|
260
277
|
description: str | None = None,
|
|
261
278
|
input_schema: InputSchema | type[BaseModel] | None = None,
|
|
279
|
+
defer_loading: bool | None = None,
|
|
262
280
|
) -> BetaAsyncFunctionTool[AsyncFunctionT]: ...
|
|
263
281
|
|
|
264
282
|
|
|
@@ -268,6 +286,7 @@ def beta_async_tool(
|
|
|
268
286
|
name: str | None = None,
|
|
269
287
|
description: str | None = None,
|
|
270
288
|
input_schema: InputSchema | type[BaseModel] | None = None,
|
|
289
|
+
defer_loading: bool | None = None,
|
|
271
290
|
) -> Callable[[AsyncFunctionT], BetaAsyncFunctionTool[AsyncFunctionT]]: ...
|
|
272
291
|
|
|
273
292
|
|
|
@@ -277,6 +296,7 @@ def beta_async_tool(
|
|
|
277
296
|
name: str | None = None,
|
|
278
297
|
description: str | None = None,
|
|
279
298
|
input_schema: InputSchema | type[BaseModel] | None = None,
|
|
299
|
+
defer_loading: bool | None = None,
|
|
280
300
|
) -> BetaAsyncFunctionTool[AsyncFunctionT] | Callable[[AsyncFunctionT], BetaAsyncFunctionTool[AsyncFunctionT]]:
|
|
281
301
|
"""Create an AsyncFunctionTool from a function with automatic schema inference.
|
|
282
302
|
|
|
@@ -301,6 +321,7 @@ def beta_async_tool(
|
|
|
301
321
|
name=name,
|
|
302
322
|
description=description,
|
|
303
323
|
input_schema=input_schema,
|
|
324
|
+
defer_loading=defer_loading,
|
|
304
325
|
)
|
|
305
326
|
|
|
306
327
|
# @beta_async_tool()
|
|
@@ -310,6 +331,7 @@ def beta_async_tool(
|
|
|
310
331
|
name=name,
|
|
311
332
|
description=description,
|
|
312
333
|
input_schema=input_schema,
|
|
334
|
+
defer_loading=defer_loading,
|
|
313
335
|
)
|
|
314
336
|
|
|
315
337
|
return decorator
|