gooddata-eval 1.81.1.dev3__tar.gz → 1.81.1.dev4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/PKG-INFO +2 -2
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/pyproject.toml +2 -2
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_search_expectation.py +113 -3
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/search_tool.py +8 -6
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/chat/sse_client.py +4 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_search_tool_checks.py +235 -3
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_chat_render.py +8 -1
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/.gitignore +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/AGENTS.md +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/CLAUDE.md +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/LICENSE.txt +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/Makefile +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/README.md +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/scripts/calibrate_catalog_metadata_judge.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/scripts/calibrate_knowledge_judge.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/scripts/calibrate_takeaway_judge.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/scripts/verify_guardrail_refusal_criteria.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/_version.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/cli/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/cli/agentic_runner.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/cli/main.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/_output.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/_retry.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_alert_update.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_catalog.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_clarification.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_conversation_context.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_editor_takeaways.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_failed_runs.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_failure_message.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_filters.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_gate.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_kda_expectation.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_langfuse.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_metric_expectation.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_metric_workspace.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_outcome.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_trace_linker.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/agent_switcher.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/alert_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/anomaly_detection.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/conversation.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/dashboard_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/dashboard_summary.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/document_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/forecasting.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/general_question.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/guardrail.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/kda_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/knowledge.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/memory.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/metric_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/report_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/visualization.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/what_if.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/catalog/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/catalog/evaluate.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/catalog/http_client.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/chat/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/chat/render.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/config.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/connection.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/dataset/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/dataset/from_insights.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/dataset/langfuse_source.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/dataset/local.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/_deep_subset.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/_guardrail_criteria.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/_llm_judge.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/_maql.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/_rubric.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/_text_utils.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/alert_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/base.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/catalog_metadata.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/general_question.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/guardrail.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/knowledge.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/metric_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/search_tool.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/summary.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/takeaway.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/evaluators/visualization.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/granularity.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/interaction.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/langfuse/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/langfuse/_env.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/langfuse/client.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/langfuse/experiment.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/langfuse/item_scope.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/langfuse/observations.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/langfuse/otlp.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/langfuse/sink.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/models.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/number_format.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/outcome.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/reporting/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/reporting/console.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/reporting/html_report.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/reporting/json_report.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/reporting/report_template.html +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/runner.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/scoring.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/summary/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/summary/http_client.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/takeaway/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/takeaway/evaluate.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/takeaway/http_client.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/timing.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/workspace.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/__init__.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/_fake_langfuse.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/conftest.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/fixtures/catalog_metadata_calibration.json +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/fixtures/knowledge_calibration.json +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/fixtures/sample_dataset/metric_skill_create.json +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/fixtures/sample_dataset/visualization_revenue.json +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/fixtures/sse_visualization_stream.txt +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/fixtures/takeaway_calibration.json +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_agent_switcher.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_alert_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_alert_skill_checks.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_alert_update.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_anomaly_detection.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_conversation.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_dashboard_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_dashboard_summary.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_document_editor_takeaways.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_document_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_failure_message.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_forecasting.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_gate.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_general_question.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_guardrail.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_join_trace.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_kda_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_kda_skill_fields.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_knowledge.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_langfuse_trace.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_memory.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_metric_skill.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_metric_skill_options.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_observe_experiment.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_run_context.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_runner.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_search_tool.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_visualization.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_what_if.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_alert_skill_evaluator.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_catalog_metadata_client.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_catalog_metadata_evaluate.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_catalog_metadata_evaluator.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_cli.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_connection.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_context_date_filter.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_deep_subset.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_eval_error_scores.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_fake_langfuse.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_from_insights.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_guardrail_criteria.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_html_report.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_interaction.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_knowledge_evaluator.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_langfuse_client.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_langfuse_e2e_fake_server.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_langfuse_env.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_langfuse_experiment.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_langfuse_item_scope.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_langfuse_observations.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_langfuse_otlp.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_langfuse_sink.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_langfuse_source.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_llm_judge.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_local_loader.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_maql_normalize.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_metric_skill_evaluator.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_models.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_number_format.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_outcome.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_reporting.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_runner.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_scoring.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_search_tool_evaluator.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_sse_client.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_summary_client.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_summary_evaluator.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_takeaway_client.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_takeaway_evaluate.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_takeaway_evaluator.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_text_evaluators.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_timing.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_trace_linker.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_visualization_evaluator.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_workspace.py +0 -0
- {gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: gooddata-eval
|
|
3
|
-
Version: 1.81.1.
|
|
3
|
+
Version: 1.81.1.dev4
|
|
4
4
|
Summary: Evaluate the GoodData AI agent against your own questions and models.
|
|
5
5
|
Project-URL: Source, https://github.com/gooddata/gooddata-python-sdk
|
|
6
6
|
Author-email: GoodData <support@gooddata.com>
|
|
@@ -18,7 +18,7 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
18
18
|
Classifier: Topic :: Software Development
|
|
19
19
|
Classifier: Typing :: Typed
|
|
20
20
|
Requires-Python: >=3.11
|
|
21
|
-
Requires-Dist: gooddata-sdk~=1.81.1.
|
|
21
|
+
Requires-Dist: gooddata-sdk~=1.81.1.dev4
|
|
22
22
|
Requires-Dist: httpx<1.0,>=0.27
|
|
23
23
|
Requires-Dist: jsonpatch<2.0,>=1.33
|
|
24
24
|
Requires-Dist: orjson<4.0.0,>=3.9.15
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# (C) 2026 GoodData Corporation
|
|
2
2
|
[project]
|
|
3
3
|
name = "gooddata-eval"
|
|
4
|
-
version = "1.81.1.
|
|
4
|
+
version = "1.81.1.dev4"
|
|
5
5
|
description = "Evaluate the GoodData AI agent against your own questions and models."
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
license = "MIT"
|
|
@@ -11,7 +11,7 @@ authors = [
|
|
|
11
11
|
keywords = ["gooddata", "ai", "evaluation", "llm", "analytics", "cli"]
|
|
12
12
|
requires-python = ">=3.11"
|
|
13
13
|
dependencies = [
|
|
14
|
-
"gooddata-sdk~=1.81.1.
|
|
14
|
+
"gooddata-sdk~=1.81.1.dev4",
|
|
15
15
|
"httpx>=0.27,<1.0",
|
|
16
16
|
"jsonpatch>=1.33,<2.0",
|
|
17
17
|
"orjson>=3.9.15,<4.0.0",
|
|
@@ -12,6 +12,7 @@ import re
|
|
|
12
12
|
from dataclasses import dataclass, field
|
|
13
13
|
from typing import Any
|
|
14
14
|
|
|
15
|
+
from gooddata_eval.core.chat.sse_client import UNHANDLED_PART_TYPES
|
|
15
16
|
from gooddata_eval.core.models import ChatResult, ToolCallEvent
|
|
16
17
|
|
|
17
18
|
SEARCH_TOOL = "search_objects"
|
|
@@ -30,6 +31,10 @@ SEARCH_OPTION_KEYS = frozenset(
|
|
|
30
31
|
"no_raw_ids",
|
|
31
32
|
"setup_turns",
|
|
32
33
|
"report_only",
|
|
34
|
+
"expect_user_requested_search",
|
|
35
|
+
"widget_objects",
|
|
36
|
+
"forbidden_parts",
|
|
37
|
+
"no_object_urls",
|
|
33
38
|
}
|
|
34
39
|
)
|
|
35
40
|
_KNOWN_KEYS = SEARCH_OPTION_KEYS | {"tool_call"}
|
|
@@ -69,6 +74,34 @@ _TYPED_ID = re.compile(rf"\b(?:{'|'.join(sorted(_OBJECT_TYPES))})/([A-Za-z0-9_](
|
|
|
69
74
|
# a dot or a digit, as the workspace ids have, counts. A one-word id such as metric/revenue is not caught.
|
|
70
75
|
_ID_MARK = re.compile(r"[_.0-9]")
|
|
71
76
|
|
|
77
|
+
# ``forbidden_parts`` may only name a type that lands in ``unhandled_parts`` (a draft: document, report,
|
|
78
|
+
# dashboard), so a misspelt type cannot read as a pass.
|
|
79
|
+
_UNHANDLED_PART_TYPES = UNHANDLED_PART_TYPES
|
|
80
|
+
# A link: an absolute ``http(s)`` or ``gooddata://`` URL, or a markdown link to an app path. The UI opens an
|
|
81
|
+
# object from the Search list, so an object link in the text is one the model wrote itself.
|
|
82
|
+
_LINK = re.compile(r"(?:https?|gooddata)://[^\s<>()\[\]\"'`]+|\]\(\s*<?(/[^\s)>]+)")
|
|
83
|
+
# The routes that open one object, so an id segment follows the type: an app route
|
|
84
|
+
# (``/workspace/<ws>/reports/document/<id>``, ``/dashboards/#/workspace/<ws>/dashboard/<id>``), the entity API
|
|
85
|
+
# (``/entities/workspaces/<ws>/<type>/<id>``) and Analytical Designer (``/analyze/#/<ws>/<id>``). A list page
|
|
86
|
+
# (``/workspace/<ws>/reports``) and a help page with a ``workspaces`` segment are none of them.
|
|
87
|
+
_OBJECT_PATH = re.compile(
|
|
88
|
+
r"/workspace/[^/\s#?]+/(?:reports?|dashboards?|documents?|visualizations?|metrics?|analyze)/[^/\s#?]+"
|
|
89
|
+
r"|/entities/workspaces/[^/\s]+/[^/\s]+/[^/\s?#]+"
|
|
90
|
+
r"|/analyze/#/[^/\s]+/[^/\s]+",
|
|
91
|
+
re.IGNORECASE,
|
|
92
|
+
)
|
|
93
|
+
# A made-up object link on any host: the path ends in an object type and an id
|
|
94
|
+
# (``https://analytics.gooddata.com/documents/<id>``). An id has a ``_``, a dot or a digit; a help page slug
|
|
95
|
+
# (``/docs/cloud/dashboards/filters/``) has none, and a path under ``/docs/`` is never read this way.
|
|
96
|
+
_TYPED_ID_PATH = re.compile(
|
|
97
|
+
r"/(?:documents?|dashboards?|reports?|visualizations?|metrics?)/([^/\s?#]*[_.0-9][^/\s?#]*)/?(?:[?#].*)?$",
|
|
98
|
+
re.IGNORECASE,
|
|
99
|
+
)
|
|
100
|
+
# Sentence punctuation the link pattern takes in after a URL ("see https://h/x.").
|
|
101
|
+
_TRAILING_PUNCTUATION = ".,;:!?*_"
|
|
102
|
+
# The parts of a link an id can fill on its own: path segments and query values.
|
|
103
|
+
_LINK_PARTS = re.compile(r"[/#?&=]")
|
|
104
|
+
|
|
72
105
|
|
|
73
106
|
@dataclass(frozen=True)
|
|
74
107
|
class SearchExpectation:
|
|
@@ -89,6 +122,10 @@ class SearchExpectation:
|
|
|
89
122
|
no_raw_ids: bool = False
|
|
90
123
|
setup_turns: tuple[str, ...] = ()
|
|
91
124
|
report_only: bool = False
|
|
125
|
+
expect_user_requested_search: bool | None = None
|
|
126
|
+
widget_objects: tuple[str, ...] = ()
|
|
127
|
+
forbidden_parts: tuple[str, ...] = ()
|
|
128
|
+
no_object_urls: bool = False
|
|
92
129
|
|
|
93
130
|
@property
|
|
94
131
|
def has_turn_checks(self) -> bool:
|
|
@@ -101,6 +138,10 @@ class SearchExpectation:
|
|
|
101
138
|
or self.answer_rubric
|
|
102
139
|
or self.expected_limit is not None
|
|
103
140
|
or self.no_raw_ids
|
|
141
|
+
or self.expect_user_requested_search is not None
|
|
142
|
+
or self.widget_objects
|
|
143
|
+
or self.forbidden_parts
|
|
144
|
+
or self.no_object_urls
|
|
104
145
|
)
|
|
105
146
|
|
|
106
147
|
@property
|
|
@@ -124,10 +165,10 @@ def _flag(key: str, value: Any) -> bool:
|
|
|
124
165
|
return value
|
|
125
166
|
|
|
126
167
|
|
|
127
|
-
def _object_ref(ref: str) -> tuple[str, str]:
|
|
168
|
+
def _object_ref(key: str, ref: str) -> tuple[str, str]:
|
|
128
169
|
object_type, sep, object_id = ref.partition("/")
|
|
129
170
|
if not sep or object_type not in _OBJECT_TYPES or not object_id or object_id != object_id.strip():
|
|
130
|
-
raise ValueError(f"
|
|
171
|
+
raise ValueError(f"{key} entry must be '<type>/<id>' with a known type, got {ref!r}")
|
|
131
172
|
return object_type, object_id
|
|
132
173
|
|
|
133
174
|
|
|
@@ -178,12 +219,21 @@ def parse_expectation(expected_output: Any) -> SearchExpectation:
|
|
|
178
219
|
if "expected_objects" in raw:
|
|
179
220
|
expected_objects = _string_list("expected_objects", raw["expected_objects"])
|
|
180
221
|
for ref in expected_objects:
|
|
181
|
-
_object_ref(ref)
|
|
222
|
+
_object_ref("expected_objects", ref)
|
|
182
223
|
required = _string_list("required_tools", raw["required_tools"]) if "required_tools" in raw else ()
|
|
183
224
|
forbidden = _string_list("forbidden_tools", raw["forbidden_tools"]) if "forbidden_tools" in raw else ()
|
|
184
225
|
both = sorted(set(required) & set(forbidden))
|
|
185
226
|
if both:
|
|
186
227
|
raise ValueError(f"tools {both} are both required and forbidden")
|
|
228
|
+
widget_objects: tuple[str, ...] = ()
|
|
229
|
+
if "widget_objects" in raw:
|
|
230
|
+
widget_objects = _string_list("widget_objects", raw["widget_objects"])
|
|
231
|
+
for ref in widget_objects:
|
|
232
|
+
_object_ref("widget_objects", ref)
|
|
233
|
+
forbidden_parts = _string_list("forbidden_parts", raw["forbidden_parts"]) if "forbidden_parts" in raw else ()
|
|
234
|
+
unknown_parts = sorted(set(forbidden_parts) - _UNHANDLED_PART_TYPES)
|
|
235
|
+
if unknown_parts:
|
|
236
|
+
raise ValueError(f"forbidden_parts {unknown_parts} are not among {sorted(_UNHANDLED_PART_TYPES)}")
|
|
187
237
|
limit = raw.get("expected_limit")
|
|
188
238
|
if "expected_limit" in raw and (not isinstance(limit, int) or isinstance(limit, bool) or limit < 1):
|
|
189
239
|
raise ValueError(f"expected_limit must be a positive integer, got {limit!r}")
|
|
@@ -200,6 +250,14 @@ def parse_expectation(expected_output: Any) -> SearchExpectation:
|
|
|
200
250
|
no_raw_ids=_flag("no_raw_ids", raw["no_raw_ids"]) if "no_raw_ids" in raw else False,
|
|
201
251
|
setup_turns=_string_list("setup_turns", raw["setup_turns"]) if "setup_turns" in raw else (),
|
|
202
252
|
report_only=_flag("report_only", raw["report_only"]) if "report_only" in raw else False,
|
|
253
|
+
expect_user_requested_search=(
|
|
254
|
+
_flag("expect_user_requested_search", raw["expect_user_requested_search"])
|
|
255
|
+
if "expect_user_requested_search" in raw
|
|
256
|
+
else None
|
|
257
|
+
),
|
|
258
|
+
widget_objects=widget_objects,
|
|
259
|
+
forbidden_parts=forbidden_parts,
|
|
260
|
+
no_object_urls=_flag("no_object_urls", raw["no_object_urls"]) if "no_object_urls" in raw else False,
|
|
203
261
|
)
|
|
204
262
|
if "tool_call" not in raw and not spec.has_checks:
|
|
205
263
|
raise ValueError("expected_output asserts nothing: give tool_call or at least one check")
|
|
@@ -274,6 +332,38 @@ def raw_ids(text: str) -> list[str]:
|
|
|
274
332
|
return _UUID.findall(outside) + typed
|
|
275
333
|
|
|
276
334
|
|
|
335
|
+
def widget_refs(result: ChatResult) -> list[str]:
|
|
336
|
+
"""Every object the turn's ``searchResults`` parts list, as ``type/id``, first sighting first."""
|
|
337
|
+
refs: dict[tuple[str, str], str] = {}
|
|
338
|
+
for part in result.search_results:
|
|
339
|
+
for obj in _objects(part):
|
|
340
|
+
object_type, object_id = obj.get("type"), obj.get("id")
|
|
341
|
+
if isinstance(object_type, str) and isinstance(object_id, str) and object_type and object_id:
|
|
342
|
+
refs.setdefault(_ref_key(object_type, object_id), f"{object_type}/{object_id}")
|
|
343
|
+
return list(refs.values())
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
def object_urls(text: str, object_ids: tuple[str, ...] = ()) -> list[str]:
|
|
347
|
+
"""The links in ``text`` that point at a workspace object.
|
|
348
|
+
|
|
349
|
+
A link counts when it is a ``gooddata://`` link, follows an app or API route to one object, ends in an object
|
|
350
|
+
type and an id outside ``/docs/``, or has one of ``object_ids`` (the ids the turn's searches returned) as a
|
|
351
|
+
whole path segment or query value.
|
|
352
|
+
"""
|
|
353
|
+
found: list[str] = []
|
|
354
|
+
for match in _LINK.finditer(text):
|
|
355
|
+
link = (match.group(1) or match.group(0)).rstrip(_TRAILING_PUNCTUATION)
|
|
356
|
+
parts = set(_LINK_PARTS.split(link))
|
|
357
|
+
if (
|
|
358
|
+
link.lower().startswith("gooddata://")
|
|
359
|
+
or _OBJECT_PATH.search(link)
|
|
360
|
+
or ("/docs/" not in link.lower() and _TYPED_ID_PATH.search(link))
|
|
361
|
+
or any(object_id in parts for object_id in object_ids)
|
|
362
|
+
):
|
|
363
|
+
found.append(link)
|
|
364
|
+
return found
|
|
365
|
+
|
|
366
|
+
|
|
277
367
|
def deterministic_checks(spec: SearchExpectation, result: ChatResult) -> tuple[dict[str, bool], dict[str, Any]]:
|
|
278
368
|
"""The checks of one scored turn that need no judge, with the evidence of each failure."""
|
|
279
369
|
checks: dict[str, bool] = {}
|
|
@@ -307,4 +397,24 @@ def deterministic_checks(spec: SearchExpectation, result: ChatResult) -> tuple[d
|
|
|
307
397
|
if spec.no_raw_ids:
|
|
308
398
|
found = raw_ids(result.text_response or "")
|
|
309
399
|
_check("search_no_raw_ids", not found, {"raw_ids": found})
|
|
400
|
+
if spec.expect_user_requested_search is not None:
|
|
401
|
+
flags = [call_args(tc).get("user_requested_search") for tc in search_calls(events)]
|
|
402
|
+
asked = any(flag is True for flag in flags)
|
|
403
|
+
_check(
|
|
404
|
+
"search_user_requested",
|
|
405
|
+
asked == spec.expect_user_requested_search,
|
|
406
|
+
{"expected": spec.expect_user_requested_search, "user_requested_search": flags},
|
|
407
|
+
)
|
|
408
|
+
if spec.widget_objects:
|
|
409
|
+
listed = widget_refs(result)
|
|
410
|
+
missing = missing_objects(spec.widget_objects, listed)
|
|
411
|
+
_check("search_widget_objects", not missing, {"missing": missing, "listed": listed[:30]})
|
|
412
|
+
if spec.forbidden_parts:
|
|
413
|
+
streamed = [part.get("type") for part in result.unhandled_parts]
|
|
414
|
+
forbidden = [ptype for ptype in streamed if ptype in spec.forbidden_parts]
|
|
415
|
+
_check("search_forbidden_parts", not forbidden, {"forbidden": forbidden, "parts": streamed})
|
|
416
|
+
if spec.no_object_urls:
|
|
417
|
+
ids = tuple(ref.partition("/")[2] for ref in returned_refs(result))
|
|
418
|
+
urls = object_urls(result.text_response or "", ids)
|
|
419
|
+
_check("search_no_object_urls", not urls, {"object_urls": urls})
|
|
310
420
|
return checks, details
|
|
@@ -91,6 +91,10 @@ SEARCH_CONDITIONAL_SCORES = (
|
|
|
91
91
|
"search_answer",
|
|
92
92
|
"search_limit",
|
|
93
93
|
"search_no_raw_ids",
|
|
94
|
+
"search_user_requested",
|
|
95
|
+
"search_widget_objects",
|
|
96
|
+
"search_forbidden_parts",
|
|
97
|
+
"search_no_object_urls",
|
|
94
98
|
)
|
|
95
99
|
# The names a score takes where it does not gate the item: every check of a report_only item, and tool_selection of
|
|
96
100
|
# an item with search_required false. A score name then means the same on every item.
|
|
@@ -112,12 +116,10 @@ def _tool_selection(tool_call_events: list[ToolCallEvent]) -> bool:
|
|
|
112
116
|
return any(tc.function_name == SEARCH_TOOL for tc in tool_call_events)
|
|
113
117
|
|
|
114
118
|
|
|
115
|
-
# Arguments
|
|
116
|
-
#
|
|
117
|
-
#
|
|
118
|
-
#
|
|
119
|
-
# rename -- this path did not, so every fixture written against the older signature
|
|
120
|
-
# scored tool_correctness=False while still passing on tool_selection alone.
|
|
119
|
+
# Arguments `tool_correctness` does not compare, so a fixture naming them does not fail
|
|
120
|
+
# the call. `limit` has a server-side default the agent is free to choose; `emit_widget`
|
|
121
|
+
# is the old name of `user_requested_search`. To check `user_requested_search`, an item
|
|
122
|
+
# sets the option `expect_user_requested_search`, which gates the run.
|
|
121
123
|
_IGNORED_SEARCH_ARGS = frozenset({"limit", "emit_widget", "user_requested_search"})
|
|
122
124
|
|
|
123
125
|
|
{gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/chat/sse_client.py
RENAMED
|
@@ -70,6 +70,7 @@ _KNOWN_PART_TYPES: frozenset[str] = frozenset(
|
|
|
70
70
|
"dashboard",
|
|
71
71
|
"dashboardPatch",
|
|
72
72
|
"document",
|
|
73
|
+
"report",
|
|
73
74
|
"kda",
|
|
74
75
|
"whatIf",
|
|
75
76
|
"searchResults",
|
|
@@ -78,6 +79,9 @@ _KNOWN_PART_TYPES: frozenset[str] = frozenset(
|
|
|
78
79
|
}
|
|
79
80
|
)
|
|
80
81
|
|
|
82
|
+
# The part types ``_handle_multipart`` leaves in ``unhandled_parts``: every known type but the four it routes.
|
|
83
|
+
UNHANDLED_PART_TYPES: frozenset[str] = _KNOWN_PART_TYPES - {"text", "visualization", "alertProposal", "searchResults"}
|
|
84
|
+
|
|
81
85
|
|
|
82
86
|
class ChatError(RuntimeError):
|
|
83
87
|
"""Non-retryable error reported by the chat SSE stream.
|
{gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/tests/test_agentic_search_tool_checks.py
RENAMED
|
@@ -17,9 +17,11 @@ from gooddata_eval.core.agentic._search_expectation import (
|
|
|
17
17
|
SEARCH_OPTION_KEYS,
|
|
18
18
|
SearchExpectation,
|
|
19
19
|
deterministic_checks,
|
|
20
|
+
object_urls,
|
|
20
21
|
parse_expectation,
|
|
21
22
|
raw_ids,
|
|
22
23
|
returned_refs,
|
|
24
|
+
widget_refs,
|
|
23
25
|
)
|
|
24
26
|
from gooddata_eval.core.agentic.search_tool import (
|
|
25
27
|
SEARCH_CONDITIONAL_SCORES,
|
|
@@ -30,7 +32,7 @@ from gooddata_eval.core.agentic.search_tool import (
|
|
|
30
32
|
evaluate_agentic_search_tool,
|
|
31
33
|
run_agentic_search_tool,
|
|
32
34
|
)
|
|
33
|
-
from gooddata_eval.core.chat.sse_client import ChatError, TurnTimeoutError
|
|
35
|
+
from gooddata_eval.core.chat.sse_client import UNHANDLED_PART_TYPES, ChatError, TurnTimeoutError
|
|
34
36
|
from gooddata_eval.core.evaluators._llm_judge import JudgeVerdict
|
|
35
37
|
from gooddata_eval.core.models import AgenticEvalOutcome, ChatResult, DatasetItem
|
|
36
38
|
|
|
@@ -59,9 +61,16 @@ def _turn(
|
|
|
59
61
|
text: str = "Found 2 results.",
|
|
60
62
|
calls: list[dict] | None = None,
|
|
61
63
|
widgets: list[dict] | None = None,
|
|
64
|
+
parts: list[dict] | None = None,
|
|
62
65
|
) -> ChatResult:
|
|
63
66
|
return ChatResult.model_validate(
|
|
64
|
-
{
|
|
67
|
+
{
|
|
68
|
+
"textResponse": text,
|
|
69
|
+
"toolCallEvents": calls or [],
|
|
70
|
+
"searchResults": widgets or [],
|
|
71
|
+
"unhandledParts": parts or [],
|
|
72
|
+
"responseId": "resp",
|
|
73
|
+
}
|
|
65
74
|
)
|
|
66
75
|
|
|
67
76
|
|
|
@@ -335,6 +344,219 @@ def test_widget(expect: bool, widgets: int, ok: bool):
|
|
|
335
344
|
assert deterministic_checks(parse_expectation({"expect_widget": expect}), result)[0] == {"search_widget": ok}
|
|
336
345
|
|
|
337
346
|
|
|
347
|
+
_DOC_ID = "9a3c8e7e-2f0b-4c55-a1f1-6b0f6a4f1d20"
|
|
348
|
+
_DOC_SEARCH = _search_call(
|
|
349
|
+
{"keywords": ["Weekly Sales Brief"], "object_types": ["document"], "limit": 10, "user_requested_search": True},
|
|
350
|
+
[_obj("document", _DOC_ID)],
|
|
351
|
+
)
|
|
352
|
+
_DOC_LOOKUP = _search_call(
|
|
353
|
+
{"keywords": ["Weekly Sales Brief"], "object_types": ["document"], "limit": 10, "user_requested_search": False},
|
|
354
|
+
[_obj("document", _DOC_ID)],
|
|
355
|
+
)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
@pytest.mark.parametrize(
|
|
359
|
+
("calls", "expect", "ok"),
|
|
360
|
+
[
|
|
361
|
+
([_DOC_SEARCH], True, True),
|
|
362
|
+
([_DOC_LOOKUP], True, False),
|
|
363
|
+
([_DOC_LOOKUP, _DOC_SEARCH], True, True),
|
|
364
|
+
([], True, False),
|
|
365
|
+
([_DOC_LOOKUP], False, True),
|
|
366
|
+
([_DOC_SEARCH], False, False),
|
|
367
|
+
],
|
|
368
|
+
)
|
|
369
|
+
def test_user_requested_search_reads_every_search_call(calls: list[dict], expect: bool, ok: bool):
|
|
370
|
+
spec = parse_expectation({"expect_user_requested_search": expect})
|
|
371
|
+
checks, details = deterministic_checks(spec, _turn(calls=calls))
|
|
372
|
+
assert checks == {"search_user_requested": ok}
|
|
373
|
+
if not ok:
|
|
374
|
+
assert details["search_user_requested"]["expected"] is expect
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
def test_user_requested_search_is_not_read_from_a_string():
|
|
378
|
+
call = _search_call({"keywords": ["x"], "user_requested_search": "true"})
|
|
379
|
+
spec = parse_expectation({"expect_user_requested_search": True})
|
|
380
|
+
assert deterministic_checks(spec, _turn(calls=[call]))[0] == {"search_user_requested": False}
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
def test_widget_objects_are_read_from_the_widget_only():
|
|
384
|
+
spec = parse_expectation({"widget_objects": [f"document/{_DOC_ID}"]})
|
|
385
|
+
internal_only = _turn(calls=[_DOC_SEARCH])
|
|
386
|
+
checks, details = deterministic_checks(spec, internal_only)
|
|
387
|
+
assert checks == {"search_widget_objects": False}
|
|
388
|
+
assert details["search_widget_objects"] == {"missing": [f"document/{_DOC_ID}"], "listed": []}
|
|
389
|
+
listed = _turn(calls=[_DOC_SEARCH], widgets=[_widget(("dashboard", "sales"), ("document", _DOC_ID))])
|
|
390
|
+
assert deterministic_checks(spec, listed)[0] == {"search_widget_objects": True}
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
def test_every_widget_object_must_be_listed():
|
|
394
|
+
spec = parse_expectation({"widget_objects": [f"document/{_DOC_ID}", "dashboard/sales"]})
|
|
395
|
+
result = _turn(widgets=[_widget(("document", _DOC_ID))])
|
|
396
|
+
checks, details = deterministic_checks(spec, result)
|
|
397
|
+
assert checks == {"search_widget_objects": False}
|
|
398
|
+
assert details["search_widget_objects"]["missing"] == ["dashboard/sales"]
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
def test_a_widget_object_of_another_type_is_not_the_expected_one():
|
|
402
|
+
spec = parse_expectation({"widget_objects": [f"document/{_DOC_ID}"]})
|
|
403
|
+
result = _turn(widgets=[_widget(("dashboard", _DOC_ID))])
|
|
404
|
+
assert deterministic_checks(spec, result)[0] == {"search_widget_objects": False}
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
def test_widget_refs_skip_malformed_objects():
|
|
408
|
+
widget = {
|
|
409
|
+
"type": "searchResults",
|
|
410
|
+
"objects": [{"id": "a"}, {"type": "document"}, "x", {"id": "b", "type": "document"}],
|
|
411
|
+
}
|
|
412
|
+
assert widget_refs(_turn(widgets=[widget, {"type": "searchResults", "objects": None}])) == ["document/b"]
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
def test_forbidden_parts_fail_on_a_draft():
|
|
416
|
+
spec = parse_expectation({"forbidden_parts": ["document", "report", "dashboard"]})
|
|
417
|
+
clarify = {"type": "clarifyingQuestions", "questions": []}
|
|
418
|
+
assert deterministic_checks(spec, _turn(parts=[clarify]))[0] == {"search_forbidden_parts": True}
|
|
419
|
+
draft = {"type": "document", "document": {"title": "Weekly Sales Brief"}}
|
|
420
|
+
checks, details = deterministic_checks(spec, _turn(parts=[clarify, draft]))
|
|
421
|
+
assert checks == {"search_forbidden_parts": False}
|
|
422
|
+
assert details["search_forbidden_parts"] == {
|
|
423
|
+
"forbidden": ["document"],
|
|
424
|
+
"parts": ["clarifyingQuestions", "document"],
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
@pytest.mark.parametrize("value", [["visualization"], ["searchResults"], ["Document"], ["documnet"]])
|
|
429
|
+
def test_forbidden_parts_take_only_part_types_that_reach_the_unhandled_list(value: list[str]):
|
|
430
|
+
with pytest.raises(ValueError, match="forbidden_parts"):
|
|
431
|
+
parse_expectation({"forbidden_parts": value})
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
@pytest.mark.parametrize(
|
|
435
|
+
("text", "found"),
|
|
436
|
+
[
|
|
437
|
+
("Open it from the Search list below.", []),
|
|
438
|
+
("See the help page https://www.gooddata.com/docs/cloud/create-reports/.", []),
|
|
439
|
+
("Our site is https://example.com.", []),
|
|
440
|
+
(
|
|
441
|
+
"Open https://acme.gooddata.com/workspace/ecommerce_demo/reports/document/abc here.",
|
|
442
|
+
["https://acme.gooddata.com/workspace/ecommerce_demo/reports/document/abc"],
|
|
443
|
+
),
|
|
444
|
+
(
|
|
445
|
+
"[Sales](https://acme.gooddata.com/dashboards/#/workspace/ws/dashboard/bf43)",
|
|
446
|
+
["https://acme.gooddata.com/dashboards/#/workspace/ws/dashboard/bf43"],
|
|
447
|
+
),
|
|
448
|
+
("[Weekly brief](/workspace/ws/reports/document/abc)", ["/workspace/ws/reports/document/abc"]),
|
|
449
|
+
(
|
|
450
|
+
"Go to <https://h/api/v1/entities/workspaces/ws/documents/abc>",
|
|
451
|
+
["https://h/api/v1/entities/workspaces/ws/documents/abc"],
|
|
452
|
+
),
|
|
453
|
+
("[Docs](/docs/reports)", []),
|
|
454
|
+
("Read https://www.gooddata.com/docs/cloud/workspaces/overview/ first.", []),
|
|
455
|
+
("[Workspaces](/docs/cloud/workspaces/manage)", []),
|
|
456
|
+
("[Brief](</workspace/ws/reports/document/abc>)", ["/workspace/ws/reports/document/abc"]),
|
|
457
|
+
("[Brief]( /workspace/ws/reports/document/abc )", ["/workspace/ws/reports/document/abc"]),
|
|
458
|
+
(
|
|
459
|
+
"Open https://analytics.gooddata.com/documents/docsearch_weekly_sales_q3",
|
|
460
|
+
["https://analytics.gooddata.com/documents/docsearch_weekly_sales_q3"],
|
|
461
|
+
),
|
|
462
|
+
(
|
|
463
|
+
"[Open document](gooddata://document/docsearch_weekly_sales_q3)",
|
|
464
|
+
["gooddata://document/docsearch_weekly_sales_q3"],
|
|
465
|
+
),
|
|
466
|
+
("[Sales](gooddata://dashboard?ws=ws&id=abc)", ["gooddata://dashboard?ws=ws&id=abc"]),
|
|
467
|
+
(
|
|
468
|
+
"https://h/dashboards/3f2a9c1e-7b4d-4e8a-9c2f-1a2b3c4d5e6f",
|
|
469
|
+
["https://h/dashboards/3f2a9c1e-7b4d-4e8a-9c2f-1a2b3c4d5e6f"],
|
|
470
|
+
),
|
|
471
|
+
("See https://www.gooddata.com/docs/cloud/dashboards/filters/ for filters.", []),
|
|
472
|
+
("Read https://www.gooddata.com/docs/cloud/create-reports/documents/", []),
|
|
473
|
+
("Read https://www.gooddata.com/docs/cloud/create-reports/documents/.", []),
|
|
474
|
+
("See https://example.com/docs/dashboards/v2.1/ for details.", []),
|
|
475
|
+
("Open the list at https://acme.gooddata.com/workspace/ecommerce_demo/reports.", []),
|
|
476
|
+
("GET https://h/api/v1/entities/workspaces/ws/metrics lists them.", []),
|
|
477
|
+
(
|
|
478
|
+
"Open https://h/workspace/ws/reports/document/docsearch_weekly_sales_q3.",
|
|
479
|
+
["https://h/workspace/ws/reports/document/docsearch_weekly_sales_q3"],
|
|
480
|
+
),
|
|
481
|
+
(
|
|
482
|
+
'[Brief](/workspace/ws/reports/document/abc "Weekly brief")',
|
|
483
|
+
["/workspace/ws/reports/document/abc"],
|
|
484
|
+
),
|
|
485
|
+
(
|
|
486
|
+
"https://h/metrics/#/workspace/ws/metric/net_sales",
|
|
487
|
+
["https://h/metrics/#/workspace/ws/metric/net_sales"],
|
|
488
|
+
),
|
|
489
|
+
("https://www.gooddata.com/docs/cloud/reports/overview/", []),
|
|
490
|
+
("https://h/analyze/#/ecommerce_demo/viz_1/edit", ["https://h/analyze/#/ecommerce_demo/viz_1/edit"]),
|
|
491
|
+
],
|
|
492
|
+
)
|
|
493
|
+
def test_object_urls_catch_links_to_workspace_objects(text: str, found: list[str]):
|
|
494
|
+
assert object_urls(text) == found
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
def test_a_link_with_an_id_the_search_returned_is_an_object_link():
|
|
498
|
+
link = "https://intranet.example.com/brief?ref=docsearch_weekly"
|
|
499
|
+
assert object_urls(f"Here: {link}") == []
|
|
500
|
+
assert object_urls(f"Here: {link}", ("docsearch_weekly",)) == [link]
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
def test_a_returned_id_counts_only_as_a_whole_segment_or_value():
|
|
504
|
+
help_link = "https://example.com/docs/salesforce-integration/"
|
|
505
|
+
assert object_urls(f"See {help_link}", ("sales",)) == []
|
|
506
|
+
assert object_urls("Open https://h/x/sales", ("sales",)) == ["https://h/x/sales"]
|
|
507
|
+
assert object_urls("Open https://h/x?id=sales&v=2", ("sales",)) == ["https://h/x?id=sales&v=2"]
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
def test_user_requested_search_false_passes_a_turn_without_search():
|
|
511
|
+
spec = parse_expectation({"search_required": False, "expect_user_requested_search": False})
|
|
512
|
+
assert deterministic_checks(spec, _turn(calls=[]))[0] == {"search_user_requested": True}
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
def test_no_object_urls_reads_the_ids_the_search_returned():
|
|
516
|
+
spec = parse_expectation({"no_object_urls": True})
|
|
517
|
+
link = f"https://intranet.example.com/open?doc={_DOC_ID}"
|
|
518
|
+
checks, details = deterministic_checks(spec, _turn(text=f"Here: {link}", calls=[_DOC_SEARCH]))
|
|
519
|
+
assert checks == {"search_no_object_urls": False}
|
|
520
|
+
assert details["search_no_object_urls"] == {"object_urls": [link]}
|
|
521
|
+
assert deterministic_checks(spec, _turn(text=f"Here: {link}"))[0] == {"search_no_object_urls": True}
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
def test_forbidden_parts_follow_the_client_unhandled_types():
|
|
525
|
+
assert "report" in UNHANDLED_PART_TYPES and "document" in UNHANDLED_PART_TYPES
|
|
526
|
+
assert not {"text", "visualization", "alertProposal", "searchResults"} & UNHANDLED_PART_TYPES
|
|
527
|
+
for ptype in sorted(UNHANDLED_PART_TYPES):
|
|
528
|
+
assert parse_expectation({"forbidden_parts": [ptype]}).forbidden_parts == (ptype,)
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
def test_no_object_urls_check():
|
|
532
|
+
spec = parse_expectation({"no_object_urls": True})
|
|
533
|
+
assert deterministic_checks(spec, _turn(text="Open it from the list."))[0] == {"search_no_object_urls": True}
|
|
534
|
+
link = "https://h/workspace/ws/reports/document/abc"
|
|
535
|
+
checks, details = deterministic_checks(spec, _turn(text=f"Here: {link}"))
|
|
536
|
+
assert checks == {"search_no_object_urls": False}
|
|
537
|
+
assert details["search_no_object_urls"] == {"object_urls": [link]}
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
@pytest.mark.parametrize(
|
|
541
|
+
("expected_output", "message"),
|
|
542
|
+
[
|
|
543
|
+
({"expect_user_requested_search": "yes"}, "expect_user_requested_search"),
|
|
544
|
+
({"widget_objects": []}, "widget_objects"),
|
|
545
|
+
({"widget_objects": ["doc/abc"]}, "widget_objects entry"),
|
|
546
|
+
({"forbidden_parts": "document"}, "forbidden_parts"),
|
|
547
|
+
({"no_object_urls": 1}, "no_object_urls"),
|
|
548
|
+
],
|
|
549
|
+
)
|
|
550
|
+
def test_malformed_new_options_are_rejected(expected_output: dict, message: str):
|
|
551
|
+
with pytest.raises(ValueError, match=message):
|
|
552
|
+
parse_expectation(expected_output)
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
def test_search_required_false_with_a_new_check_is_an_item():
|
|
556
|
+
spec = parse_expectation({"search_required": False, "forbidden_parts": ["dashboard"]})
|
|
557
|
+
assert spec.has_turn_checks
|
|
558
|
+
|
|
559
|
+
|
|
338
560
|
def test_routing_needs_every_required_tool_and_no_forbidden_one():
|
|
339
561
|
describe = {"functionName": "get_object_with_children", "functionArguments": "{}"}
|
|
340
562
|
result = _turn(calls=[_NET_SALES_CALL, describe])
|
|
@@ -702,9 +924,15 @@ def test_every_check_is_a_published_score_name():
|
|
|
702
924
|
"answer_rubric": ["Lists net sales"],
|
|
703
925
|
"expected_limit": 20,
|
|
704
926
|
"no_raw_ids": True,
|
|
927
|
+
"expect_user_requested_search": False,
|
|
928
|
+
"widget_objects": ["metric/net_sales"],
|
|
929
|
+
"forbidden_parts": ["document"],
|
|
930
|
+
"no_object_urls": True,
|
|
705
931
|
}
|
|
932
|
+
turn = _turn(calls=[_NET_SALES_CALL], widgets=[_widget(("metric", "net_sales"))])
|
|
933
|
+
expected["expect_widget"] = True
|
|
706
934
|
with patch(f"{_MODULE}.score_run", return_value=JudgeVerdict(passed=True, reasoning="ok")):
|
|
707
|
-
run, _ = _run(expected,
|
|
935
|
+
run, _ = _run(expected, turn, judge=MagicMock())
|
|
708
936
|
assert set(run.checks) == set(SEARCH_CONDITIONAL_SCORES)
|
|
709
937
|
assert run.passed
|
|
710
938
|
|
|
@@ -868,6 +1096,10 @@ def test_every_check_of_a_report_only_item_is_a_published_diagnostic_name():
|
|
|
868
1096
|
"answer_rubric": ["Lists net sales"],
|
|
869
1097
|
"expected_limit": 20,
|
|
870
1098
|
"no_raw_ids": True,
|
|
1099
|
+
"expect_user_requested_search": True,
|
|
1100
|
+
"widget_objects": ["metric/net_sales"],
|
|
1101
|
+
"forbidden_parts": ["document"],
|
|
1102
|
+
"no_object_urls": True,
|
|
871
1103
|
"report_only": True,
|
|
872
1104
|
}
|
|
873
1105
|
ctx = _scored(expected, JudgeVerdict(passed=True, reasoning="ok"))
|
|
@@ -6,7 +6,7 @@ import json
|
|
|
6
6
|
|
|
7
7
|
import pytest
|
|
8
8
|
from gooddata_eval.core.chat.render import render_answer_text, render_search_results
|
|
9
|
-
from gooddata_eval.core.chat.sse_client import _KNOWN_PART_TYPES, parse_sse_lines
|
|
9
|
+
from gooddata_eval.core.chat.sse_client import _KNOWN_PART_TYPES, UNHANDLED_PART_TYPES, parse_sse_lines
|
|
10
10
|
from gooddata_eval.core.models import ChatResult
|
|
11
11
|
|
|
12
12
|
_SEARCH_PART = {
|
|
@@ -100,6 +100,12 @@ def test_an_unresolved_visualization_part_is_not_treated_as_content():
|
|
|
100
100
|
assert render_answer_text(result) == ""
|
|
101
101
|
|
|
102
102
|
|
|
103
|
+
def test_every_unhandled_part_type_lands_in_unhandled_parts():
|
|
104
|
+
for ptype in sorted(UNHANDLED_PART_TYPES):
|
|
105
|
+
result = parse_sse_lines(_multipart_lines({"type": ptype, ptype: {}}))
|
|
106
|
+
assert [part["type"] for part in result.unhandled_parts] == [ptype], ptype
|
|
107
|
+
|
|
108
|
+
|
|
103
109
|
def test_alert_proposal_part_still_goes_to_its_own_field():
|
|
104
110
|
result = parse_sse_lines(_multipart_lines({"type": "alertProposal", "alertProposal": {"cta": "Create"}}))
|
|
105
111
|
assert result.alert_proposals == [{"cta": "Create"}]
|
|
@@ -112,6 +118,7 @@ def test_known_part_types_matches_the_documented_gen_ai_union():
|
|
|
112
118
|
"visualization",
|
|
113
119
|
"dashboard",
|
|
114
120
|
"dashboardPatch",
|
|
121
|
+
"report",
|
|
115
122
|
"document",
|
|
116
123
|
"kda",
|
|
117
124
|
"whatIf",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/scripts/calibrate_catalog_metadata_judge.py
RENAMED
|
File without changes
|
{gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/scripts/calibrate_knowledge_judge.py
RENAMED
|
File without changes
|
|
File without changes
|
{gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/scripts/verify_guardrail_refusal_criteria.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/cli/agentic_runner.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{gooddata_eval-1.81.1.dev3 → gooddata_eval-1.81.1.dev4}/src/gooddata_eval/core/agentic/_catalog.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|