DB-GPT/dbgpt/serve/agent/chat/api/schemas.py
明天 b124ecc10b
feat: (0.6)New UI (#1855)
Co-authored-by: 夏姜 <wenfengjiang.jwf@digital-engine.com>
Co-authored-by: aries_ckt <916701291@qq.com>
Co-authored-by: wb-lh513319 <wb-lh513319@alibaba-inc.com>
Co-authored-by: csunny <cfqsunny@163.com>
2024-08-21 17:37:45 +08:00

21 lines
524 B
Python

# Define your Pydantic schemas here
from dbgpt._private.pydantic import BaseModel, ConfigDict, Field
from ..config import SERVE_APP_NAME_HUMP
class ServeRequest(BaseModel):
"""Agent/chat request model"""
model_config = ConfigDict(title=f"ServeRequest for {SERVE_APP_NAME_HUMP}")
# TODO define your own fields here
class ServerResponse(BaseModel):
"""Agent/chat response model"""
model_config = ConfigDict(title=f"ServerResponse for {SERVE_APP_NAME_HUMP}")
# TODO define your own fields here