Files
memoryweave/cli-anything/cli_anything/zhiyi/tests/TEST.md
T
xiaowei 2a350cf781 fix(distill): max_tokens 800→1200 — Agnes推理token预算不足
Agnes 2.0-flash是推理模型,推理token占大量预算。
800仍不够→JSON截断(parse error: unexpected end of JSON input)。
1200确保推理+正文都够用。
2026-08-20 01:13:06 +08:00

834 B

Test Plan for cli-anything-zhiyi

Test Files

  • test_core.py — Unit tests for ZhiYiClient

Unit Test Plan

client.py

Function Test case Expected
__init__ Default params base=localhost:7821, key=default
__init__ Custom params Uses provided values
health() Live endpoint status=ok, service=zhiyid
stats() Live endpoint total_memories > 0
graph_stats() Live endpoint node_count > 0, edge_count > 0
metrics() Live endpoint total_memories present
search() Live query Returns results
search() All modes hybrid, semantic, keyword all work
diagnose() Full check All 5 components present

Results

  • Tests: 9/9 passing
  • Coverage: Client unit tests only (no CLI subprocess tests in v0.1.0)