anthropic 0.67.0__tar.gz → 0.68.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.68.0/.release-please-manifest.json +3 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/CHANGELOG.md +15 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/PKG-INFO +51 -1
- {anthropic-0.67.0 → anthropic-0.68.0}/README.md +49 -0
- anthropic-0.68.0/examples/tools_runner.py +56 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/pyproject.toml +8 -4
- {anthropic-0.67.0 → anthropic-0.68.0}/requirements-dev.lock +25 -8
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/__init__.py +3 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_models.py +13 -4
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_version.py +1 -1
- anthropic-0.68.0/src/anthropic/lib/tools/__init__.py +20 -0
- anthropic-0.68.0/src/anthropic/lib/tools/_beta_functions.py +289 -0
- anthropic-0.68.0/src/anthropic/lib/tools/_beta_runner.py +405 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/beta/messages/messages.py +370 -1
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/beta/messages/test_batches.py +8 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/beta/test_messages.py +24 -0
- anthropic-0.68.0/tests/lib/snapshots.py +196 -0
- anthropic-0.68.0/tests/lib/streaming/__init__.py +0 -0
- anthropic-0.68.0/tests/lib/tools/__init__.py +0 -0
- anthropic-0.68.0/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_max_iterations/d105e140-a30c-4d6b-91df-257247da3623.json +4 -0
- anthropic-0.68.0/tests/lib/tools/__inline_snapshot__/test_runners/TestSyncRunTools.test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +4 -0
- anthropic-0.68.0/tests/lib/tools/__inline_snapshot__/test_runners/test_streaming_call_sync/e2140c0f-07db-47ee-b86b-c2ec476866d5.json +4 -0
- anthropic-0.68.0/tests/lib/tools/__inline_snapshot__/test_runners/test_streaming_call_sync_events/9cb114c8-69bd-4111-841b-edee30333afd.json +4 -0
- anthropic-0.68.0/tests/lib/tools/test_functions.py +447 -0
- anthropic-0.68.0/tests/lib/tools/test_runners.py +570 -0
- anthropic-0.68.0/tests/lib/utils.py +76 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_client.py +6 -47
- anthropic-0.68.0/tools.md +77 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/uv.lock +466 -281
- anthropic-0.67.0/.release-please-manifest.json +0 -3
- anthropic-0.67.0/examples/mcp.py +0 -32
- {anthropic-0.67.0 → anthropic-0.68.0}/.gitignore +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/CONTRIBUTING.md +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/LICENSE +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/SECURITY.md +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/api.md +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/bin/check-release-environment +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/bin/publish-pypi +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/.keep +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/batch_results.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/bedrock.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/images.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/logo.png +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/messages.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/messages_stream.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/text_completions_demo_async.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/text_completions_demo_sync.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/text_completions_streaming.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/thinking.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/thinking_stream.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/tools.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/tools_stream.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/vertex.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/web_search.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/examples/web_search_stream.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/helpers.md +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/release-please-config.json +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_base_client.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_client.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_compat.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_constants.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_decoders/jsonl.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_exceptions.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_files.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_legacy_response.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_qs.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_resource.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_response.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_streaming.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_types.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_compat.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_datetime_parse.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_httpx.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_logs.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_proxy.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_reflection.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_resources_proxy.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_streams.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_sync.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_transform.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_typing.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/_utils/_utils.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/.keep +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/_extras/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/_extras/_common.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/_extras/_google_auth.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/bedrock/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/bedrock/_auth.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/bedrock/_beta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/bedrock/_beta_messages.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/bedrock/_client.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/bedrock/_stream.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/bedrock/_stream_decoder.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/streaming/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/streaming/_beta_messages.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/streaming/_beta_types.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/streaming/_messages.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/streaming/_types.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/vertex/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/vertex/_auth.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/vertex/_beta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/vertex/_beta_messages.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/lib/vertex/_client.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/pagination.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/py.typed +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/beta/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/beta/beta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/beta/files.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/beta/messages/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/beta/messages/batches.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/beta/models.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/completions.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/messages/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/messages/batches.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/messages/messages.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/resources/models.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/anthropic_beta_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/base64_image_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/base64_pdf_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_base64_image_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_base64_pdf_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_base64_pdf_source.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_base64_pdf_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_bash_code_execution_output_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_bash_code_execution_output_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_bash_code_execution_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_bash_code_execution_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_bash_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_cache_control_ephemeral_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_cache_creation.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citation_char_location.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citation_char_location_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citation_config.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citation_content_block_location.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citation_content_block_location_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citation_page_location.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citation_page_location_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citation_search_result_location.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citation_search_result_location_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citation_web_search_result_location_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citations_config_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citations_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_citations_web_search_result_location.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_output_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_output_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_tool_20250522_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_tool_20250825_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_content.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_code.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_container.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_container_upload_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_container_upload_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_content_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_content_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_content_block_source_content_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_content_block_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_document_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_file_document_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_file_image_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_image_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_input_json_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_mcp_tool_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_mcp_tool_use_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_mcp_tool_use_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_message.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_message_delta_usage.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_message_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_message_tokens_count.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_metadata_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_model_info.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_plain_text_source.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_plain_text_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_raw_content_block_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_raw_content_block_delta_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_raw_content_block_start_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_raw_content_block_stop_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_raw_message_delta_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_raw_message_start_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_raw_message_stop_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_raw_message_stream_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_redacted_thinking_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_redacted_thinking_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_request_document_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_request_mcp_server_tool_configuration_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_request_mcp_server_url_definition_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_request_mcp_tool_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_search_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_server_tool_usage.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_server_tool_use_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_server_tool_use_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_signature_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_stop_reason.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_citation.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_citation_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_editor_code_execution_create_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_editor_code_execution_str_replace_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_editor_code_execution_tool_result_error_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_text_editor_code_execution_view_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_thinking_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_thinking_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_thinking_config_disabled_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_thinking_config_enabled_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_thinking_config_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_thinking_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_bash_20241022_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_bash_20250124_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_choice_any_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_choice_auto_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_choice_none_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_choice_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_choice_tool_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_computer_use_20241022_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_computer_use_20250124_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_text_editor_20241022_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_text_editor_20250728_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_union_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_use_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_tool_use_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_url_image_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_url_pdf_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_usage.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_fetch_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_fetch_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_fetch_tool_20250910_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_fetch_tool_result_error_code.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_search_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_search_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_search_tool_20250305_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_search_tool_request_error_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_search_tool_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_content.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_search_tool_result_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/beta_web_search_tool_result_error_code.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/deleted_file.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/file_list_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/file_metadata.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/file_upload_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/message_count_tokens_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/message_create_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/batch_create_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/batch_list_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/beta_deleted_message_batch.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/beta_message_batch.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/beta_message_batch_canceled_result.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/beta_message_batch_errored_result.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/beta_message_batch_expired_result.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/beta_message_batch_individual_response.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/beta_message_batch_request_counts.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/beta_message_batch_result.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/messages/beta_message_batch_succeeded_result.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta/model_list_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_api_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_authentication_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_billing_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_error_response.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_gateway_timeout_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_invalid_request_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_not_found_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_overloaded_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_permission_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/beta_rate_limit_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/cache_control_ephemeral_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/cache_creation.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citation_char_location.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citation_char_location_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citation_content_block_location.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citation_content_block_location_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citation_page_location.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citation_page_location_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citation_search_result_location_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citation_web_search_result_location_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citations_config_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citations_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citations_search_result_location.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/citations_web_search_result_location.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/completion.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/completion_create_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/content_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/content_block_delta_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/content_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/content_block_source_content_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/content_block_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/content_block_start_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/content_block_stop_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/document_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/image_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/input_json_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message_count_tokens_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message_count_tokens_tool_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message_create_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message_delta_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message_delta_usage.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message_start_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message_stop_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message_stream_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/message_tokens_count.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/batch_create_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/batch_list_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/deleted_message_batch.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/message_batch.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/message_batch_canceled_result.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/message_batch_errored_result.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/message_batch_expired_result.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/message_batch_individual_response.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/message_batch_request_counts.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/message_batch_result.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/messages/message_batch_succeeded_result.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/metadata_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/model.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/model_info.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/model_list_params.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/model_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/plain_text_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/raw_content_block_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/raw_content_block_delta_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/raw_content_block_start_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/raw_content_block_stop_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/raw_message_delta_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/raw_message_start_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/raw_message_stop_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/raw_message_stream_event.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/redacted_thinking_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/redacted_thinking_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/search_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/server_tool_usage.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/server_tool_use_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/server_tool_use_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/api_error_object.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/authentication_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/billing_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/error_object.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/error_response.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/gateway_timeout_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/invalid_request_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/not_found_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/overloaded_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/permission_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/shared/rate_limit_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/signature_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/stop_reason.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/text_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/text_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/text_citation.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/text_citation_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/text_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/thinking_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/thinking_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/thinking_config_disabled_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/thinking_config_enabled_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/thinking_config_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/thinking_delta.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_bash_20250124_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_choice_any_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_choice_auto_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_choice_none_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_choice_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_choice_tool_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_text_editor_20250124_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_text_editor_20250429_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_text_editor_20250728_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_union_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_use_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/tool_use_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/url_image_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/url_pdf_source_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/usage.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/web_search_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/web_search_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/web_search_tool_20250305_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/web_search_tool_request_error_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/web_search_tool_result_block.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/web_search_tool_result_block_content.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/web_search_tool_result_block_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/web_search_tool_result_block_param_content_param.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/src/anthropic/types/web_search_tool_result_error.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/beta/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/beta/messages/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/beta/test_files.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/beta/test_models.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/messages/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/messages/test_batches.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/test_completions.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/test_messages.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/api_resources/test_models.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/conftest.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/decoders/test_jsonl.py +0 -0
- {anthropic-0.67.0/tests/lib/streaming → anthropic-0.68.0/tests/lib}/__init__.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/lib/streaming/fixtures/basic_response.txt +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/lib/streaming/fixtures/incomplete_partial_json_response.txt +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/lib/streaming/fixtures/tool_use_response.txt +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/lib/streaming/helpers.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/lib/streaming/test_beta_messages.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/lib/streaming/test_messages.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/lib/streaming/test_partial_json.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/lib/test_bedrock.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/lib/test_vertex.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/sample_file.txt +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_deepcopy.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_extract_files.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_files.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_legacy_response.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_models.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_qs.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_required_args.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_response.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_streaming.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_transform.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_utils/test_proxy.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/test_utils/test_typing.py +0 -0
- {anthropic-0.67.0 → anthropic-0.68.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.68.0 (2025-09-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.67.0...v0.68.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.67.0...v0.68.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* add tool running helpers ([d9c9ce6](https://github.com/anthropics/anthropic-sdk-python/commit/d9c9ce63de5b5888dff0d9ba2d79724520152420))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** fix tests ([9858c79](https://github.com/anthropics/anthropic-sdk-python/commit/9858c791309a1af2fbc2cb4d042812de83d1a635))
|
|
15
|
+
* **internal:** update pydantic dependency ([f59c2f1](https://github.com/anthropics/anthropic-sdk-python/commit/f59c2f196a09c80f6b46cac19e9d0ace18200da8))
|
|
16
|
+
* **tests:** simplify `get_platform` test ([7596748](https://github.com/anthropics/anthropic-sdk-python/commit/7596748699ff3113b6cb6c1511cf4a33d0453233))
|
|
17
|
+
|
|
3
18
|
## 0.67.0 (2025-09-10)
|
|
4
19
|
|
|
5
20
|
Full Changelog: [v0.66.0...v0.67.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.66.0...v0.67.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: anthropic
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.68.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
|
|
@@ -24,6 +24,7 @@ Classifier: Typing :: Typed
|
|
|
24
24
|
Requires-Python: >=3.8
|
|
25
25
|
Requires-Dist: anyio<5,>=3.5.0
|
|
26
26
|
Requires-Dist: distro<2,>=1.7.0
|
|
27
|
+
Requires-Dist: docstring-parser<1,>=0.15
|
|
27
28
|
Requires-Dist: httpx<1,>=0.25.0
|
|
28
29
|
Requires-Dist: jiter<1,>=0.4.0
|
|
29
30
|
Requires-Dist: pydantic<3,>=1.9.0
|
|
@@ -208,6 +209,55 @@ async for event in stream:
|
|
|
208
209
|
print(event.type)
|
|
209
210
|
```
|
|
210
211
|
|
|
212
|
+
### Tool helpers
|
|
213
|
+
|
|
214
|
+
This library provides helper functions for defining and running tools as pure python functions, for example:
|
|
215
|
+
|
|
216
|
+
```py
|
|
217
|
+
import json
|
|
218
|
+
import rich
|
|
219
|
+
from typing_extensions import Literal
|
|
220
|
+
from anthropic import Anthropic, beta_tool
|
|
221
|
+
|
|
222
|
+
client = Anthropic()
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
@beta_tool
|
|
226
|
+
def get_weather(location: str) -> str:
|
|
227
|
+
"""Lookup the weather for a given city in either celsius or fahrenheit
|
|
228
|
+
|
|
229
|
+
Args:
|
|
230
|
+
location: The city and state, e.g. San Francisco, CA
|
|
231
|
+
Returns:
|
|
232
|
+
A dictionary containing the location, temperature, and weather condition.
|
|
233
|
+
"""
|
|
234
|
+
# Here you would typically make an API call to a weather service
|
|
235
|
+
# For demonstration, we return a mock response
|
|
236
|
+
return json.dumps(
|
|
237
|
+
{
|
|
238
|
+
"location": location,
|
|
239
|
+
"temperature": "68°F",
|
|
240
|
+
"condition": "Sunny",
|
|
241
|
+
}
|
|
242
|
+
)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
runner = client.beta.messages.tool_runner(
|
|
246
|
+
max_tokens=1024,
|
|
247
|
+
model="claude-sonnet-4-20250514",
|
|
248
|
+
tools=[get_weather],
|
|
249
|
+
messages=[
|
|
250
|
+
{"role": "user", "content": "What is the weather in SF?"},
|
|
251
|
+
],
|
|
252
|
+
)
|
|
253
|
+
for message in runner:
|
|
254
|
+
rich.print(message)
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
On every iteration, an API request will be made, if Claude wants to call one of the given tools then it will be automatically called, and the result will be returned directly to the model in the next iteration.
|
|
258
|
+
|
|
259
|
+
For more information see the [full docs](https://github.com/anthropics/anthropic-sdk-python/tree/main/tools.md).
|
|
260
|
+
|
|
211
261
|
### Streaming Helpers
|
|
212
262
|
|
|
213
263
|
This library provides several conveniences for streaming messages, for example:
|
|
@@ -167,6 +167,55 @@ async for event in stream:
|
|
|
167
167
|
print(event.type)
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
+
### Tool helpers
|
|
171
|
+
|
|
172
|
+
This library provides helper functions for defining and running tools as pure python functions, for example:
|
|
173
|
+
|
|
174
|
+
```py
|
|
175
|
+
import json
|
|
176
|
+
import rich
|
|
177
|
+
from typing_extensions import Literal
|
|
178
|
+
from anthropic import Anthropic, beta_tool
|
|
179
|
+
|
|
180
|
+
client = Anthropic()
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
@beta_tool
|
|
184
|
+
def get_weather(location: str) -> str:
|
|
185
|
+
"""Lookup the weather for a given city in either celsius or fahrenheit
|
|
186
|
+
|
|
187
|
+
Args:
|
|
188
|
+
location: The city and state, e.g. San Francisco, CA
|
|
189
|
+
Returns:
|
|
190
|
+
A dictionary containing the location, temperature, and weather condition.
|
|
191
|
+
"""
|
|
192
|
+
# Here you would typically make an API call to a weather service
|
|
193
|
+
# For demonstration, we return a mock response
|
|
194
|
+
return json.dumps(
|
|
195
|
+
{
|
|
196
|
+
"location": location,
|
|
197
|
+
"temperature": "68°F",
|
|
198
|
+
"condition": "Sunny",
|
|
199
|
+
}
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
runner = client.beta.messages.tool_runner(
|
|
204
|
+
max_tokens=1024,
|
|
205
|
+
model="claude-sonnet-4-20250514",
|
|
206
|
+
tools=[get_weather],
|
|
207
|
+
messages=[
|
|
208
|
+
{"role": "user", "content": "What is the weather in SF?"},
|
|
209
|
+
],
|
|
210
|
+
)
|
|
211
|
+
for message in runner:
|
|
212
|
+
rich.print(message)
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
On every iteration, an API request will be made, if Claude wants to call one of the given tools then it will be automatically called, and the result will be returned directly to the model in the next iteration.
|
|
216
|
+
|
|
217
|
+
For more information see the [full docs](tools.md).
|
|
218
|
+
|
|
170
219
|
### Streaming Helpers
|
|
171
220
|
|
|
172
221
|
This library provides several conveniences for streaming messages, for example:
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from typing_extensions import Literal
|
|
3
|
+
|
|
4
|
+
import rich
|
|
5
|
+
|
|
6
|
+
from anthropic import Anthropic, beta_tool
|
|
7
|
+
|
|
8
|
+
client = Anthropic()
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@beta_tool
|
|
12
|
+
def get_weather(location: str, units: Literal["c", "f"]) -> str:
|
|
13
|
+
"""Lookup the weather for a given city in either celsius or fahrenheit
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
location: The city and state, e.g. San Francisco, CA
|
|
17
|
+
units: Unit for the output, either 'c' for celsius or 'f' for fahrenheit
|
|
18
|
+
Returns:
|
|
19
|
+
A dictionary containing the location, temperature, and weather condition.
|
|
20
|
+
"""
|
|
21
|
+
# Simulate a weather API call
|
|
22
|
+
print(f"Fetching weather for {location} in {units}")
|
|
23
|
+
|
|
24
|
+
# Here you would typically make an API call to a weather service
|
|
25
|
+
# For demonstration, we return a mock response
|
|
26
|
+
if units == "c":
|
|
27
|
+
return json.dumps(
|
|
28
|
+
{
|
|
29
|
+
"location": location,
|
|
30
|
+
"temperature": "20°C",
|
|
31
|
+
"condition": "Sunny",
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
else:
|
|
35
|
+
return json.dumps(
|
|
36
|
+
{
|
|
37
|
+
"location": location,
|
|
38
|
+
"temperature": "68°F",
|
|
39
|
+
"condition": "Sunny",
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def main() -> None:
|
|
45
|
+
runner = client.beta.messages.tool_runner(
|
|
46
|
+
max_tokens=1024,
|
|
47
|
+
model="claude-3-5-sonnet-latest",
|
|
48
|
+
# alternatively, you can use `tools=[anthropic.beta_tool(get_weather)]`
|
|
49
|
+
tools=[get_weather],
|
|
50
|
+
messages=[{"role": "user", "content": "What is the weather in SF?"}],
|
|
51
|
+
)
|
|
52
|
+
for message in runner:
|
|
53
|
+
rich.print(message)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
main()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "anthropic"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.68.0"
|
|
4
4
|
description = "The official Python library for the anthropic API"
|
|
5
5
|
dynamic = ["readme"]
|
|
6
6
|
license = "MIT"
|
|
@@ -15,6 +15,7 @@ dependencies = [
|
|
|
15
15
|
"distro>=1.7.0, <2",
|
|
16
16
|
"sniffio",
|
|
17
17
|
"jiter>=0.4.0, <1",
|
|
18
|
+
"docstring-parser>=0.15,<1",
|
|
18
19
|
]
|
|
19
20
|
requires-python = ">= 3.8"
|
|
20
21
|
classifiers = [
|
|
@@ -60,8 +61,8 @@ dev-dependencies = [
|
|
|
60
61
|
"importlib-metadata>=6.7.0",
|
|
61
62
|
"boto3-stubs >= 1",
|
|
62
63
|
"rich>=13.7.1",
|
|
63
|
-
"nest_asyncio==1.6.0",
|
|
64
64
|
"pytest-xdist>=3.6.1",
|
|
65
|
+
"inline-snapshot>=0.28.0",
|
|
65
66
|
"griffe>=1",
|
|
66
67
|
]
|
|
67
68
|
conflicts = [
|
|
@@ -127,6 +128,9 @@ filterwarnings = [
|
|
|
127
128
|
"error"
|
|
128
129
|
]
|
|
129
130
|
|
|
131
|
+
[tool.inline-snapshot]
|
|
132
|
+
format-command="ruff format --stdin-filename {filename}"
|
|
133
|
+
|
|
130
134
|
[tool.pyright]
|
|
131
135
|
# this enables practically every flag given by pyright.
|
|
132
136
|
# there are a couple of flags that are still disabled by
|
|
@@ -135,10 +139,10 @@ typeCheckingMode = "strict"
|
|
|
135
139
|
pythonVersion = "3.8"
|
|
136
140
|
|
|
137
141
|
exclude = [
|
|
142
|
+
".git",
|
|
138
143
|
"_dev",
|
|
139
144
|
".venv",
|
|
140
145
|
".nox",
|
|
141
|
-
".git",
|
|
142
146
|
]
|
|
143
147
|
|
|
144
148
|
reportImplicitOverride = true
|
|
@@ -157,7 +161,7 @@ show_error_codes = true
|
|
|
157
161
|
#
|
|
158
162
|
# We also exclude our `tests` as mypy doesn't always infer
|
|
159
163
|
# types correctly and Pyright will still catch any type errors.
|
|
160
|
-
exclude = ['src/anthropic/_files.py', '_dev/.*.py', 'tests/.*']
|
|
164
|
+
exclude = ['src/anthropic/_files.py', '_dev/.*.py', 'tests/.*', 'examples/mcp_server_weather.py', 'examples/tools_with_mcp.py']
|
|
161
165
|
|
|
162
166
|
strict_equality = true
|
|
163
167
|
implicit_reexport = true
|
|
@@ -11,12 +11,14 @@ anyio==4.8.0 ; python_full_version >= '3.9'
|
|
|
11
11
|
# via
|
|
12
12
|
# anthropic
|
|
13
13
|
# httpx
|
|
14
|
+
asttokens==3.0.0
|
|
15
|
+
# via inline-snapshot
|
|
14
16
|
astunparse==1.6.3 ; python_full_version < '3.9'
|
|
15
17
|
# via griffe
|
|
16
|
-
boto3-stubs==1.40.
|
|
18
|
+
boto3-stubs==1.40.31
|
|
17
19
|
botocore-stubs==1.38.30 ; python_full_version < '3.9'
|
|
18
20
|
# via boto3-stubs
|
|
19
|
-
botocore-stubs==1.
|
|
21
|
+
botocore-stubs==1.40.31 ; python_full_version >= '3.9'
|
|
20
22
|
# via boto3-stubs
|
|
21
23
|
certifi==2024.12.14
|
|
22
24
|
# via
|
|
@@ -29,14 +31,18 @@ colorama==0.4.6
|
|
|
29
31
|
dirty-equals==0.9.0
|
|
30
32
|
distro==1.9.0
|
|
31
33
|
# via anthropic
|
|
34
|
+
docstring-parser==0.17.0
|
|
35
|
+
# via anthropic
|
|
32
36
|
exceptiongroup==1.2.2 ; python_full_version < '3.11'
|
|
33
37
|
# via
|
|
34
38
|
# anyio
|
|
35
39
|
# pytest
|
|
36
40
|
execnet==2.1.1
|
|
37
41
|
# via pytest-xdist
|
|
42
|
+
executing==2.2.1
|
|
43
|
+
# via inline-snapshot
|
|
38
44
|
griffe==1.4.0 ; python_full_version < '3.9'
|
|
39
|
-
griffe==1.
|
|
45
|
+
griffe==1.13.0 ; python_full_version >= '3.9'
|
|
40
46
|
h11==0.16.0
|
|
41
47
|
# via httpcore
|
|
42
48
|
httpcore==1.0.9
|
|
@@ -53,9 +59,10 @@ importlib-metadata==8.5.0 ; python_full_version < '3.9'
|
|
|
53
59
|
importlib-metadata==8.6.1 ; python_full_version >= '3.9'
|
|
54
60
|
iniconfig==2.0.0
|
|
55
61
|
# via pytest
|
|
62
|
+
inline-snapshot==0.29.0
|
|
56
63
|
jiter==0.9.1 ; python_full_version < '3.9'
|
|
57
64
|
# via anthropic
|
|
58
|
-
jiter==0.
|
|
65
|
+
jiter==0.11.0 ; python_full_version >= '3.9'
|
|
59
66
|
# via anthropic
|
|
60
67
|
markdown-it-py==3.0.0
|
|
61
68
|
# via rich
|
|
@@ -64,16 +71,19 @@ mdurl==0.1.2
|
|
|
64
71
|
mypy==1.14.1
|
|
65
72
|
mypy-extensions==1.0.0
|
|
66
73
|
# via mypy
|
|
67
|
-
nest-asyncio==1.6.0
|
|
68
74
|
nodeenv==1.9.1
|
|
69
75
|
# via pyright
|
|
70
76
|
packaging==24.2
|
|
71
77
|
# via pytest
|
|
72
78
|
pluggy==1.5.0
|
|
73
79
|
# via pytest
|
|
74
|
-
pydantic==2.10.3
|
|
80
|
+
pydantic==2.10.6 ; python_full_version < '3.9'
|
|
81
|
+
# via anthropic
|
|
82
|
+
pydantic==2.11.9 ; python_full_version >= '3.9'
|
|
75
83
|
# via anthropic
|
|
76
|
-
pydantic-core==2.27.
|
|
84
|
+
pydantic-core==2.27.2 ; python_full_version < '3.9'
|
|
85
|
+
# via pydantic
|
|
86
|
+
pydantic-core==2.33.2 ; python_full_version >= '3.9'
|
|
77
87
|
# via pydantic
|
|
78
88
|
pygments==2.19.1
|
|
79
89
|
# via
|
|
@@ -82,10 +92,12 @@ pygments==2.19.1
|
|
|
82
92
|
pyright==1.1.399
|
|
83
93
|
pytest==8.3.5 ; python_full_version < '3.9'
|
|
84
94
|
# via
|
|
95
|
+
# inline-snapshot
|
|
85
96
|
# pytest-asyncio
|
|
86
97
|
# pytest-xdist
|
|
87
98
|
pytest==8.4.1 ; python_full_version >= '3.9'
|
|
88
99
|
# via
|
|
100
|
+
# inline-snapshot
|
|
89
101
|
# pytest-asyncio
|
|
90
102
|
# pytest-xdist
|
|
91
103
|
pytest-asyncio==0.24.0
|
|
@@ -97,6 +109,7 @@ pytz==2024.2 ; python_full_version < '3.9'
|
|
|
97
109
|
# via dirty-equals
|
|
98
110
|
respx==0.22.0
|
|
99
111
|
rich==13.9.4
|
|
112
|
+
# via inline-snapshot
|
|
100
113
|
ruff==0.9.4
|
|
101
114
|
six==1.17.0
|
|
102
115
|
# via
|
|
@@ -110,11 +123,12 @@ time-machine==2.15.0 ; python_full_version < '3.9'
|
|
|
110
123
|
time-machine==2.16.0 ; python_full_version >= '3.9'
|
|
111
124
|
tomli==2.2.1 ; python_full_version < '3.11'
|
|
112
125
|
# via
|
|
126
|
+
# inline-snapshot
|
|
113
127
|
# mypy
|
|
114
128
|
# pytest
|
|
115
129
|
types-awscrt==0.27.6
|
|
116
130
|
# via botocore-stubs
|
|
117
|
-
types-s3transfer==0.13.
|
|
131
|
+
types-s3transfer==0.13.1
|
|
118
132
|
# via boto3-stubs
|
|
119
133
|
typing-extensions==4.12.2
|
|
120
134
|
# via
|
|
@@ -127,6 +141,9 @@ typing-extensions==4.12.2
|
|
|
127
141
|
# pydantic-core
|
|
128
142
|
# pyright
|
|
129
143
|
# rich
|
|
144
|
+
# typing-inspection
|
|
145
|
+
typing-inspection==0.4.1 ; python_full_version >= '3.9'
|
|
146
|
+
# via pydantic
|
|
130
147
|
wheel==0.45.1 ; python_full_version < '3.9'
|
|
131
148
|
# via astunparse
|
|
132
149
|
zipp==3.20.2 ; python_full_version < '3.9'
|
|
@@ -87,11 +87,14 @@ __all__ = [
|
|
|
87
87
|
"DefaultAioHttpClient",
|
|
88
88
|
"HUMAN_PROMPT",
|
|
89
89
|
"AI_PROMPT",
|
|
90
|
+
"beta_tool",
|
|
91
|
+
"beta_async_tool",
|
|
90
92
|
]
|
|
91
93
|
|
|
92
94
|
if not _t.TYPE_CHECKING:
|
|
93
95
|
from ._utils._resources_proxy import resources as resources
|
|
94
96
|
|
|
97
|
+
from .lib.tools import beta_tool, beta_async_tool
|
|
95
98
|
from .lib.vertex import *
|
|
96
99
|
from .lib.bedrock import *
|
|
97
100
|
from .lib.streaming import *
|
|
@@ -272,7 +272,7 @@ class BaseModel(pydantic.BaseModel):
|
|
|
272
272
|
mode: Literal["json", "python"] | str = "python",
|
|
273
273
|
include: IncEx | None = None,
|
|
274
274
|
exclude: IncEx | None = None,
|
|
275
|
-
by_alias: bool =
|
|
275
|
+
by_alias: bool | None = None,
|
|
276
276
|
exclude_unset: bool = False,
|
|
277
277
|
exclude_defaults: bool = False,
|
|
278
278
|
exclude_none: bool = False,
|
|
@@ -280,6 +280,7 @@ class BaseModel(pydantic.BaseModel):
|
|
|
280
280
|
warnings: bool | Literal["none", "warn", "error"] = True,
|
|
281
281
|
context: dict[str, Any] | None = None,
|
|
282
282
|
serialize_as_any: bool = False,
|
|
283
|
+
fallback: Callable[[Any], Any] | None = None,
|
|
283
284
|
) -> dict[str, Any]:
|
|
284
285
|
"""Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump
|
|
285
286
|
|
|
@@ -311,10 +312,12 @@ class BaseModel(pydantic.BaseModel):
|
|
|
311
312
|
raise ValueError("context is only supported in Pydantic v2")
|
|
312
313
|
if serialize_as_any != False:
|
|
313
314
|
raise ValueError("serialize_as_any is only supported in Pydantic v2")
|
|
315
|
+
if fallback is not None:
|
|
316
|
+
raise ValueError("fallback is only supported in Pydantic v2")
|
|
314
317
|
dumped = super().dict( # pyright: ignore[reportDeprecated]
|
|
315
318
|
include=include,
|
|
316
319
|
exclude=exclude,
|
|
317
|
-
by_alias=by_alias,
|
|
320
|
+
by_alias=by_alias if by_alias is not None else False,
|
|
318
321
|
exclude_unset=exclude_unset,
|
|
319
322
|
exclude_defaults=exclude_defaults,
|
|
320
323
|
exclude_none=exclude_none,
|
|
@@ -329,13 +332,14 @@ class BaseModel(pydantic.BaseModel):
|
|
|
329
332
|
indent: int | None = None,
|
|
330
333
|
include: IncEx | None = None,
|
|
331
334
|
exclude: IncEx | None = None,
|
|
332
|
-
by_alias: bool =
|
|
335
|
+
by_alias: bool | None = None,
|
|
333
336
|
exclude_unset: bool = False,
|
|
334
337
|
exclude_defaults: bool = False,
|
|
335
338
|
exclude_none: bool = False,
|
|
336
339
|
round_trip: bool = False,
|
|
337
340
|
warnings: bool | Literal["none", "warn", "error"] = True,
|
|
338
341
|
context: dict[str, Any] | None = None,
|
|
342
|
+
fallback: Callable[[Any], Any] | None = None,
|
|
339
343
|
serialize_as_any: bool = False,
|
|
340
344
|
) -> str:
|
|
341
345
|
"""Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json
|
|
@@ -364,11 +368,13 @@ class BaseModel(pydantic.BaseModel):
|
|
|
364
368
|
raise ValueError("context is only supported in Pydantic v2")
|
|
365
369
|
if serialize_as_any != False:
|
|
366
370
|
raise ValueError("serialize_as_any is only supported in Pydantic v2")
|
|
371
|
+
if fallback is not None:
|
|
372
|
+
raise ValueError("fallback is only supported in Pydantic v2")
|
|
367
373
|
return super().json( # type: ignore[reportDeprecated]
|
|
368
374
|
indent=indent,
|
|
369
375
|
include=include,
|
|
370
376
|
exclude=exclude,
|
|
371
|
-
by_alias=by_alias,
|
|
377
|
+
by_alias=by_alias if by_alias is not None else False,
|
|
372
378
|
exclude_unset=exclude_unset,
|
|
373
379
|
exclude_defaults=exclude_defaults,
|
|
374
380
|
exclude_none=exclude_none,
|
|
@@ -780,6 +786,9 @@ elif not TYPE_CHECKING: # TODO: condition is weird
|
|
|
780
786
|
def _create_pydantic_model(type_: _T) -> Type[RootModel[_T]]:
|
|
781
787
|
return RootModel[type_] # type: ignore
|
|
782
788
|
|
|
789
|
+
def TypeAdapter(*_args: Any, **_kwargs: Any) -> Any:
|
|
790
|
+
raise RuntimeError("attempted to use TypeAdapter in pydantic v1")
|
|
791
|
+
|
|
783
792
|
|
|
784
793
|
class FinalRequestOptionsInput(TypedDict, total=False):
|
|
785
794
|
method: Required[str]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from ._beta_runner import BetaToolRunner, BetaAsyncToolRunner, BetaStreamingToolRunner, BetaAsyncStreamingToolRunner
|
|
2
|
+
from ._beta_functions import (
|
|
3
|
+
BetaFunctionTool,
|
|
4
|
+
BetaAsyncFunctionTool,
|
|
5
|
+
BetaFunctionToolResultType,
|
|
6
|
+
beta_tool,
|
|
7
|
+
beta_async_tool,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"beta_tool",
|
|
12
|
+
"beta_async_tool",
|
|
13
|
+
"BetaFunctionTool",
|
|
14
|
+
"BetaAsyncFunctionTool",
|
|
15
|
+
"BetaToolRunner",
|
|
16
|
+
"BetaAsyncStreamingToolRunner",
|
|
17
|
+
"BetaStreamingToolRunner",
|
|
18
|
+
"BetaAsyncToolRunner",
|
|
19
|
+
"BetaFunctionToolResultType",
|
|
20
|
+
]
|