chore: initialize sandbox and overwrite remote content
Some checks failed
Pre-commit / run (ubuntu-latest) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_en (ubuntu-latest, 3.10) (push) Has been cancelled
Deploy Sphinx documentation to Pages / build_zh (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (macos-15, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (ubuntu-latest, 3.12) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.10) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.11) (push) Has been cancelled
Python Unittest Coverage / test (windows-latest, 3.12) (push) Has been cancelled

This commit is contained in:
codex-bot
2026-03-02 22:32:27 +08:00
commit a64378956a
584 changed files with 93604 additions and 0 deletions

30
qingjian_cs/app/models.py Normal file
View File

@@ -0,0 +1,30 @@
from __future__ import annotations
from dataclasses import dataclass
from typing import Literal
from pydantic import BaseModel, Field
class DecisionModel(BaseModel):
action: Literal["reply", "quote", "transfer", "noop", "update_state"] = Field(description="唯一动作")
reply: str = Field(default="", description="给客户的回复")
transfer_msg: str = Field(default="", description="转人工提示")
quote_mode: Literal["flush_pending", "analyze_current_or_recent", "collect_only", ""] = Field(default="")
state_patch: dict = Field(default_factory=dict, description="状态增量")
reason: str = Field(default="", description="内部原因")
class RouteModel(BaseModel):
route: Literal["pre_sales", "quote", "after_sales", "risk"] = Field(description="路由目标")
reason: str = Field(default="")
@dataclass
class Decision:
action: str
reply: str = ""
transfer_msg: str = ""
quote_mode: str = ""
state_patch: dict | None = None
reason: str = ""