Skip to content

fix(bedrock): filter empty text blocks in Converse#534

Merged
mikehostetler merged 1 commit intoagentjido:mainfrom
jscheid:fix/bedrock-empty-content
Mar 23, 2026
Merged

fix(bedrock): filter empty text blocks in Converse#534
mikehostetler merged 1 commit intoagentjido:mainfrom
jscheid:fix/bedrock-empty-content

Conversation

@jscheid
Copy link
Contributor

@jscheid jscheid commented Mar 23, 2026

Description

Bedrock Converse API rejects ContentBlock with blank text field. Filter empty-text ContentParts in encode_content, matching what the native Anthropic encoder already does.

Supersedes agentjido/jido_ai#215

Type of Change

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Breaking Changes

N/A

Testing

  • Tests pass (mix test)
  • Quality checks pass (mix quality)

Checklist

  • My code follows the project's style guidelines
  • I have updated the documentation accordingly
  • I have added tests that prove my fix/feature works
  • All new and existing tests pass
  • My commits follow conventional commit format
  • I have NOT edited CHANGELOG.md (it is auto-generated by git_ops)

Related Issues

N/A

Bedrock Converse API rejects ContentBlock with blank text
field. Filter empty-text ContentParts in encode_content,
matching what the native Anthropic encoder already does.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mikehostetler mikehostetler merged commit 2957d51 into agentjido:main Mar 23, 2026
6 checks passed
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.

2 participants