런타임 계약과 학습자 흐름 보강
This commit is contained in:
parent
f456b8997a
commit
206018b088
56 changed files with 4306 additions and 1008 deletions
|
|
@ -51,12 +51,14 @@ def _prepare_context() -> orchestrator.TurnContext:
|
|||
card=persona.P1,
|
||||
state=_initial_state(),
|
||||
learner_text=RAW_TEXT,
|
||||
recent_turns=[
|
||||
{
|
||||
"speaker": "counselor",
|
||||
"text": "Previous learner contact was already masked: [PHONE] [EMAIL] [RRN].",
|
||||
}
|
||||
],
|
||||
memory=orchestrator.TurnMemory(
|
||||
recent_turns=[
|
||||
{
|
||||
"speaker": "counselor",
|
||||
"text": "Previous learner contact was already masked: [PHONE] [EMAIL] [RRN].",
|
||||
}
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -163,11 +165,13 @@ class OrchestratorMaskingGateTest(unittest.IsolatedAsyncioTestCase):
|
|||
card=persona.P1,
|
||||
state=_initial_state(),
|
||||
learner_text="Current text has no identifiers.",
|
||||
recall_summary=f"Recall mentioned {RAW_PHONE}.",
|
||||
pinned_facts=[f"Pinned email {RAW_EMAIL}."],
|
||||
recent_turns=[
|
||||
{"speaker": "counselor", "text": f"Previous raw RRN {RAW_RRN}."},
|
||||
],
|
||||
memory=orchestrator.TurnMemory(
|
||||
recall_summary=f"Recall mentioned {RAW_PHONE}.",
|
||||
pinned_facts=[f"Pinned email {RAW_EMAIL}."],
|
||||
recent_turns=[
|
||||
{"speaker": "counselor", "text": f"Previous raw RRN {RAW_RRN}."},
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
blob = _message_blob(ctx.messages)
|
||||
|
|
@ -203,11 +207,13 @@ class OrchestratorMaskingGateTest(unittest.IsolatedAsyncioTestCase):
|
|||
card=persona.P1,
|
||||
state=_initial_state(),
|
||||
learner_text=RAW_KO_TEXT,
|
||||
recall_summary=f"지난 회기 요약에 {RAW_KO_NAME}과 {RAW_KO_ORG}가 남아 있었다.",
|
||||
pinned_facts=[f"소속 {RAW_KO_DEPT}"],
|
||||
recent_turns=[
|
||||
{"speaker": "counselor", "text": f"{RAW_KO_NAME} 씨가 상담실에 왔다."},
|
||||
],
|
||||
memory=orchestrator.TurnMemory(
|
||||
recall_summary=f"지난 회기 요약에 {RAW_KO_NAME}과 {RAW_KO_ORG}가 남아 있었다.",
|
||||
pinned_facts=[f"소속 {RAW_KO_DEPT}"],
|
||||
recent_turns=[
|
||||
{"speaker": "counselor", "text": f"{RAW_KO_NAME} 씨가 상담실에 왔다."},
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
blob = _message_blob(ctx.messages)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue