Skip to content

feat(formatter): translate local file path to base64 in image blocks in Anthropic formatter#1361

Open
qbc2016 wants to merge 2 commits intoagentscope-ai:mainfrom
qbc2016:bc/anthropic_image
Open

feat(formatter): translate local file path to base64 in image blocks in Anthropic formatter#1361
qbc2016 wants to merge 2 commits intoagentscope-ai:mainfrom
qbc2016:bc/anthropic_image

Conversation

@qbc2016
Copy link
Copy Markdown
Member

@qbc2016 qbc2016 commented Mar 23, 2026

AgentScope Version

1.0.17

Description

Anthropic SDK does not support local file path in image block, so we should translate it to base64 data.

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with pre-commit run --all-files command
  • All tests are passing
  • Docstrings are in Google style
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@qbc2016
Copy link
Copy Markdown
Member Author

qbc2016 commented Mar 27, 2026

/gemini review

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.

1 participant