添加 插件表单ai 能力
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
"""浏览器插件相关 Schema
|
||||
|
||||
请求参数 Param、响应 Dto。
|
||||
字段命名使用 camelCase alias,与前端 JSON 对齐。
|
||||
"""
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class FormFillAnswerParam(BaseModel):
|
||||
"""表单填写AI生成答案 请求参数"""
|
||||
job_id: int = Field(default=0, alias="jobId", description="岗位ID,不传默认0")
|
||||
label: str = Field(..., description="表单字段标签文本")
|
||||
reference: Optional[str] = Field(default=None, description="回答参考(选项列表、字数限制等)")
|
||||
type: str = Field(..., description="表单类型:input/textarea/select/radio/checkbox")
|
||||
|
||||
|
||||
class FormFillAnswerDto(BaseModel):
|
||||
"""表单填写AI生成答案 响应"""
|
||||
value: str = Field(..., description="AI生成的填写内容")
|
||||
Reference in New Issue
Block a user