anthropic 0.77.0__tar.gz → 0.78.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.78.0/.release-please-manifest.json +3 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/CHANGELOG.md +21 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/PKG-INFO +2 -2
- {anthropic-0.77.0 → anthropic-0.78.0}/README.md +1 -1
- {anthropic-0.77.0 → anthropic-0.78.0}/api.md +9 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/pyproject.toml +1 -1
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_version.py +1 -1
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/streaming/_beta_messages.py +15 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/streaming/_beta_types.py +8 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/beta/messages/messages.py +112 -3
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/messages/messages.py +76 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/__init__.py +1 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/__init__.py +8 -0
- anthropic-0.78.0/src/anthropic/types/beta/beta_compact_20260112_edit_param.py +27 -0
- anthropic-0.78.0/src/anthropic/types/beta/beta_compaction_block.py +22 -0
- anthropic-0.78.0/src/anthropic/types/beta/beta_compaction_block_param.py +29 -0
- anthropic-0.78.0/src/anthropic/types/beta/beta_compaction_content_block_delta.py +14 -0
- anthropic-0.78.0/src/anthropic/types/beta/beta_compaction_iteration_usage.py +31 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_content_block.py +2 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_content_block_param.py +2 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_context_management_config_param.py +4 -1
- anthropic-0.78.0/src/anthropic/types/beta/beta_iterations_usage.py +13 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_message_delta_usage.py +12 -0
- anthropic-0.78.0/src/anthropic/types/beta/beta_message_iteration_usage.py +31 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_output_config_param.py +2 -7
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_raw_content_block_delta.py +9 -1
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_raw_content_block_start_event.py +2 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_stop_reason.py +8 -1
- anthropic-0.78.0/src/anthropic/types/beta/beta_thinking_config_adaptive_param.py +11 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_thinking_config_param.py +4 -1
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_param.py +10 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_usage.py +15 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/message_create_params.py +6 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/batch_create_params.py +1 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/parsed_beta_message.py +2 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message_create_params.py +7 -1
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/batch_create_params.py +1 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/model.py +1 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/model_param.py +1 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/output_config_param.py +4 -1
- anthropic-0.78.0/src/anthropic/types/thinking_config_adaptive_param.py +11 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/thinking_config_param.py +4 -1
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_param.py +10 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/usage.py +3 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/beta/messages/test_batches.py +12 -8
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/beta/test_messages.py +34 -24
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/messages/test_batches.py +6 -6
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/test_completions.py +16 -16
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/test_messages.py +52 -42
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/tools/test_runners.py +3 -3
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_client.py +12 -12
- {anthropic-0.77.0 → anthropic-0.78.0}/uv.lock +1 -1
- anthropic-0.77.0/.release-please-manifest.json +0 -3
- {anthropic-0.77.0 → anthropic-0.78.0}/.gitignore +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/CONTRIBUTING.md +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/LICENSE +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/SECURITY.md +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/bin/check-release-environment +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/bin/publish-pypi +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/.keep +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/auto_compaction.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/azure.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/batch_results.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/bedrock.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/images.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/logo.png +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/memory/basic.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/messages.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/messages_stream.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/structured_outputs.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/structured_outputs_streaming.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/text_completions_demo_async.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/text_completions_demo_sync.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/text_completions_streaming.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/thinking.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/thinking_stream.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/tools.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/tools_runner.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/tools_runner_search_tool.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/tools_stream.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/vertex.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/web_search.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/examples/web_search_stream.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/helpers.md +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/release-please-config.json +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/requirements-dev.lock +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_base_client.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_client.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_compat.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_constants.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_decoders/jsonl.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_exceptions.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_files.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_legacy_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_models.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_qs.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_resource.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_streaming.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_types.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_compat.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_datetime_parse.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_httpx.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_json.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_logs.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_proxy.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_reflection.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_resources_proxy.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_streams.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_sync.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_transform.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_typing.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/_utils/_utils.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/.keep +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/_extras/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/_extras/_common.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/_extras/_google_auth.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/_files.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/_parse/_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/_parse/_transform.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/bedrock/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/bedrock/_auth.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/bedrock/_beta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/bedrock/_beta_messages.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/bedrock/_client.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/bedrock/_stream.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/bedrock/_stream_decoder.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/foundry.md +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/foundry.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/streaming/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/streaming/_messages.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/streaming/_types.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/tools/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/tools/_beta_builtin_memory_tool.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/tools/_beta_compaction_control.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/tools/_beta_functions.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/tools/_beta_runner.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/vertex/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/vertex/_auth.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/vertex/_beta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/vertex/_beta_messages.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/lib/vertex/_client.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/pagination.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/py.typed +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/beta/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/beta/beta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/beta/files.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/beta/messages/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/beta/messages/batches.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/beta/models.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/beta/skills/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/beta/skills/skills.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/beta/skills/versions.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/completions.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/messages/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/messages/batches.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/resources/models.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/anthropic_beta_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/base64_image_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/base64_pdf_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_all_thinking_turns_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_base64_image_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_base64_pdf_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_base64_pdf_source.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_base64_pdf_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_bash_code_execution_output_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_bash_code_execution_output_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_bash_code_execution_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_bash_code_execution_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_cache_control_ephemeral_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_cache_creation.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citation_char_location.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citation_char_location_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citation_config.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citation_content_block_location.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citation_content_block_location_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citation_page_location.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citation_page_location_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citation_search_result_location.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citation_search_result_location_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citation_web_search_result_location_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citations_config_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citations_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_citations_web_search_result_location.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_clear_thinking_20251015_edit_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_clear_tool_uses_20250919_edit_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_output_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_output_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_tool_20250522_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_tool_20250825_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_content.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_code.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_container.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_container_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_container_upload_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_container_upload_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_content_block_source_content_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_content_block_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_context_management_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_count_tokens_context_management_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_direct_caller.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_direct_caller_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_document_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_file_document_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_file_image_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_image_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_input_json_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_input_tokens_clear_at_least_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_input_tokens_trigger_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_json_output_format_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_mcp_tool_config_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_mcp_tool_default_config_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_mcp_tool_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_mcp_tool_use_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_mcp_toolset_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_memory_tool_20250818_command.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_memory_tool_20250818_create_command.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_memory_tool_20250818_delete_command.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_memory_tool_20250818_insert_command.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_memory_tool_20250818_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_memory_tool_20250818_rename_command.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_memory_tool_20250818_str_replace_command.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_memory_tool_20250818_view_command.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_message.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_message_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_message_tokens_count.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_metadata_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_model_info.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_plain_text_source.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_plain_text_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_raw_content_block_delta_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_raw_content_block_stop_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_raw_message_delta_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_raw_message_start_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_raw_message_stop_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_raw_message_stream_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_redacted_thinking_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_redacted_thinking_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_request_document_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_request_mcp_server_tool_configuration_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_search_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_server_tool_caller.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_server_tool_caller_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_server_tool_usage.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_server_tool_use_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_server_tool_use_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_signature_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_skill.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_skill_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_citation.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_citation_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_thinking_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_thinking_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_thinking_config_disabled_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_thinking_config_enabled_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_thinking_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_thinking_turns_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_bash_20241022_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_bash_20250124_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_choice_any_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_choice_auto_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_choice_none_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_choice_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_choice_tool_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_computer_use_20241022_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_computer_use_20250124_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_computer_use_20251124_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_reference_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_reference_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_search_tool_bm25_20251119_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_search_tool_regex_20251119_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_search_tool_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_search_tool_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_search_tool_result_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_search_tool_result_error_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_search_tool_search_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_search_tool_search_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_text_editor_20241022_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_text_editor_20250728_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_union_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_use_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_use_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_uses_keep_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_tool_uses_trigger_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_url_image_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_url_pdf_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_fetch_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_fetch_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_fetch_tool_20250910_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_code.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_search_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_search_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_search_tool_20250305_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_search_tool_request_error_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_search_tool_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_content.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_search_tool_result_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/beta_web_search_tool_result_error_code.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/deleted_file.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/file_list_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/file_metadata.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/file_upload_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/message_count_tokens_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/batch_list_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/beta_deleted_message_batch.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/beta_message_batch.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/beta_message_batch_canceled_result.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/beta_message_batch_errored_result.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/beta_message_batch_expired_result.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/beta_message_batch_individual_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/beta_message_batch_request_counts.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/beta_message_batch_result.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/messages/beta_message_batch_succeeded_result.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/model_list_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skill_create_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skill_create_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skill_delete_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skill_list_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skill_list_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skill_retrieve_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skills/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skills/version_create_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skills/version_create_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skills/version_delete_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skills/version_list_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skills/version_list_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta/skills/version_retrieve_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_api_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_authentication_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_billing_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_error_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_gateway_timeout_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_invalid_request_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_not_found_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_overloaded_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_permission_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/beta_rate_limit_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/cache_control_ephemeral_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/cache_creation.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citation_char_location.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citation_char_location_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citation_content_block_location.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citation_content_block_location_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citation_page_location.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citation_page_location_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citation_search_result_location_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citation_web_search_result_location_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citations_config_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citations_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citations_search_result_location.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/citations_web_search_result_location.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/completion.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/completion_create_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/content_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/content_block_delta_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/content_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/content_block_source_content_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/content_block_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/content_block_start_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/content_block_stop_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/document_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/image_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/input_json_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/json_output_format_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message_count_tokens_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message_count_tokens_tool_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message_delta_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message_delta_usage.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message_start_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message_stop_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message_stream_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/message_tokens_count.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/batch_list_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/deleted_message_batch.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/message_batch.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/message_batch_canceled_result.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/message_batch_errored_result.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/message_batch_expired_result.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/message_batch_individual_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/message_batch_request_counts.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/message_batch_result.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/messages/message_batch_succeeded_result.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/metadata_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/model_info.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/model_list_params.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/parsed_message.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/plain_text_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/raw_content_block_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/raw_content_block_delta_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/raw_content_block_start_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/raw_content_block_stop_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/raw_message_delta_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/raw_message_start_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/raw_message_stop_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/raw_message_stream_event.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/redacted_thinking_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/redacted_thinking_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/search_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/server_tool_usage.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/server_tool_use_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/server_tool_use_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/api_error_object.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/authentication_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/billing_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/error_object.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/error_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/gateway_timeout_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/invalid_request_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/not_found_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/overloaded_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/permission_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/shared/rate_limit_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/signature_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/stop_reason.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/text_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/text_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/text_citation.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/text_citation_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/text_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/thinking_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/thinking_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/thinking_config_disabled_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/thinking_config_enabled_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/thinking_delta.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_bash_20250124_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_choice_any_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_choice_auto_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_choice_none_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_choice_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_choice_tool_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_text_editor_20250728_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_union_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_use_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/tool_use_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/url_image_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/url_pdf_source_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/web_search_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/web_search_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/web_search_tool_20250305_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/web_search_tool_request_error_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/web_search_tool_result_block.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/web_search_tool_result_block_content.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/web_search_tool_result_block_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/src/anthropic/types/web_search_tool_result_error.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/beta/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/beta/messages/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/beta/skills/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/beta/skills/test_versions.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/beta/test_files.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/beta/test_models.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/beta/test_output_format_conversion.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/beta/test_skills.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/messages/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/api_resources/test_models.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/conftest.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/decoders/test_jsonl.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/_parse/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/_parse/__inline_snapshot__/test_beta_messages/TestAsyncMessages.test_parse_uses_output_config/044ce19d-3e9c-42d2-90e7-759c978cd94b.json +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/_parse/__inline_snapshot__/test_beta_messages/TestAsyncMessages.test_stream_with_raw_schema/48aac7c3-f271-47b3-854b-af4ed31e10bb.json +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/_parse/__inline_snapshot__/test_messages/TestAsyncStream.test_stream_with_raw_schema/b2c4d6e8-f012-4a56-8b90-1234567890ab.json +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/_parse/test_beta_messages.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/_parse/test_messages.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/_parse/test_transform.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/snapshots.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/streaming/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/streaming/fixtures/basic_response.txt +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/streaming/fixtures/incomplete_partial_json_response.txt +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/streaming/fixtures/tool_use_response.txt +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/streaming/helpers.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/streaming/test_beta_messages.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/streaming/test_messages.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/streaming/test_partial_json.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/test_azure.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/test_bedrock.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/test_vertex.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/tools/__init__.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_compaction_control/ab7b2edd-9c2d-4f53-9c04-92bb659b9caa.json +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_server_side_tool/a0a711eb-ee0e-4a42-88d6-5c7f83c0f25a.txt +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/tools/__inline_snapshot__/test_runners/test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/tools/test_functions.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/lib/utils.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/sample_file.txt +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_deepcopy.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_extract_files.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_files.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_legacy_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_models.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_qs.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_required_args.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_response.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_streaming.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_transform.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_utils/test_json.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_utils/test_proxy.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/test_utils/test_typing.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tests/utils.py +0 -0
- {anthropic-0.77.0 → anthropic-0.78.0}/tools.md +0 -0
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.78.0 (2026-02-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.77.1...v0.78.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.77.1...v0.78.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([3ef1529](https://github.com/anthropics/anthropic-sdk-python/commit/3ef1529b45c55645646cc6043784f999fda088de))
|
|
10
|
+
|
|
11
|
+
## 0.77.1 (2026-02-03)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.77.0...v0.77.1](https://github.com/anthropics/anthropic-sdk-python/compare/v0.77.0...v0.77.1)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **structured outputs:** send structured output beta header when format is omitted ([#1158](https://github.com/anthropics/anthropic-sdk-python/issues/1158)) ([258494e](https://github.com/anthropics/anthropic-sdk-python/commit/258494e2b814a6a096b01e50f83560b4cf4a98ad))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
|
|
22
|
+
* remove claude-code-review workflow ([#1338](https://github.com/anthropics/anthropic-sdk-python/issues/1338)) ([aec4512](https://github.com/anthropics/anthropic-sdk-python/commit/aec4512305e8dce41df8ef0ab225f4939e099bcf))
|
|
23
|
+
|
|
3
24
|
## 0.77.0 (2026-01-29)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v0.76.0...v0.77.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.76.0...v0.77.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: anthropic
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.78.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
|
|
@@ -523,7 +523,7 @@ message = client.messages.create(
|
|
|
523
523
|
"role": "user",
|
|
524
524
|
}
|
|
525
525
|
],
|
|
526
|
-
model="claude-
|
|
526
|
+
model="claude-opus-4-6",
|
|
527
527
|
metadata={},
|
|
528
528
|
)
|
|
529
529
|
print(message.metadata)
|
|
@@ -78,6 +78,7 @@ from anthropic.types import (
|
|
|
78
78
|
TextDelta,
|
|
79
79
|
ThinkingBlock,
|
|
80
80
|
ThinkingBlockParam,
|
|
81
|
+
ThinkingConfigAdaptive,
|
|
81
82
|
ThinkingConfigDisabled,
|
|
82
83
|
ThinkingConfigEnabled,
|
|
83
84
|
ThinkingConfigParam,
|
|
@@ -247,6 +248,11 @@ from anthropic.types.beta import (
|
|
|
247
248
|
BetaCodeExecutionToolResultError,
|
|
248
249
|
BetaCodeExecutionToolResultErrorCode,
|
|
249
250
|
BetaCodeExecutionToolResultErrorParam,
|
|
251
|
+
BetaCompact20260112Edit,
|
|
252
|
+
BetaCompactionBlock,
|
|
253
|
+
BetaCompactionBlockParam,
|
|
254
|
+
BetaCompactionContentBlockDelta,
|
|
255
|
+
BetaCompactionIterationUsage,
|
|
250
256
|
BetaContainer,
|
|
251
257
|
BetaContainerParams,
|
|
252
258
|
BetaContainerUploadBlock,
|
|
@@ -266,6 +272,7 @@ from anthropic.types.beta import (
|
|
|
266
272
|
BetaInputJSONDelta,
|
|
267
273
|
BetaInputTokensClearAtLeast,
|
|
268
274
|
BetaInputTokensTrigger,
|
|
275
|
+
BetaIterationsUsage,
|
|
269
276
|
BetaJSONOutputFormat,
|
|
270
277
|
BetaMCPToolConfig,
|
|
271
278
|
BetaMCPToolDefaultConfig,
|
|
@@ -283,6 +290,7 @@ from anthropic.types.beta import (
|
|
|
283
290
|
BetaMemoryTool20250818ViewCommand,
|
|
284
291
|
BetaMessage,
|
|
285
292
|
BetaMessageDeltaUsage,
|
|
293
|
+
BetaMessageIterationUsage,
|
|
286
294
|
BetaMessageParam,
|
|
287
295
|
BetaMessageTokensCount,
|
|
288
296
|
BetaMetadata,
|
|
@@ -328,6 +336,7 @@ from anthropic.types.beta import (
|
|
|
328
336
|
BetaTextEditorCodeExecutionViewResultBlockParam,
|
|
329
337
|
BetaThinkingBlock,
|
|
330
338
|
BetaThinkingBlockParam,
|
|
339
|
+
BetaThinkingConfigAdaptive,
|
|
331
340
|
BetaThinkingConfigDisabled,
|
|
332
341
|
BetaThinkingConfigEnabled,
|
|
333
342
|
BetaThinkingConfigParam,
|
|
@@ -20,6 +20,7 @@ from ._beta_types import (
|
|
|
20
20
|
BetaThinkingEvent,
|
|
21
21
|
BetaInputJsonEvent,
|
|
22
22
|
BetaSignatureEvent,
|
|
23
|
+
BetaCompactionEvent,
|
|
23
24
|
ParsedBetaTextEvent,
|
|
24
25
|
ParsedBetaMessageStopEvent,
|
|
25
26
|
ParsedBetaMessageStreamEvent,
|
|
@@ -403,6 +404,15 @@ def build_events(
|
|
|
403
404
|
)
|
|
404
405
|
)
|
|
405
406
|
pass
|
|
407
|
+
elif event.delta.type == "compaction_delta":
|
|
408
|
+
if content_block.type == "compaction":
|
|
409
|
+
events_to_fire.append(
|
|
410
|
+
build(
|
|
411
|
+
BetaCompactionEvent,
|
|
412
|
+
type="compaction",
|
|
413
|
+
content=content_block.content,
|
|
414
|
+
)
|
|
415
|
+
)
|
|
406
416
|
else:
|
|
407
417
|
# we only want exhaustive checking for linters, not at runtime
|
|
408
418
|
if TYPE_CHECKING: # type: ignore[unreachable]
|
|
@@ -512,6 +522,9 @@ def accumulate_event(
|
|
|
512
522
|
elif event.delta.type == "signature_delta":
|
|
513
523
|
if content.type == "thinking":
|
|
514
524
|
content.signature = event.delta.signature
|
|
525
|
+
elif event.delta.type == "compaction_delta":
|
|
526
|
+
if content.type == "compaction":
|
|
527
|
+
content.content = event.delta.content
|
|
515
528
|
else:
|
|
516
529
|
# we only want exhaustive checking for linters, not at runtime
|
|
517
530
|
if TYPE_CHECKING: # type: ignore[unreachable]
|
|
@@ -536,5 +549,7 @@ def accumulate_event(
|
|
|
536
549
|
current_snapshot.usage.cache_read_input_tokens = event.usage.cache_read_input_tokens
|
|
537
550
|
if event.usage.server_tool_use is not None:
|
|
538
551
|
current_snapshot.usage.server_tool_use = event.usage.server_tool_use
|
|
552
|
+
if event.usage.iterations is not None:
|
|
553
|
+
current_snapshot.usage.iterations = event.usage.iterations
|
|
539
554
|
|
|
540
555
|
return current_snapshot
|
|
@@ -75,6 +75,13 @@ class BetaInputJsonEvent(BaseModel):
|
|
|
75
75
|
"""
|
|
76
76
|
|
|
77
77
|
|
|
78
|
+
class BetaCompactionEvent(BaseModel):
|
|
79
|
+
type: Literal["compaction"]
|
|
80
|
+
|
|
81
|
+
content: Union[str, None]
|
|
82
|
+
"""The compaction content"""
|
|
83
|
+
|
|
84
|
+
|
|
78
85
|
class ParsedBetaMessageStopEvent(BetaRawMessageStopEvent, GenericModel, Generic[ResponseFormatT]):
|
|
79
86
|
type: Literal["message_stop"]
|
|
80
87
|
|
|
@@ -97,6 +104,7 @@ ParsedBetaMessageStreamEvent = Annotated[
|
|
|
97
104
|
BetaThinkingEvent,
|
|
98
105
|
BetaSignatureEvent,
|
|
99
106
|
BetaInputJsonEvent,
|
|
107
|
+
BetaCompactionEvent,
|
|
100
108
|
BetaRawMessageStartEvent,
|
|
101
109
|
BetaRawMessageDeltaEvent,
|
|
102
110
|
ParsedBetaMessageStopEvent[ResponseFormatT],
|
|
@@ -44,7 +44,7 @@ from ...._exceptions import AnthropicError
|
|
|
44
44
|
from ...._base_client import make_request_options
|
|
45
45
|
from ...._utils._utils import is_dict
|
|
46
46
|
from ....lib.streaming import BetaMessageStreamManager, BetaAsyncMessageStreamManager
|
|
47
|
-
from ...messages.messages import DEPRECATED_MODELS
|
|
47
|
+
from ...messages.messages import DEPRECATED_MODELS, MODELS_TO_WARN_WITH_THINKING_ENABLED
|
|
48
48
|
from ....types.model_param import ModelParam
|
|
49
49
|
from ....lib._parse._response import ResponseFormatT, parse_beta_response
|
|
50
50
|
from ....lib._parse._transform import transform_schema
|
|
@@ -112,6 +112,7 @@ class Messages(SyncAPIResource):
|
|
|
112
112
|
model: ModelParam,
|
|
113
113
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
114
114
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
115
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
115
116
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
116
117
|
metadata: BetaMetadataParam | Omit = omit,
|
|
117
118
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -230,6 +231,9 @@ class Messages(SyncAPIResource):
|
|
|
230
231
|
This allows you to control how Claude manages context across multiple requests,
|
|
231
232
|
such as whether to clear function results or not.
|
|
232
233
|
|
|
234
|
+
inference_geo: Specifies the geographic region for inference processing. If not specified, the
|
|
235
|
+
workspace's `default_inference_geo` is used.
|
|
236
|
+
|
|
233
237
|
mcp_servers: MCP servers to be utilized in this request
|
|
234
238
|
|
|
235
239
|
metadata: An object describing metadata about the request.
|
|
@@ -406,6 +410,7 @@ class Messages(SyncAPIResource):
|
|
|
406
410
|
stream: Literal[True],
|
|
407
411
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
408
412
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
413
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
409
414
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
410
415
|
metadata: BetaMetadataParam | Omit = omit,
|
|
411
416
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -527,6 +532,9 @@ class Messages(SyncAPIResource):
|
|
|
527
532
|
This allows you to control how Claude manages context across multiple requests,
|
|
528
533
|
such as whether to clear function results or not.
|
|
529
534
|
|
|
535
|
+
inference_geo: Specifies the geographic region for inference processing. If not specified, the
|
|
536
|
+
workspace's `default_inference_geo` is used.
|
|
537
|
+
|
|
530
538
|
mcp_servers: MCP servers to be utilized in this request
|
|
531
539
|
|
|
532
540
|
metadata: An object describing metadata about the request.
|
|
@@ -699,6 +707,7 @@ class Messages(SyncAPIResource):
|
|
|
699
707
|
stream: bool,
|
|
700
708
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
701
709
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
710
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
702
711
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
703
712
|
metadata: BetaMetadataParam | Omit = omit,
|
|
704
713
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -820,6 +829,9 @@ class Messages(SyncAPIResource):
|
|
|
820
829
|
This allows you to control how Claude manages context across multiple requests,
|
|
821
830
|
such as whether to clear function results or not.
|
|
822
831
|
|
|
832
|
+
inference_geo: Specifies the geographic region for inference processing. If not specified, the
|
|
833
|
+
workspace's `default_inference_geo` is used.
|
|
834
|
+
|
|
823
835
|
mcp_servers: MCP servers to be utilized in this request
|
|
824
836
|
|
|
825
837
|
metadata: An object describing metadata about the request.
|
|
@@ -991,6 +1003,7 @@ class Messages(SyncAPIResource):
|
|
|
991
1003
|
model: ModelParam,
|
|
992
1004
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
993
1005
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
1006
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
994
1007
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
995
1008
|
metadata: BetaMetadataParam | Omit = omit,
|
|
996
1009
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -1029,6 +1042,13 @@ class Messages(SyncAPIResource):
|
|
|
1029
1042
|
stacklevel=3,
|
|
1030
1043
|
)
|
|
1031
1044
|
|
|
1045
|
+
if model in MODELS_TO_WARN_WITH_THINKING_ENABLED and thinking and thinking["type"] == "enabled":
|
|
1046
|
+
warnings.warn(
|
|
1047
|
+
f"Using Claude with {model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking",
|
|
1048
|
+
UserWarning,
|
|
1049
|
+
stacklevel=3,
|
|
1050
|
+
)
|
|
1051
|
+
|
|
1032
1052
|
merged_output_config = _merge_output_configs(output_config, output_format)
|
|
1033
1053
|
|
|
1034
1054
|
extra_headers = {
|
|
@@ -1044,6 +1064,7 @@ class Messages(SyncAPIResource):
|
|
|
1044
1064
|
"model": model,
|
|
1045
1065
|
"container": container,
|
|
1046
1066
|
"context_management": context_management,
|
|
1067
|
+
"inference_geo": inference_geo,
|
|
1047
1068
|
"mcp_servers": mcp_servers,
|
|
1048
1069
|
"metadata": metadata,
|
|
1049
1070
|
"output_config": merged_output_config,
|
|
@@ -1079,6 +1100,7 @@ class Messages(SyncAPIResource):
|
|
|
1079
1100
|
model: ModelParam,
|
|
1080
1101
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
1081
1102
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
1103
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
1082
1104
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
1083
1105
|
metadata: BetaMetadataParam | Omit = omit,
|
|
1084
1106
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -1116,9 +1138,16 @@ class Messages(SyncAPIResource):
|
|
|
1116
1138
|
stacklevel=3,
|
|
1117
1139
|
)
|
|
1118
1140
|
|
|
1141
|
+
if model in MODELS_TO_WARN_WITH_THINKING_ENABLED and thinking and thinking["type"] == "enabled":
|
|
1142
|
+
warnings.warn(
|
|
1143
|
+
f"Using Claude with {model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking",
|
|
1144
|
+
UserWarning,
|
|
1145
|
+
stacklevel=3,
|
|
1146
|
+
)
|
|
1147
|
+
|
|
1119
1148
|
betas = [beta for beta in betas] if is_given(betas) else []
|
|
1120
1149
|
|
|
1121
|
-
if "structured-outputs-2025-12-15" not in betas
|
|
1150
|
+
if "structured-outputs-2025-12-15" not in betas:
|
|
1122
1151
|
# Ensure structured outputs beta is included for parse method
|
|
1123
1152
|
betas.append("structured-outputs-2025-12-15")
|
|
1124
1153
|
|
|
@@ -1166,6 +1195,7 @@ class Messages(SyncAPIResource):
|
|
|
1166
1195
|
"model": model,
|
|
1167
1196
|
"container": container,
|
|
1168
1197
|
"context_management": context_management,
|
|
1198
|
+
"inference_geo": inference_geo,
|
|
1169
1199
|
"mcp_servers": mcp_servers,
|
|
1170
1200
|
"metadata": metadata,
|
|
1171
1201
|
"output_config": merged_output_config,
|
|
@@ -1205,6 +1235,7 @@ class Messages(SyncAPIResource):
|
|
|
1205
1235
|
compaction_control: CompactionControl | Omit = omit,
|
|
1206
1236
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
1207
1237
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
1238
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
1208
1239
|
max_iterations: int | Omit = omit,
|
|
1209
1240
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
1210
1241
|
metadata: BetaMetadataParam | Omit = omit,
|
|
@@ -1241,6 +1272,7 @@ class Messages(SyncAPIResource):
|
|
|
1241
1272
|
max_iterations: int | Omit = omit,
|
|
1242
1273
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
1243
1274
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
1275
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
1244
1276
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
1245
1277
|
metadata: BetaMetadataParam | Omit = omit,
|
|
1246
1278
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -1275,6 +1307,7 @@ class Messages(SyncAPIResource):
|
|
|
1275
1307
|
max_iterations: int | Omit = omit,
|
|
1276
1308
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
1277
1309
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
1310
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
1278
1311
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
1279
1312
|
metadata: BetaMetadataParam | Omit = omit,
|
|
1280
1313
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -1307,6 +1340,7 @@ class Messages(SyncAPIResource):
|
|
|
1307
1340
|
max_iterations: int | Omit = omit,
|
|
1308
1341
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
1309
1342
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
1343
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
1310
1344
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
1311
1345
|
metadata: BetaMetadataParam | Omit = omit,
|
|
1312
1346
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -1339,6 +1373,20 @@ class Messages(SyncAPIResource):
|
|
|
1339
1373
|
stacklevel=3,
|
|
1340
1374
|
)
|
|
1341
1375
|
|
|
1376
|
+
if model in MODELS_TO_WARN_WITH_THINKING_ENABLED and thinking and thinking["type"] == "enabled":
|
|
1377
|
+
warnings.warn(
|
|
1378
|
+
f"Using Claude with {model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking",
|
|
1379
|
+
UserWarning,
|
|
1380
|
+
stacklevel=3,
|
|
1381
|
+
)
|
|
1382
|
+
|
|
1383
|
+
if model in MODELS_TO_WARN_WITH_THINKING_ENABLED and thinking and thinking["type"] == "enabled":
|
|
1384
|
+
warnings.warn(
|
|
1385
|
+
f"Using Claude with {model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking",
|
|
1386
|
+
UserWarning,
|
|
1387
|
+
stacklevel=3,
|
|
1388
|
+
)
|
|
1389
|
+
|
|
1342
1390
|
extra_headers = {
|
|
1343
1391
|
"X-Stainless-Helper": "BetaToolRunner",
|
|
1344
1392
|
**strip_not_given({"anthropic-beta": ",".join(str(e) for e in betas) if is_given(betas) else NOT_GIVEN}),
|
|
@@ -1362,6 +1410,7 @@ class Messages(SyncAPIResource):
|
|
|
1362
1410
|
"model": model,
|
|
1363
1411
|
"container": container,
|
|
1364
1412
|
"context_management": context_management,
|
|
1413
|
+
"inference_geo": inference_geo,
|
|
1365
1414
|
"mcp_servers": mcp_servers,
|
|
1366
1415
|
"metadata": metadata,
|
|
1367
1416
|
"output_config": output_config,
|
|
@@ -1414,6 +1463,7 @@ class Messages(SyncAPIResource):
|
|
|
1414
1463
|
model: ModelParam,
|
|
1415
1464
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
1416
1465
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
1466
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
1417
1467
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
1418
1468
|
metadata: BetaMetadataParam | Omit = omit,
|
|
1419
1469
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -1445,6 +1495,13 @@ class Messages(SyncAPIResource):
|
|
|
1445
1495
|
stacklevel=3,
|
|
1446
1496
|
)
|
|
1447
1497
|
|
|
1498
|
+
if model in MODELS_TO_WARN_WITH_THINKING_ENABLED and thinking and thinking["type"] == "enabled":
|
|
1499
|
+
warnings.warn(
|
|
1500
|
+
f"Using Claude with {model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking",
|
|
1501
|
+
UserWarning,
|
|
1502
|
+
stacklevel=3,
|
|
1503
|
+
)
|
|
1504
|
+
|
|
1448
1505
|
"""Create a Message stream"""
|
|
1449
1506
|
extra_headers = {
|
|
1450
1507
|
"X-Stainless-Helper-Method": "stream",
|
|
@@ -1488,6 +1545,7 @@ class Messages(SyncAPIResource):
|
|
|
1488
1545
|
"output_format": omit,
|
|
1489
1546
|
"container": container,
|
|
1490
1547
|
"context_management": context_management,
|
|
1548
|
+
"inference_geo": inference_geo,
|
|
1491
1549
|
"mcp_servers": mcp_servers,
|
|
1492
1550
|
"service_tier": service_tier,
|
|
1493
1551
|
"stop_sequences": stop_sequences,
|
|
@@ -1808,6 +1866,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
1808
1866
|
model: ModelParam,
|
|
1809
1867
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
1810
1868
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
1869
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
1811
1870
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
1812
1871
|
metadata: BetaMetadataParam | Omit = omit,
|
|
1813
1872
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -1926,6 +1985,9 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
1926
1985
|
This allows you to control how Claude manages context across multiple requests,
|
|
1927
1986
|
such as whether to clear function results or not.
|
|
1928
1987
|
|
|
1988
|
+
inference_geo: Specifies the geographic region for inference processing. If not specified, the
|
|
1989
|
+
workspace's `default_inference_geo` is used.
|
|
1990
|
+
|
|
1929
1991
|
mcp_servers: MCP servers to be utilized in this request
|
|
1930
1992
|
|
|
1931
1993
|
metadata: An object describing metadata about the request.
|
|
@@ -2102,6 +2164,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2102
2164
|
stream: Literal[True],
|
|
2103
2165
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
2104
2166
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
2167
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
2105
2168
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
2106
2169
|
metadata: BetaMetadataParam | Omit = omit,
|
|
2107
2170
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -2223,6 +2286,9 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2223
2286
|
This allows you to control how Claude manages context across multiple requests,
|
|
2224
2287
|
such as whether to clear function results or not.
|
|
2225
2288
|
|
|
2289
|
+
inference_geo: Specifies the geographic region for inference processing. If not specified, the
|
|
2290
|
+
workspace's `default_inference_geo` is used.
|
|
2291
|
+
|
|
2226
2292
|
mcp_servers: MCP servers to be utilized in this request
|
|
2227
2293
|
|
|
2228
2294
|
metadata: An object describing metadata about the request.
|
|
@@ -2395,6 +2461,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2395
2461
|
stream: bool,
|
|
2396
2462
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
2397
2463
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
2464
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
2398
2465
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
2399
2466
|
metadata: BetaMetadataParam | Omit = omit,
|
|
2400
2467
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -2516,6 +2583,9 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2516
2583
|
This allows you to control how Claude manages context across multiple requests,
|
|
2517
2584
|
such as whether to clear function results or not.
|
|
2518
2585
|
|
|
2586
|
+
inference_geo: Specifies the geographic region for inference processing. If not specified, the
|
|
2587
|
+
workspace's `default_inference_geo` is used.
|
|
2588
|
+
|
|
2519
2589
|
mcp_servers: MCP servers to be utilized in this request
|
|
2520
2590
|
|
|
2521
2591
|
metadata: An object describing metadata about the request.
|
|
@@ -2687,6 +2757,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2687
2757
|
model: ModelParam,
|
|
2688
2758
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
2689
2759
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
2760
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
2690
2761
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
2691
2762
|
metadata: BetaMetadataParam | Omit = omit,
|
|
2692
2763
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -2725,6 +2796,13 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2725
2796
|
stacklevel=3,
|
|
2726
2797
|
)
|
|
2727
2798
|
|
|
2799
|
+
if model in MODELS_TO_WARN_WITH_THINKING_ENABLED and thinking and thinking["type"] == "enabled":
|
|
2800
|
+
warnings.warn(
|
|
2801
|
+
f"Using Claude with {model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking",
|
|
2802
|
+
UserWarning,
|
|
2803
|
+
stacklevel=3,
|
|
2804
|
+
)
|
|
2805
|
+
|
|
2728
2806
|
merged_output_config = _merge_output_configs(output_config, output_format)
|
|
2729
2807
|
|
|
2730
2808
|
extra_headers = {
|
|
@@ -2740,6 +2818,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2740
2818
|
"model": model,
|
|
2741
2819
|
"container": container,
|
|
2742
2820
|
"context_management": context_management,
|
|
2821
|
+
"inference_geo": inference_geo,
|
|
2743
2822
|
"mcp_servers": mcp_servers,
|
|
2744
2823
|
"metadata": metadata,
|
|
2745
2824
|
"output_config": merged_output_config,
|
|
@@ -2775,6 +2854,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2775
2854
|
model: ModelParam,
|
|
2776
2855
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
2777
2856
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
2857
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
2778
2858
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
2779
2859
|
metadata: BetaMetadataParam | Omit = omit,
|
|
2780
2860
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -2811,9 +2891,16 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2811
2891
|
DeprecationWarning,
|
|
2812
2892
|
stacklevel=3,
|
|
2813
2893
|
)
|
|
2894
|
+
|
|
2895
|
+
if model in MODELS_TO_WARN_WITH_THINKING_ENABLED and thinking and thinking["type"] == "enabled":
|
|
2896
|
+
warnings.warn(
|
|
2897
|
+
f"Using Claude with {model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking",
|
|
2898
|
+
UserWarning,
|
|
2899
|
+
stacklevel=3,
|
|
2900
|
+
)
|
|
2814
2901
|
betas = [beta for beta in betas] if is_given(betas) else []
|
|
2815
2902
|
|
|
2816
|
-
if "structured-outputs-2025-12-15" not in betas
|
|
2903
|
+
if "structured-outputs-2025-12-15" not in betas:
|
|
2817
2904
|
# Ensure structured outputs beta is included for parse method
|
|
2818
2905
|
betas.append("structured-outputs-2025-12-15")
|
|
2819
2906
|
|
|
@@ -2861,6 +2948,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2861
2948
|
"model": model,
|
|
2862
2949
|
"container": container,
|
|
2863
2950
|
"context_management": context_management,
|
|
2951
|
+
"inference_geo": inference_geo,
|
|
2864
2952
|
"mcp_servers": mcp_servers,
|
|
2865
2953
|
"output_config": merged_output_config,
|
|
2866
2954
|
"metadata": metadata,
|
|
@@ -2901,6 +2989,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2901
2989
|
max_iterations: int | Omit = omit,
|
|
2902
2990
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
2903
2991
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
2992
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
2904
2993
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
2905
2994
|
metadata: BetaMetadataParam | Omit = omit,
|
|
2906
2995
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -2936,6 +3025,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2936
3025
|
max_iterations: int | Omit = omit,
|
|
2937
3026
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
2938
3027
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
3028
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
2939
3029
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
2940
3030
|
metadata: BetaMetadataParam | Omit = omit,
|
|
2941
3031
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -2970,6 +3060,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
2970
3060
|
max_iterations: int | Omit = omit,
|
|
2971
3061
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
2972
3062
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
3063
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
2973
3064
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
2974
3065
|
metadata: BetaMetadataParam | Omit = omit,
|
|
2975
3066
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -3002,6 +3093,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
3002
3093
|
max_iterations: int | Omit = omit,
|
|
3003
3094
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
3004
3095
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
3096
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
3005
3097
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
3006
3098
|
metadata: BetaMetadataParam | Omit = omit,
|
|
3007
3099
|
output_config: BetaOutputConfigParam | Omit = omit,
|
|
@@ -3034,6 +3126,13 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
3034
3126
|
stacklevel=3,
|
|
3035
3127
|
)
|
|
3036
3128
|
|
|
3129
|
+
if model in MODELS_TO_WARN_WITH_THINKING_ENABLED and thinking and thinking["type"] == "enabled":
|
|
3130
|
+
warnings.warn(
|
|
3131
|
+
f"Using Claude with {model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking",
|
|
3132
|
+
UserWarning,
|
|
3133
|
+
stacklevel=3,
|
|
3134
|
+
)
|
|
3135
|
+
|
|
3037
3136
|
extra_headers = {
|
|
3038
3137
|
"X-Stainless-Helper": "BetaToolRunner",
|
|
3039
3138
|
**strip_not_given({"anthropic-beta": ",".join(str(e) for e in betas) if is_given(betas) else NOT_GIVEN}),
|
|
@@ -3057,6 +3156,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
3057
3156
|
"model": model,
|
|
3058
3157
|
"container": container,
|
|
3059
3158
|
"context_management": context_management,
|
|
3159
|
+
"inference_geo": inference_geo,
|
|
3060
3160
|
"mcp_servers": mcp_servers,
|
|
3061
3161
|
"metadata": metadata,
|
|
3062
3162
|
"output_config": output_config,
|
|
@@ -3112,6 +3212,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
3112
3212
|
output_format: None | type[ResponseFormatT] | BetaJSONOutputFormatParam | Omit = omit,
|
|
3113
3213
|
container: Optional[message_create_params.Container] | Omit = omit,
|
|
3114
3214
|
context_management: Optional[BetaContextManagementConfigParam] | Omit = omit,
|
|
3215
|
+
inference_geo: Optional[str] | Omit = omit,
|
|
3115
3216
|
mcp_servers: Iterable[BetaRequestMCPServerURLDefinitionParam] | Omit = omit,
|
|
3116
3217
|
service_tier: Literal["auto", "standard_only"] | Omit = omit,
|
|
3117
3218
|
stop_sequences: SequenceNotStr[str] | Omit = omit,
|
|
@@ -3140,6 +3241,13 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
3140
3241
|
stacklevel=3,
|
|
3141
3242
|
)
|
|
3142
3243
|
|
|
3244
|
+
if model in MODELS_TO_WARN_WITH_THINKING_ENABLED and thinking and thinking["type"] == "enabled":
|
|
3245
|
+
warnings.warn(
|
|
3246
|
+
f"Using Claude with {model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking",
|
|
3247
|
+
UserWarning,
|
|
3248
|
+
stacklevel=3,
|
|
3249
|
+
)
|
|
3250
|
+
|
|
3143
3251
|
extra_headers = {
|
|
3144
3252
|
"X-Stainless-Helper-Method": "stream",
|
|
3145
3253
|
"X-Stainless-Stream-Helper": "beta.messages",
|
|
@@ -3181,6 +3289,7 @@ class AsyncMessages(AsyncAPIResource):
|
|
|
3181
3289
|
"output_format": omit,
|
|
3182
3290
|
"container": container,
|
|
3183
3291
|
"context_management": context_management,
|
|
3292
|
+
"inference_geo": inference_geo,
|
|
3184
3293
|
"mcp_servers": mcp_servers,
|
|
3185
3294
|
"service_tier": service_tier,
|
|
3186
3295
|
"stop_sequences": stop_sequences,
|