- 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.
10 lines
3.3 KiB
JSON
10 lines
3.3 KiB
JSON
{"run_id": "eval-routing-check-3", "case_id": "CUSTOMER-ROUTE-001", "agent": "customer", "layer": "l0", "kind": "customer_route", "input": {"sha256_16": "c8b3d55bf47c3320", "length": 7, "preview": "我的持仓有哪些"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_customer_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-3", "case_id": "CUSTOMER-ROUTE-002", "agent": "customer", "layer": "l0", "kind": "customer_route", "input": {"sha256_16": "d56997431b8490a4", "length": 10, "preview": "最近三个月的交易流水"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_customer_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-3", "case_id": "CUSTOMER-ROUTE-003", "agent": "customer", "layer": "l0", "kind": "customer_route", "input": {"sha256_16": "f54050c0a42ff083", "length": 8, "preview": "我的风险测评结果"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_customer_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-3", "case_id": "CUSTOMER-ROUTE-004", "agent": "customer", "layer": "l0", "kind": "customer_route", "input": {"sha256_16": "db3902537654444b", "length": 8, "preview": "我能买R3产品吗"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_customer_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-3", "case_id": "CUSTOMER-ROUTE-005", "agent": "customer", "layer": "l0", "kind": "customer_route", "input": {"sha256_16": "2f7c5a2e4d443434", "length": 12, "preview": "005827基金净值多少"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_customer_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-3", "case_id": "CUSTOMER-ROUTE-006", "agent": "customer", "layer": "l0", "kind": "customer_route", "input": {"sha256_16": "8ed0ded1286d7230", "length": 9, "preview": "你要记住我不买私募"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_customer_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-3", "case_id": "CUSTOMER-ROUTE-007", "agent": "customer", "layer": "l0", "kind": "customer_route", "input": {"sha256_16": "0d3f09ff16ce79f1", "length": 7, "preview": "建议买哪个基金"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_customer_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-3", "case_id": "CUSTOMER-ROUTE-008", "agent": "customer", "layer": "l0", "kind": "customer_route", "input": {"sha256_16": "58e34ec0b1becd1b", "length": 12, "preview": "我的交易记录请转人工处理"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_customer_route' is not defined\")", "latency_ms": 0}
|
|
{"run_id": "eval-routing-check-3", "case_id": "CUSTOMER-ROUTE-009", "agent": "customer", "layer": "l0", "kind": "customer_route", "input": {"sha256_16": "a69135fbebf5894a", "length": 7, "preview": "实时净值是多少"}, "status": "FAIL", "verdict": "FAIL", "observations": [], "error": "NameError(\"name 'evaluate_customer_route' is not defined\")", "latency_ms": 0}
|