feat: support multi-language

This commit is contained in:
Li Xin
2025-04-21 19:50:34 +08:00
parent 0d2f93c773
commit b67b04ff5d
6 changed files with 54 additions and 45 deletions

View File

@@ -1,9 +1,10 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from pydantic import BaseModel, Field
from typing import List, Optional
from enum import Enum
from typing import List, Optional
from pydantic import BaseModel, Field
class StepType(str, Enum):
@@ -24,6 +25,9 @@ class Step(BaseModel):
class Plan(BaseModel):
locale: str = Field(
..., description="e.g. 'en-US' or 'zh-CN', based on the user's language"
)
has_enough_context: bool
thought: str
title: str