Skip to content

Conversation

Rakesh-Polepeddi
Copy link

Add comprehensive unit tests for the normalize_tool_arguments function to cover:

  • JSON string arguments
  • Python dict string arguments with single quotes
  • Extra surrounding quotes (wrapped JSON)
  • Nested dict/list structures
  • Empty dict
  • Already valid JSON
  • Special characters and escaped strings
  • Mixed data types (numbers, booleans, null)

These tests ensure the granite model tool call argument normalization works correctly.

Add comprehensive unit tests for the normalize_tool_arguments function to cover:
- JSON string arguments
- Python dict string arguments with single quotes
- Extra surrounding quotes (wrapped JSON)
- Nested dict/list structures
- Empty dict
- Already valid JSON
- Special characters and escaped strings
- Mixed data types (numbers, booleans, null)

These tests ensure the granite model tool call argument normalization works correctly.
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