feat(agent): align prompts and runtime with workflow@20261020
- archive workflow/20261020 export (diff vs 20261016: collection prompt
only - state-decides-body rule, route when info complete)
- prompts: collection.md updated; 6 photo/confirm prompts archived with
source nodeIds; render_prompt replaces {{$vars}} (Asia/Shanghai clock,
person fields, explicit 'not provided' for missing prefills)
- llm: message history passed as user/assistant roles (chatNode history=50);
optional LLM_TEMPERATURE; FakeLLMService supports history-aware responders
- collect: context via system supplement, raw user input as user message
(Text Editor#2 parity), shared validated_reply (one call, one repair)
- welcome: Assigned Reply#3 original text, stored in dialogue history
- transitions: 2004 plate-confirm entries (2003->2004/2005, 2004->2005)
- verified: prompt files byte-identical to workflow JSON (parametrized test)
This commit is contained in:
+6
-1
@@ -42,7 +42,12 @@ class AgentState(TypedDict):
|
||||
turn_patch: dict # 本轮输出字段差量;每轮开始清空(作业 3-7)
|
||||
state_version: int # 业务版本(作业 7 并发冲突检测)
|
||||
|
||||
# ---- 对话历史(作业 4-5) ----
|
||||
# ---- 对话上下文(作业 4/5) ----
|
||||
# 已交换的消息列表 [{"role": "user"/"assistant", "content": str}],
|
||||
# 用于注入提示词,让模型跳过已知信息;可序列化,随 checkpoint 持久化。
|
||||
dialogue: list
|
||||
client_mode: str # direct / browser_addon(LangGraphBackend 注入)
|
||||
|
||||
# ---- 信息核实(作业 5) ----
|
||||
person_index: int # 当前核实的驾驶员序号(双车:1/2)
|
||||
# pending_question 复用作业 3 字段:当前待回答问题 ID(如 "owner_identity")
|
||||
|
||||
Reference in New Issue
Block a user