Claude Claude Opus 5.5 commited on
Commit ·
4eadab2
1
Parent(s): c1ac697
test_agent_baseline: ล้างสวิตช์ AGENT_* ก่อนทดสอบ (หน้าต่างที่ตั้งสวิตช์ไว้ทำให้เทสต์ agent เดิมล้ม) · ไม่แตะโค้ดระบบ
Browse filesCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XCjUrSwWmtyAub11bokTdd
- test_agent_baseline.py +3 -0
test_agent_baseline.py
CHANGED
|
@@ -13,6 +13,9 @@ import sys
|
|
| 13 |
from typing import AsyncGenerator
|
| 14 |
|
| 15 |
os.environ["AGENT_LAZY"] = "1"
|
|
|
|
|
|
|
|
|
|
| 16 |
from google.adk.models.base_llm import BaseLlm # noqa: E402
|
| 17 |
from google.adk.models.llm_response import LlmResponse # noqa: E402
|
| 18 |
from google.genai import types # noqa: E402
|
|
|
|
| 13 |
from typing import AsyncGenerator
|
| 14 |
|
| 15 |
os.environ["AGENT_LAZY"] = "1"
|
| 16 |
+
# เทสต์นี้วัด agent เดิม (ปิดทุกสวิตช์) — หน้าต่างที่ตั้งสวิตช์ไว้รันจริงจะทำให้ LLM ปลอมโดนตัวตรวจคำตอบจับ (4 พ.ย.)
|
| 17 |
+
for _k in ("AGENT_REPLY_GUARD", "AGENT_RESOLVE_TAB", "AGENT_DATASHEET_FILES", "AGENT_IMAGE_MAX_SIDE"):
|
| 18 |
+
os.environ.pop(_k, None)
|
| 19 |
from google.adk.models.base_llm import BaseLlm # noqa: E402
|
| 20 |
from google.adk.models.llm_response import LlmResponse # noqa: E402
|
| 21 |
from google.genai import types # noqa: E402
|