📝 文档新增插件通信部分内容
Some checks failed
Deploy VitePress site to Pages / build (push) Failing after 1m10s

This commit is contained in:
2024-10-26 02:34:58 +08:00
parent 4510477026
commit 7bf94a15c8
7 changed files with 61 additions and 69 deletions

View File

@ -0,0 +1,15 @@
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