centralize type
This commit is contained in:
parent
00a44692e7
commit
ca060014bb
1 changed files with 10 additions and 11 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue