This pull request addresses multiple failures in the unit tests for the libraries used in OpenAI Assistants, Anthropic, and Google. Here are the key changes made to resolve these issues:
Bug Description:
Anthropic Library:
Issue: The type ContentBlock has been updated to a Union type which cannot be instantiated. It now represents both TextBlock and ToolUseBlock.
Fixed all errors in #1536
This pull request addresses multiple failures in the unit tests for the libraries used in OpenAI Assistants, Anthropic, and Google. Here are the key changes made to resolve these issues:
Bug Description:
Anthropic Library:
ContentBlock
has been updated to a Union type which cannot be instantiated. It now represents bothTextBlock
andToolUseBlock
.ContentBlock
withTextBlock
in the relevant sections of the code.OpenAI Library:
retrieval
tool renamed tofile_search
assistant.file_ids
parameter changed totool_resources
message.file_ids
parameter changed toattachments
Gemini Library:
Issue: An error exists in the Gemini library where it incorrectly parses a protobuf object as a dictionary.
Fix: Implemented a workaround to avoid this parsing bug.
Reference:
To Reproduce: Run the unit tests for version 3.0.1 to observe the failures.
Changes Made:
ContentBlock
withTextBlock
in the Anthropic library code.Environment:
This pull request ensures that all unit tests pass successfully, and the libraries are compatible with the latest updates and changes.