Skip to content

feat(anthropic): Gate prompt collection on data_collection option - #7054

Open
ericapisani wants to merge 2 commits into
masterfrom
py-2588-anthropic
Open

feat(anthropic): Gate prompt collection on data_collection option#7054
ericapisani wants to merge 2 commits into
masterfrom
py-2588-anthropic

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Replace include_prompts and send_default_pii checks with the new data_collection configuration for controlling whether messages and system instructions are captured. Maintain backwards compatibility: when data_collection is not configured, fall back to the legacy pii/include_prompts behavior. Tools are always collected regardless of the message collection setting.

Refs PY-2588

Replace include_prompts and send_default_pii checks with the new data_collection
configuration for controlling whether messages and system instructions are
captured. Maintain backwards compatibility: when data_collection is not
configured, fall back to the legacy pii/include_prompts behavior. Tools are
always collected regardless of the message collection setting.

Refs PY-2588
@ericapisani
ericapisani requested a review from a team as a code owner August 5, 2026 19:49
@linear-code

linear-code Bot commented Aug 5, 2026

Copy link
Copy Markdown

PY-2588

Comment on lines -409 to -413
and "content" in message
and isinstance(message["content"], (list, tuple))
):
transformed_content = []
for item in message["content"]:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Tool collection is incorrectly gated by the gen_ai.inputs setting, contradicting the PR's goal to always collect them and causing a regression for users migrating to data_collection.
Severity: MEDIUM

Suggested Fix

Move the tool collection logic outside of the conditional check for gen_ai.inputs within the data_collection path. This will make tool collection unconditional, aligning the behavior with the legacy path and the PR's description.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: sentry_sdk/integrations/anthropic.py#L409-L413

Potential issue: The code in `anthropic.py` gates tool collection behind the
`client.options["data_collection"]["gen_ai"]["inputs"]` setting. This contradicts the
PR's stated goal that "Tools are always collected regardless of the message collection
setting." When users enable the new `data_collection` feature and set `gen_ai.inputs` to
`False`, they will unexpectedly lose tool data that was previously collected by default.
This creates a behavioral inconsistency between the legacy path and the new
`data_collection` path, and represents a regression for migrating users. The tests
confirm this conditional behavior, but they contradict the intended functionality
described in the pull request.

Also affects:

  • tests/integrations/anthropic/test_anthropic.py:329~336

Did we get this right? 👍 / 👎 to inform future reviews.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

93348 passed | ❌ 168 failed | ⏭️ 4764 skipped | Total: 98280 | Pass Rate: 94.98% | Execution Time: 341m 14s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -7121
Passed Tests 📉 -5574
Failed Tests 📈 +168
Skipped Tests 📉 -1715

➕ New Tests (168)

View new tests
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing
  • test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]
    • File: tests.integrations.anthropic.test_anthropic
    • Status: ❌ Failing

❌ Failed Tests

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:504: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:504: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1195: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1195: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.11-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1195: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.11-anthropic-v0.16.0/lib/python3.11/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:504: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:504: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: AsyncMessages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1195: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1195: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.12-anthropic-v0.16.0
Error: TypeError: Messages.create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1195: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^
.tox/py3.12-anthropic-v0.16.0/lib/python3.12/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
E   TypeError: Messages.create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[gen-ai-inputs-omitted-defaults-to-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:405: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection[legacy-pii-disabled-tools-still-collected-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:415: in test_nonstreaming_create_message_data_collection
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[gen-ai-inputs-enabled-tools-collected-without-messages-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:504: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:494: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_tools_without_messages[legacy-tools-collected-without-messages-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:504: in test_nonstreaming_create_message_data_collection_tools_without_messages
    client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-and-include-prompts-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:599: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_nonstreaming_create_message_data_collection_async[legacy-pii-disabled-tools-still-collected-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:609: in test_nonstreaming_create_message_data_collection_async
    await client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:996: in _sentry_wrapped_create_async
    return await _sentry_patched_create_async(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:844: in _sentry_patched_create_async
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:838: in _sentry_patched_create_async
    result = await f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-enabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1195: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[gen-ai-inputs-disabled-overrides-pii-and-include-prompts-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1195: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-True-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-True]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1179: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

test_streaming_create_message_data_collection[legacy-pii-and-include-prompts-enabled-False-False]

File: tests.integrations.anthropic.test_anthropic
Suite: py3.8-anthropic-v0.16.0
Error: TypeError: create() got an unexpected keyword argument 'tools'

Stack Trace
tests/integrations/anthropic/test_anthropic.py:1195: in test_streaming_create_message_data_collection
    message = client.messages.create(**create_kwargs)
sentry_sdk/integrations/anthropic.py:902: in _sentry_wrapped_create_sync
    return _sentry_patched_create_sync(f, *args, **kwargs)
sentry_sdk/integrations/anthropic.py:746: in _sentry_patched_create_sync
    reraise(*exc_info)
sentry_sdk/utils.py:1829: in reraise
    raise value
sentry_sdk/integrations/anthropic.py:740: in _sentry_patched_create_sync
    result = f(*args, **kwargs)
.tox/py3.8-anthropic-v0.16.0/lib/python3.8/site-packages/anthropic/_utils/_utils.py:275: in wrapper
    return func(*args, **kwargs)
E   TypeError: create() got an unexpected keyword argument 'tools'

✅ Patch coverage is 82.46%. Project has 2519 uncovered lines.
❌ Project coverage is 89.9%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
sentry_sdk/integrations/anthropic.py 82.46% ⚠️ 10 Missing and 11 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    89.92%    89.90%    -0.02%
==========================================
  Files          193       193         —
  Lines        24908     24938       +30
  Branches      8986      9016       +30
==========================================
+ Hits         22398     22419       +21
- Misses        2510      2519        +9
- Partials      1430      1438        +8

Generated by Codecov Action

@alexander-alderman-webb

Copy link
Copy Markdown
Contributor

This is currently failing tests so I'll review when they're green

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants