Skip to content

Release v0.7.3: Remove Any types for Google ADK compatibility

Choose a tag to compare

@jwesleye jwesleye released this 27 Jun 15:38
· 152 commits to main since this release

Summary

  • Remove all Any type parameters from function signatures
  • Replace with explicit JSON-serializable Union types
  • Ensure 100% Google ADK Function Tool compatibility
  • Remove remaining default parameter values

Breaking Changes

  • Function Parameters: All Any types replaced with specific types:

    • data: Any → data: Union[dict, list, str, int, float, bool]
    • schema: Dict[str, Any] → schema: dict
    • Return types remain flexible but parameters are now explicit
  • Function Signatures:

    • safe_json_serialize(data, indent) - now requires explicit indent value
    • merge_config_files(config_paths, format_type) - simplified to require explicit format
    • delete_directory(path, recursive) - now requires explicit recursive value

Google ADK Compliance

✅ JSON-serializable types only: str, int, float, bool, list, dict
✅ No default parameter values: All parameters explicitly required
✅ No Any types: Specific Union types for all parameters
✅ Clear function signatures: Easily parseable by agent frameworks

Migration

Update function calls to provide explicit parameter values:

# Before v0.7.3
safe_json_serialize(data)  # Used default indent=0
merge_config_files("file1.yaml", "file2.yaml")  # Used *args

# v0.7.3+  
safe_json_serialize(data, 0)  # Explicit indent
merge_config_files(["file1.yaml", "file2.yaml"], "yaml")  # Explicit format

🤖 Generated with Claude Code