Skip to content

Conversation

@jayjfletcher
Copy link

… in schemas

  • Added test cases for tool calls with various inputs in both Anthropics and Converses.
  • Improved handling of empty tool call arguments by converting them to stdClass objects.
  • Updated ToolMap and MessageMap to standardize the mapping of parameterless tools.
  • Introduced providerToolCalls as an empty array in text handlers for consistency.

Description

I ran into some issues (mostly mapping) due to some changes in the main Prism package not being reflected in the Bedrock package, so I went ahead and got things up to snuff.

Breaking Changes

… in schemas

- Added test cases for tool calls with various inputs in both Anthropics and Converses.
- Improved handling of empty tool call arguments by converting them to stdClass objects.
- Updated `ToolMap` and `MessageMap` to standardize the mapping of parameterless tools.
- Introduced `providerToolCalls` as an empty array in text handlers for consistency.
Copy link
Contributor

@sixlive sixlive left a comment

Choose a reason for hiding this comment

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

SICK!! Thanks for this. Sorry it took me so long to address!

Copy link
Contributor

@sixlive sixlive left a comment

Choose a reason for hiding this comment

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

Can you give me access to push to your branch there are some changes that I would like to make but I want to still give you credit for the PR

@sixlive
Copy link
Contributor

sixlive commented Dec 30, 2025

Sorry, I wanted to get this merged and tagged. Closing in favor of #42

@sixlive sixlive closed this Dec 30, 2025
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.

3 participants