This commit is contained in:
root 2025-07-12 21:20:05 +08:00
parent f3a105a957
commit 39df16d467
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import sys
import time
import uuid
import asyncio
from uuid import uuid4
from typing import Any, Dict, Optional, Union, Callable, List
from dataclasses import dataclass, asdict
from enum import Enum
@ -238,7 +239,7 @@ def create_response_handler() -> EnhancedJSONRPCResponse:
"""创建响应处理器"""
return EnhancedJSONRPCResponse(uuid4())
from uuid import uuid4
def create_progress_reporter(total: int = 100) -> EnhancedProgressReporter:
"""创建进度报告器"""
return EnhancedProgressReporter(uuid4(), total)