mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-12-19 02:55:43 +08:00
16 lines
210 B
Python
Executable File
16 lines
210 B
Python
Executable File
from typing import Any
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class BaseSeg(BaseModel):
|
|
type: str = "Segment"
|
|
data: dict[str, Any]
|
|
|
|
|
|
class Text(BaseSeg):
|
|
content: str
|
|
|
|
|
|
class Image(BaseSeg):
|
|
url: str
|