mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-02 14:58:24 +00:00
17 lines
413 B
Python
17 lines
413 B
Python
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
from typing import Literal
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class ScriptLine(BaseModel):
|
|
speaker: Literal["male", "female"] = Field(default="male")
|
|
text: str = Field(default="")
|
|
|
|
|
|
class Script(BaseModel):
|
|
locale: Literal["en", "zh"] = Field(default="en")
|
|
lines: list[ScriptLine] = Field(default=[])
|