Skip to content

fix: pdf attachment handling in tool parts for anthropic models#10426

Closed
i-m-sid wants to merge 1 commit into
anomalyco:devfrom
i-m-sid:sid/pdf-tool-fix
Closed

fix: pdf attachment handling in tool parts for anthropic models#10426
i-m-sid wants to merge 1 commit into
anomalyco:devfrom
i-m-sid:sid/pdf-tool-fix

Conversation

@i-m-sid

@i-m-sid i-m-sid commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes PDF attachment handling for Anthropic models by relocating PDF attachments from tool results to the preceding user message. This works around Anthropic's limitation where PDFs cannot be included in tool results.

How did you verify your code works?

Verified running long session with multiple pdf reads in them

#10294

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant