[feat] solution/backend: 한 발화에 여러 가지 — 응답을 actions 배열로
사장님은 "체크인 3시로 바꾸고 후기도 빼줘" 처럼 한 번에 시킨다. - prompts/agent: 응답 스키마를 actions 배열로 - runtime: 시킨 순서대로 실행. MAX_ACTIONS=5 — 무한정이면 "다 지워줘" 한 마디에 연쇄 실행된다 - ★ publish(SEMI)가 섞이면 그 앞까지만 하고 확인을 받는다. 확인이 필요한 행위를 다른 일에 묻어 실행하면 확인의 의미가 없다 - ★ 중간에 실패해도 앞의 것을 되돌리지 않는다(사장님 결정). 되돌리는 것도 시키지 않은 변경이다 — 대신 무엇이 됐고 무엇이 안 됐는지 그대로 말한다 - Tool.republish 플래그로 재발행 안내를 런타임이 한 번만 붙인다. 도구 문장에 박아 두면 셋을 고쳤을 때 같은 말이 세 번 나왔다 실모델 4/4 정확히 쪼갬(1.8~2.8초). test_agent_runtime·test_kakao_webhook 63 passed. 전체 878 passed / 53 failed — 53 은 기존과 동일. npm run lint 통과 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
47bde7388e
commit
c4aa1794e2
7 files changed
+277
-48
No files matched your search
@@ -137,7 +137,8 @@ async def test_발행은_묻고_바로가기를_준다(client, auth_headers, db_
|
||||
await link(db_engine, client, auth_headers, speaker)
|
||||
# 테스트는 실제 모델을 부르지 않는다 — 런타임만 열고 선택 결과를 대신 준다.
|
||||
monkeypatch.setattr(runtime, "is_configured", lambda: True)
|
||||
monkeypatch.setattr(runtime, "_choose", AsyncMock(return_value={"tool": "publish", "args": {}, "message": ""}))
|
||||
monkeypatch.setattr(runtime, "_choose",
|
||||
AsyncMock(return_value={"actions": [{"tool": "publish", "args": {}}], "message": ""}))
|
||||
|
||||
res = await client.post(PATH, headers={"X-Agent-Secret": SECRET}, json=body("발행해줘", speaker))
|
||||
assert channel.CONFIRM_LABEL in quick(res)
|
||||
|
||||
Reference in new issue
Block a user