mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
Fixed the read tool and all filesystem tools to properly work with agents that call them with 2 positional arguments (ctx, file_path). Changes: - Updated auto_timeout decorator to handle instance methods properly - Changed wrapper signature to accept *args to handle both methods and functions - Properly extracts ctx from correct position (second arg for methods, first for functions) - Made set_tool_context_info async and updated all callers - Changed from sync to async def - Added await for all calls to set_tool_context_info() - Fixed in: read, write, edit, multi_edit, ast_tool, rules_tool, symbols_tool - Tests now pass without warnings - Both run() and call() methods work correctly - Agents can now properly invoke read tool with expected signature Version: 0.9.1 -> 0.9.2