MCPcopy Create free account
hub / github.com/AI45Lab/Code / run_test

Function run_test

examples/test_ahp_agent_monitors_agent.py:102–111  ·  view source on GitHub ↗
(label: str, session, prompt: str)

Source from the content-addressed store, hash-verified

100
101
102def run_test(label: str, session, prompt: str):
103 print(f"\n[测试] {label}")
104 print(f" 提示: {prompt!r}")
105 print(" " + "-" * 60)
106 try:
107 result = session.send(prompt)
108 print(f" 结果: {result.text[:300]}")
109 except Exception as e:
110 print(f" 错误 (可能是 AHP 阻止): {e}")
111 print()
112
113
114def main():

Callers 1

mainFunction · 0.70

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected