- Introduced a new `/analyze` endpoint in the analyst API to process analysis requests, allowing users to receive textual interpretations and chart specifications based on provided prompts. - Enhanced `analyst_schemas.py` with `AnalyzeRequest` and `ChartSpec` models to structure analysis requests and validate chart specifications. - Implemented chart validation logic in a new `analyst_chart.py` service, ensuring that chart types and fields are correctly specified and conform to allowed values. - Updated `AnalystAgent` to handle analysis requests, integrating the new logic for generating responses based on user prompts and data availability. - Added unit tests to verify the functionality of the new endpoint and validation mechanisms, ensuring robustness and reliability. This update significantly enhances the analytical capabilities of the application, providing users with improved tools for data interpretation and visualization.
8 lines
2.6 KiB
JSON
8 lines
2.6 KiB
JSON
{"run_id": "eval-routing-check-2", "case_id": "VISITOR-ROUTE-001", "agent": "visitor", "layer": "l0", "kind": "visitor_route", "input": {"sha256_16": "2e5d6e3c55328957", "length": 6, "preview": "请转人工客服"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_visitor_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-2", "case_id": "VISITOR-ROUTE-002", "agent": "visitor", "layer": "l0", "kind": "visitor_route", "input": {"sha256_16": "db444a45e9888e35", "length": 18, "preview": "我想投诉这个服务,也想知道哪个产品好"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_visitor_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-2", "case_id": "VISITOR-ROUTE-003", "agent": "visitor", "layer": "l0", "kind": "visitor_route", "input": {"sha256_16": "75bf40503db90aec", "length": 10, "preview": "请推荐一个稳赚的产品"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_visitor_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-2", "case_id": "VISITOR-ROUTE-004", "agent": "visitor", "layer": "l0", "kind": "visitor_route", "input": {"sha256_16": "c7dee60a8b678f8c", "length": 10, "preview": "我的持仓和余额是多少"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_visitor_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-2", "case_id": "VISITOR-ROUTE-005", "agent": "visitor", "layer": "l0", "kind": "visitor_route", "input": {"sha256_16": "c4590193840c760f", "length": 7, "preview": "明天行情会涨吗"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_visitor_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-2", "case_id": "VISITOR-ROUTE-006", "agent": "visitor", "layer": "l0", "kind": "visitor_route", "input": {"sha256_16": "78a6355a3fad5317", "length": 7, "preview": "现在价格是多少"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_visitor_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-2", "case_id": "VISITOR-ROUTE-007", "agent": "visitor", "layer": "l0", "kind": "visitor_route", "input": {"sha256_16": "c770ed7cd5b473c0", "length": 8, "preview": "开户需要什么资料"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_visitor_route' is not defined\")", "latency_ms": 0}
|