centralize type

This commit is contained in:
zzstoatzz
2025-02-03 14:27:07 -06:00
parent 00a44692e7
commit ca060014bb
2 changed files with 10 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
from typing import Annotated, Any, Generic, Literal, TypeVar
from typing import Annotated, Any, Callable, Generic, Literal, TypeAlias, TypeVar
from pydantic import BaseModel, ConfigDict, Field, FileUrl, RootModel
from pydantic.networks import AnyUrl
@@ -27,6 +27,7 @@ ProgressToken = str | int
Cursor = str
Role = Literal["user", "assistant"]
RequestId = str | int
AnyFunction: TypeAlias = Callable[..., Any]
class RequestParams(BaseModel):