gooddata-eval 1.80.1.dev7__tar.gz → 1.80.1.dev9__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.80.1.dev7 → gooddata_eval-1.80.1.dev9}/AGENTS.md +4 -1
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/Makefile +4 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/PKG-INFO +128 -5
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/README.md +126 -3
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/pyproject.toml +2 -2
- gooddata_eval-1.80.1.dev9/scripts/calibrate_knowledge_judge.py +62 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/cli/agentic_runner.py +28 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/__init__.py +12 -0
- gooddata_eval-1.80.1.dev9/src/gooddata_eval/core/agentic/agent_switcher.py +863 -0
- gooddata_eval-1.80.1.dev9/src/gooddata_eval/core/agentic/knowledge.py +449 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/chat/sse_client.py +51 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/dataset/langfuse_source.py +30 -3
- gooddata_eval-1.80.1.dev9/src/gooddata_eval/core/evaluators/knowledge.py +246 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/interaction.py +2 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/models.py +51 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/reporting/html_report.py +25 -1
- gooddata_eval-1.80.1.dev9/tests/fixtures/knowledge_calibration.json +98 -0
- gooddata_eval-1.80.1.dev9/tests/test_agentic_agent_switcher.py +688 -0
- gooddata_eval-1.80.1.dev9/tests/test_agentic_knowledge.py +330 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_runner.py +40 -1
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_cli.py +47 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_html_report.py +33 -0
- gooddata_eval-1.80.1.dev9/tests/test_knowledge_evaluator.py +407 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_source.py +15 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_sse_client.py +81 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_trace_linker.py +2 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/.gitignore +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/CLAUDE.md +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/LICENSE.txt +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/scripts/calibrate_catalog_metadata_judge.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/scripts/calibrate_takeaway_judge.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/scripts/verify_guardrail_refusal_criteria.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/_version.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/cli/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/cli/main.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/_output.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/_retry.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_catalog.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_clarification.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_conversation_context.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_editor_takeaways.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_failed_runs.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_failure_message.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_filters.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_gate.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_langfuse.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_metric_expectation.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_metric_workspace.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_outcome.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_search_expectation.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/_trace_linker.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/alert_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/anomaly_detection.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/conversation.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/dashboard_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/dashboard_summary.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/document_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/forecasting.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/general_question.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/guardrail.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/kda_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/metric_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/report_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/search_tool.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/visualization.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/what_if.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/catalog/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/catalog/evaluate.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/catalog/http_client.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/chat/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/chat/render.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/config.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/connection.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/dataset/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/dataset/from_insights.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/dataset/local.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_deep_subset.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_guardrail_criteria.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_llm_judge.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_maql.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_rubric.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/_text_utils.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/alert_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/base.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/catalog_metadata.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/general_question.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/guardrail.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/metric_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/search_tool.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/summary.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/takeaway.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/evaluators/visualization.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/granularity.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/_env.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/client.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/experiment.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/item_scope.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/observations.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/otlp.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/langfuse/sink.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/number_format.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/outcome.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/reporting/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/reporting/console.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/reporting/json_report.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/reporting/report_template.html +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/runner.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/scoring.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/summary/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/summary/http_client.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/takeaway/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/takeaway/evaluate.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/takeaway/http_client.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/timing.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/workspace.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/__init__.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/_fake_langfuse.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/conftest.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/fixtures/catalog_metadata_calibration.json +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/fixtures/sample_dataset/metric_skill_create.json +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/fixtures/sample_dataset/visualization_revenue.json +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/fixtures/sse_visualization_stream.txt +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/fixtures/takeaway_calibration.json +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_alert_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_anomaly_detection.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_conversation.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_dashboard_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_dashboard_summary.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_document_editor_takeaways.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_document_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_failure_message.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_forecasting.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_gate.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_general_question.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_guardrail.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_join_trace.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_kda_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_langfuse_trace.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_metric_skill.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_metric_skill_options.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_observe_experiment.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_run_context.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_search_tool.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_search_tool_checks.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_visualization.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_agentic_what_if.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_alert_skill_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_catalog_metadata_client.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_catalog_metadata_evaluate.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_catalog_metadata_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_chat_render.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_connection.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_context_date_filter.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_deep_subset.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_eval_error_scores.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_fake_langfuse.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_from_insights.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_guardrail_criteria.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_interaction.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_client.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_e2e_fake_server.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_env.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_experiment.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_item_scope.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_observations.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_otlp.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_langfuse_sink.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_llm_judge.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_local_loader.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_maql_normalize.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_metric_skill_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_models.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_number_format.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_outcome.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_reporting.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_runner.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_scoring.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_search_tool_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_summary_client.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_summary_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_takeaway_client.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_takeaway_evaluate.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_takeaway_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_text_evaluators.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_timing.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_visualization_evaluator.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tests/test_workspace.py +0 -0
- {gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/tox.ini +0 -0
|
@@ -63,7 +63,10 @@ implementation, sometimes under different `test_kind` strings (`search_tool` vs
|
|
|
63
63
|
its own shape. `test_kind` on the item is what labels the result, not the evaluator class,
|
|
64
64
|
which is why `knowledge_question` can reuse `GeneralQuestionEvaluator` verbatim.
|
|
65
65
|
`dashboard_summary` items additionally need `summary_input`, `document_takeaway` items
|
|
66
|
-
`takeaway_input`, `catalog_metadata` items `catalog_input
|
|
66
|
+
`takeaway_input`, `catalog_metadata` items `catalog_input`, `agentic_agent_switcher` items
|
|
67
|
+
`agent_switcher_input`. `agentic_knowledge` items keep earlier user turns in
|
|
68
|
+
`expected_output.setup_turns` (`question` is the graded turn); their evaluator lives in
|
|
69
|
+
`core/evaluators/knowledge.py` but is agentic-only, so it is not in the single-shot registry.
|
|
67
70
|
|
|
68
71
|
## Running the pipeline
|
|
69
72
|
|
|
@@ -8,3 +8,7 @@ calibrate-takeaway:
|
|
|
8
8
|
.PHONY: calibrate-catalog-metadata
|
|
9
9
|
calibrate-catalog-metadata:
|
|
10
10
|
uv run --package gooddata-eval --extra llm-judge python scripts/calibrate_catalog_metadata_judge.py
|
|
11
|
+
|
|
12
|
+
.PHONY: calibrate-knowledge
|
|
13
|
+
calibrate-knowledge:
|
|
14
|
+
uv run --package gooddata-eval --extra llm-judge python scripts/calibrate_knowledge_judge.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: gooddata-eval
|
|
3
|
-
Version: 1.80.1.
|
|
3
|
+
Version: 1.80.1.dev9
|
|
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.80.1.
|
|
21
|
+
Requires-Dist: gooddata-sdk~=1.80.1.dev9
|
|
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
|
|
@@ -162,7 +162,7 @@ gd-eval run \
|
|
|
162
162
|
| `--runs K` | `2` | Independent runs per item. |
|
|
163
163
|
| `--gate` | `any` | Which verdict decides an item: `any` = pass@K (a run passing is enough), `power` = pass^K (every run must pass, so the verdict measures stability). Identical at `--runs 1`. Kinds that repeat K runs only — `power` is refused when the dataset also has non-agentic items or `agentic_conversation`, which are always decided on pass@K. |
|
|
164
164
|
| `--concurrency K` | `1` | Number of items evaluated concurrently. `1` = sequential (default). Increase to load-test the agent under simultaneous requests — see *Concurrency and workspace safety* below. |
|
|
165
|
-
| `--judge-model MODEL` | `gpt-4o` | Model used for LLM-as-judge scoring — `agentic_general_question`, `agentic_guardrail`, `general_question`, `guardrail`, `dashboard_summary`, `document_takeaway` and `
|
|
165
|
+
| `--judge-model MODEL` | `gpt-4o` | Model used for LLM-as-judge scoring — `agentic_general_question`, `agentic_guardrail`, `general_question`, `guardrail`, `dashboard_summary`, `document_takeaway`, `catalog_metadata` and `agentic_knowledge`. Also settable via `GD_EVAL_JUDGE_MODEL`. Two things to weigh before changing it: the gpt-5 family rejects `temperature=0`, so verdicts stop being reproducible (the run warns when this happens); and choosing the same model the agent runs means the judge grades its own family's output. |
|
|
166
166
|
| `--reasoning-effort LEVEL` | server default | `LOW`, `MEDIUM` or `HIGH`, sent as `options.reasoningEffort` on every chat message. Requires the `enableGenAiReasoningEffort` feature flag on the target organization — without it the server ignores the value. Applies to chat items only; `dashboard_summary`, `document_takeaway` and `catalog_metadata` items go through their own endpoints, which have no such option. |
|
|
167
167
|
|
|
168
168
|
**Concurrency and workspace safety.** Agentic kinds that create workspace objects
|
|
@@ -353,8 +353,8 @@ their eval kind, and states latency for each:
|
|
|
353
353
|
`agentic_general_question`, `agentic_guardrail` and `agentic_search`.
|
|
354
354
|
- **Multi-turn** — kinds that drive a simulated user or fixture turns: `agentic_visualization` (and
|
|
355
355
|
`vis_agentic`), `agentic_metric_skill`, `agentic_alert_skill`, `agentic_dashboard_skill`,
|
|
356
|
-
`agentic_document_skill`, `agentic_kda_skill`, `agentic_anomaly_detection`, `agentic_what_if
|
|
357
|
-
`agentic_conversation`.
|
|
356
|
+
`agentic_document_skill`, `agentic_kda_skill`, `agentic_anomaly_detection`, `agentic_what_if`,
|
|
357
|
+
`agentic_agent_switcher`, `agentic_knowledge` and `agentic_conversation`.
|
|
358
358
|
|
|
359
359
|
```json
|
|
360
360
|
"summary": {
|
|
@@ -942,6 +942,127 @@ A 200 answer with no usable text (a null value without a note, or the placeholde
|
|
|
942
942
|
`OPENAI_API_KEY`); re-run it after changing them. Request errors are handled as for
|
|
943
943
|
`document_takeaway`; the CI entry point is `evaluate_catalog_metadata`.
|
|
944
944
|
|
|
945
|
+
### `agentic_agent_switcher` items
|
|
946
|
+
|
|
947
|
+
Agent-switcher items drive one conversation through several agents. The conversation is created
|
|
948
|
+
with `agent_id`; a turn with `switch_to` calls
|
|
949
|
+
`POST /api/v1/ai/workspaces/{ws}/chat/conversations/{id}/switchAgent` before its message is sent.
|
|
950
|
+
Each of the `--runs` replays every turn on a new conversation. Switching needs the agent-switching
|
|
951
|
+
feature flag. With it off, gen-ai binds the new conversation to another agent, and the run fails
|
|
952
|
+
before its first message, naming the flag; a 404 on a switch fails the run too. In a Langfuse dataset the block goes in
|
|
953
|
+
the item's `metadata` or its `input` object; an item carrying it is an `agentic_agent_switcher`
|
|
954
|
+
item unless it declares another `test_kind` or its `expectedOutput` has a `visualization` key (that
|
|
955
|
+
infers `vis_agentic`); `metadata.test_kind: "agentic_agent_switcher"` forces the switcher kind.
|
|
956
|
+
`question` only labels the item. Stop an item's turns at the alert proposal: the kind never confirms
|
|
957
|
+
a proposal and deletes no alerts, so a turn that confirms one ("Yes, create it") creates a real alert
|
|
958
|
+
that stays in the workspace.
|
|
959
|
+
|
|
960
|
+
```json
|
|
961
|
+
{
|
|
962
|
+
"id": "switch-001",
|
|
963
|
+
"dataset_name": "agent_switcher",
|
|
964
|
+
"test_kind": "agentic_agent_switcher",
|
|
965
|
+
"question": "Plan with the planner agent, build the alert with the builder agent",
|
|
966
|
+
"expected_output": {},
|
|
967
|
+
"agent_switcher_input": {
|
|
968
|
+
"agent_id": "planner",
|
|
969
|
+
"turns": [
|
|
970
|
+
{"message": "I want to watch revenue every week and hear when it drops below 1000."},
|
|
971
|
+
{
|
|
972
|
+
"message": "Set that up now.",
|
|
973
|
+
"switch_to": "builder",
|
|
974
|
+
"checks": {
|
|
975
|
+
"must_include": ["Restates the plan the user gave earlier: weekly revenue, below 1000."],
|
|
976
|
+
"must_not_include": ["Asks the user to repeat the plan."],
|
|
977
|
+
"skills_used": ["alert"],
|
|
978
|
+
"skills_not_used": ["visualization"],
|
|
979
|
+
"alert_metric": "revenue"
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
{"message": "Also chart revenue by region.", "checks": {"visualization": {"metrics": ["revenue"], "attributes": ["region"]}}}
|
|
983
|
+
]
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
```
|
|
987
|
+
|
|
988
|
+
`agent_id` and at least one turn are required; unknown keys are rejected at every level. Every
|
|
989
|
+
`checks` key is optional:
|
|
990
|
+
|
|
991
|
+
- `must_include`, `must_not_include` — LLM judge criteria for this turn's answer. The judge sees the
|
|
992
|
+
transcript so far, each earlier answer labelled with the agent that gave it.
|
|
993
|
+
- `skills_used`, `skills_not_used` — skills whose tools this turn must (not) run: the `skillsInUse`
|
|
994
|
+
names on the turn's `toolCall` items, read from the conversation items after the last turn. A skill
|
|
995
|
+
still active from an earlier turn counts as soon as one of its tools runs, with no new `set_skills`
|
|
996
|
+
call; a skill that was requested but whose tools never ran does not count. When the items cannot be
|
|
997
|
+
read, every skills check fails.
|
|
998
|
+
- `alert_metric` — the primary (first) measure of the turn's alert proposal is this metric id, with or
|
|
999
|
+
without the `metric/` prefix; the comparison measure of a metric-to-metric alert does not count.
|
|
1000
|
+
- `visualization` — a chart created in this turn uses these `metrics` and `attributes` (label ids),
|
|
1001
|
+
with or without the `metric/` / `label/` prefix; extra fields are allowed.
|
|
1002
|
+
|
|
1003
|
+
Two diagnostics are read from the conversation items after the last turn of a run that sent every
|
|
1004
|
+
turn: `agent_stamped` (every assistant item of a turn carries the agent active at that turn) and
|
|
1005
|
+
`switch_marker` (one system marker with `trigger` `agent_switched` per switch, carrying the new
|
|
1006
|
+
agent). They are API contracts: the run detail (`diagnostics`, `diagnostic_failures`) and Langfuse
|
|
1007
|
+
scores record them, but they never fail a run. A run stopped earlier (another bound agent, a failed
|
|
1008
|
+
switch or send) records neither. When the items cannot be read, a run with a skills check fails, and
|
|
1009
|
+
any other run records `items_read` under `diagnostic_failures` and is still graded. Items belong to
|
|
1010
|
+
the turn whose `responseId` they carry, so a send the client retried does not shift the later turns.
|
|
1011
|
+
A switch to the agent already bound changes nothing and expects no marker. A run fails before its
|
|
1012
|
+
first message when the new conversation is bound to another agent (`agent_bound`). Per-turn checks
|
|
1013
|
+
are reported as `turn<N>_<check>`, e.g. `turn2_skills_used`, `turn2_include_0`. The CI entry point
|
|
1014
|
+
is `evaluate_agentic_agent_switcher`, which takes the whole item; `--agent-id` does not apply.
|
|
1015
|
+
|
|
1016
|
+
### `agentic_knowledge` items
|
|
1017
|
+
|
|
1018
|
+
Knowledge items ask the AI chat questions it answers from knowledge documents (tools
|
|
1019
|
+
`search_knowledge` and `get_knowledge_chunks`). Each run is a fresh conversation that sends
|
|
1020
|
+
`expected_output.setup_turns` in order (no simulated user), then `question`, and grades the
|
|
1021
|
+
answer to `question`. `question` is the graded turn; `setup_turns` (a JSON array of non-empty
|
|
1022
|
+
strings, optional) holds the earlier user turns of a multi-turn item, as in `agentic_search`.
|
|
1023
|
+
In a Langfuse dataset, set `test_kind` (in
|
|
1024
|
+
`metadata` or `expectedOutput`) to route an item to this kind.
|
|
1025
|
+
|
|
1026
|
+
```json
|
|
1027
|
+
{
|
|
1028
|
+
"id": "kn-001",
|
|
1029
|
+
"dataset_name": "agent_knowledge",
|
|
1030
|
+
"test_kind": "agentic_knowledge",
|
|
1031
|
+
"question": "And for 45 %?",
|
|
1032
|
+
"expected_output": {
|
|
1033
|
+
"setup_turns": ["Who must approve a 30 % discount?"],
|
|
1034
|
+
"expected_documents": ["Discount Policy"],
|
|
1035
|
+
"forbidden_documents": ["Discount Policy 2023"],
|
|
1036
|
+
"expected_source": "the parent workspace",
|
|
1037
|
+
"must_include": ["Says that discounts above 40 % are not allowed."],
|
|
1038
|
+
"must_not_include": ["Says that the CFO must approve the discount."]
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
```
|
|
1042
|
+
|
|
1043
|
+
Every `expected_output` key is optional; unknown keys and wrong types are rejected before
|
|
1044
|
+
any request. Code checks over the knowledge tool results of all turns gate the verdict, so a
|
|
1045
|
+
failed item shows whether retrieval (document never found) or reasoning (found, answered
|
|
1046
|
+
wrong) failed:
|
|
1047
|
+
|
|
1048
|
+
- `expect_search` (default `true`) — at least one `search_knowledge` call (`knowledge_searched`).
|
|
1049
|
+
- `expected_documents` — each title is in some knowledge tool result (`expected_documents_found`).
|
|
1050
|
+
- `forbidden_documents` — no title is in any knowledge tool result (`forbidden_documents_absent`).
|
|
1051
|
+
- `expected_source` — an expected document's result carries this `source` label
|
|
1052
|
+
(`expected_source_found`); needs `expected_documents`. One of gen-ai's labels: `this
|
|
1053
|
+
workspace`, `the parent workspace`, `an ancestor workspace`, `AI Hub`.
|
|
1054
|
+
- `must_include`, `must_not_include`, `rubric` — judge criteria on the answer to `question`,
|
|
1055
|
+
graded like `dashboard_summary`; the judge reads the setup turns and their answers as INPUT.
|
|
1056
|
+
|
|
1057
|
+
Titles match case-insensitively on a result's `title` or `filename`. An answer to `question`
|
|
1058
|
+
without text fails (`answered`). Diagnostics that never gate: `documents_retrieved`,
|
|
1059
|
+
`sources_cited` (titles in the answer's trailing "Sources" list) and `turn_count`. Langfuse
|
|
1060
|
+
gets `knowledge_pass` plus each code check as its own score per run; `quality_score` counts the
|
|
1061
|
+
code checks and judge verdicts. A run the judge could not grade is an ERROR (`eval_error`), not
|
|
1062
|
+
a fail. The judge steps are calibrated with
|
|
1063
|
+
`make calibrate-knowledge` (needs `OPENAI_API_KEY`); the CI entry point is
|
|
1064
|
+
`evaluate_agentic_knowledge`.
|
|
1065
|
+
|
|
945
1066
|
### Items asked in a dashboard context (`user_context`)
|
|
946
1067
|
|
|
947
1068
|
An item can be asked the way a user asks from an open dashboard or an attached widget.
|
|
@@ -1043,6 +1164,8 @@ from that turn on until another turn changes it, as the attached context does in
|
|
|
1043
1164
|
| `dashboard_summary` | Dashboard summary (via `/summary` endpoint) scored against a rubric by LLM | `[llm-judge]` |
|
|
1044
1165
|
| `document_takeaway` | One short takeaway for a page (via `/takeaway` endpoint): deterministic format checks plus a rubric scored by LLM | `[llm-judge]` |
|
|
1045
1166
|
| `catalog_metadata` | Analytics Catalog title or description for one object (via the `analyticsCatalog/generate*` endpoints): format checks plus a rubric scored by LLM | `[llm-judge]` |
|
|
1167
|
+
| `agentic_agent_switcher` | One conversation switched between agents: each answer stamped with the active agent, one switch marker per switch, and per-turn judge, skill, alert and chart checks | `agent_switcher_input`; `[llm-judge]` for judge criteria |
|
|
1168
|
+
| `agentic_knowledge` | Answer from knowledge documents, after optional setup turns: retrieval checks on the knowledge tool results plus a rubric on the last answer scored by LLM | `[llm-judge]` |
|
|
1046
1169
|
|
|
1047
1170
|
## Optional extras
|
|
1048
1171
|
|
|
@@ -132,7 +132,7 @@ gd-eval run \
|
|
|
132
132
|
| `--runs K` | `2` | Independent runs per item. |
|
|
133
133
|
| `--gate` | `any` | Which verdict decides an item: `any` = pass@K (a run passing is enough), `power` = pass^K (every run must pass, so the verdict measures stability). Identical at `--runs 1`. Kinds that repeat K runs only — `power` is refused when the dataset also has non-agentic items or `agentic_conversation`, which are always decided on pass@K. |
|
|
134
134
|
| `--concurrency K` | `1` | Number of items evaluated concurrently. `1` = sequential (default). Increase to load-test the agent under simultaneous requests — see *Concurrency and workspace safety* below. |
|
|
135
|
-
| `--judge-model MODEL` | `gpt-4o` | Model used for LLM-as-judge scoring — `agentic_general_question`, `agentic_guardrail`, `general_question`, `guardrail`, `dashboard_summary`, `document_takeaway` and `
|
|
135
|
+
| `--judge-model MODEL` | `gpt-4o` | Model used for LLM-as-judge scoring — `agentic_general_question`, `agentic_guardrail`, `general_question`, `guardrail`, `dashboard_summary`, `document_takeaway`, `catalog_metadata` and `agentic_knowledge`. Also settable via `GD_EVAL_JUDGE_MODEL`. Two things to weigh before changing it: the gpt-5 family rejects `temperature=0`, so verdicts stop being reproducible (the run warns when this happens); and choosing the same model the agent runs means the judge grades its own family's output. |
|
|
136
136
|
| `--reasoning-effort LEVEL` | server default | `LOW`, `MEDIUM` or `HIGH`, sent as `options.reasoningEffort` on every chat message. Requires the `enableGenAiReasoningEffort` feature flag on the target organization — without it the server ignores the value. Applies to chat items only; `dashboard_summary`, `document_takeaway` and `catalog_metadata` items go through their own endpoints, which have no such option. |
|
|
137
137
|
|
|
138
138
|
**Concurrency and workspace safety.** Agentic kinds that create workspace objects
|
|
@@ -323,8 +323,8 @@ their eval kind, and states latency for each:
|
|
|
323
323
|
`agentic_general_question`, `agentic_guardrail` and `agentic_search`.
|
|
324
324
|
- **Multi-turn** — kinds that drive a simulated user or fixture turns: `agentic_visualization` (and
|
|
325
325
|
`vis_agentic`), `agentic_metric_skill`, `agentic_alert_skill`, `agentic_dashboard_skill`,
|
|
326
|
-
`agentic_document_skill`, `agentic_kda_skill`, `agentic_anomaly_detection`, `agentic_what_if
|
|
327
|
-
`agentic_conversation`.
|
|
326
|
+
`agentic_document_skill`, `agentic_kda_skill`, `agentic_anomaly_detection`, `agentic_what_if`,
|
|
327
|
+
`agentic_agent_switcher`, `agentic_knowledge` and `agentic_conversation`.
|
|
328
328
|
|
|
329
329
|
```json
|
|
330
330
|
"summary": {
|
|
@@ -912,6 +912,127 @@ A 200 answer with no usable text (a null value without a note, or the placeholde
|
|
|
912
912
|
`OPENAI_API_KEY`); re-run it after changing them. Request errors are handled as for
|
|
913
913
|
`document_takeaway`; the CI entry point is `evaluate_catalog_metadata`.
|
|
914
914
|
|
|
915
|
+
### `agentic_agent_switcher` items
|
|
916
|
+
|
|
917
|
+
Agent-switcher items drive one conversation through several agents. The conversation is created
|
|
918
|
+
with `agent_id`; a turn with `switch_to` calls
|
|
919
|
+
`POST /api/v1/ai/workspaces/{ws}/chat/conversations/{id}/switchAgent` before its message is sent.
|
|
920
|
+
Each of the `--runs` replays every turn on a new conversation. Switching needs the agent-switching
|
|
921
|
+
feature flag. With it off, gen-ai binds the new conversation to another agent, and the run fails
|
|
922
|
+
before its first message, naming the flag; a 404 on a switch fails the run too. In a Langfuse dataset the block goes in
|
|
923
|
+
the item's `metadata` or its `input` object; an item carrying it is an `agentic_agent_switcher`
|
|
924
|
+
item unless it declares another `test_kind` or its `expectedOutput` has a `visualization` key (that
|
|
925
|
+
infers `vis_agentic`); `metadata.test_kind: "agentic_agent_switcher"` forces the switcher kind.
|
|
926
|
+
`question` only labels the item. Stop an item's turns at the alert proposal: the kind never confirms
|
|
927
|
+
a proposal and deletes no alerts, so a turn that confirms one ("Yes, create it") creates a real alert
|
|
928
|
+
that stays in the workspace.
|
|
929
|
+
|
|
930
|
+
```json
|
|
931
|
+
{
|
|
932
|
+
"id": "switch-001",
|
|
933
|
+
"dataset_name": "agent_switcher",
|
|
934
|
+
"test_kind": "agentic_agent_switcher",
|
|
935
|
+
"question": "Plan with the planner agent, build the alert with the builder agent",
|
|
936
|
+
"expected_output": {},
|
|
937
|
+
"agent_switcher_input": {
|
|
938
|
+
"agent_id": "planner",
|
|
939
|
+
"turns": [
|
|
940
|
+
{"message": "I want to watch revenue every week and hear when it drops below 1000."},
|
|
941
|
+
{
|
|
942
|
+
"message": "Set that up now.",
|
|
943
|
+
"switch_to": "builder",
|
|
944
|
+
"checks": {
|
|
945
|
+
"must_include": ["Restates the plan the user gave earlier: weekly revenue, below 1000."],
|
|
946
|
+
"must_not_include": ["Asks the user to repeat the plan."],
|
|
947
|
+
"skills_used": ["alert"],
|
|
948
|
+
"skills_not_used": ["visualization"],
|
|
949
|
+
"alert_metric": "revenue"
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
{"message": "Also chart revenue by region.", "checks": {"visualization": {"metrics": ["revenue"], "attributes": ["region"]}}}
|
|
953
|
+
]
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
```
|
|
957
|
+
|
|
958
|
+
`agent_id` and at least one turn are required; unknown keys are rejected at every level. Every
|
|
959
|
+
`checks` key is optional:
|
|
960
|
+
|
|
961
|
+
- `must_include`, `must_not_include` — LLM judge criteria for this turn's answer. The judge sees the
|
|
962
|
+
transcript so far, each earlier answer labelled with the agent that gave it.
|
|
963
|
+
- `skills_used`, `skills_not_used` — skills whose tools this turn must (not) run: the `skillsInUse`
|
|
964
|
+
names on the turn's `toolCall` items, read from the conversation items after the last turn. A skill
|
|
965
|
+
still active from an earlier turn counts as soon as one of its tools runs, with no new `set_skills`
|
|
966
|
+
call; a skill that was requested but whose tools never ran does not count. When the items cannot be
|
|
967
|
+
read, every skills check fails.
|
|
968
|
+
- `alert_metric` — the primary (first) measure of the turn's alert proposal is this metric id, with or
|
|
969
|
+
without the `metric/` prefix; the comparison measure of a metric-to-metric alert does not count.
|
|
970
|
+
- `visualization` — a chart created in this turn uses these `metrics` and `attributes` (label ids),
|
|
971
|
+
with or without the `metric/` / `label/` prefix; extra fields are allowed.
|
|
972
|
+
|
|
973
|
+
Two diagnostics are read from the conversation items after the last turn of a run that sent every
|
|
974
|
+
turn: `agent_stamped` (every assistant item of a turn carries the agent active at that turn) and
|
|
975
|
+
`switch_marker` (one system marker with `trigger` `agent_switched` per switch, carrying the new
|
|
976
|
+
agent). They are API contracts: the run detail (`diagnostics`, `diagnostic_failures`) and Langfuse
|
|
977
|
+
scores record them, but they never fail a run. A run stopped earlier (another bound agent, a failed
|
|
978
|
+
switch or send) records neither. When the items cannot be read, a run with a skills check fails, and
|
|
979
|
+
any other run records `items_read` under `diagnostic_failures` and is still graded. Items belong to
|
|
980
|
+
the turn whose `responseId` they carry, so a send the client retried does not shift the later turns.
|
|
981
|
+
A switch to the agent already bound changes nothing and expects no marker. A run fails before its
|
|
982
|
+
first message when the new conversation is bound to another agent (`agent_bound`). Per-turn checks
|
|
983
|
+
are reported as `turn<N>_<check>`, e.g. `turn2_skills_used`, `turn2_include_0`. The CI entry point
|
|
984
|
+
is `evaluate_agentic_agent_switcher`, which takes the whole item; `--agent-id` does not apply.
|
|
985
|
+
|
|
986
|
+
### `agentic_knowledge` items
|
|
987
|
+
|
|
988
|
+
Knowledge items ask the AI chat questions it answers from knowledge documents (tools
|
|
989
|
+
`search_knowledge` and `get_knowledge_chunks`). Each run is a fresh conversation that sends
|
|
990
|
+
`expected_output.setup_turns` in order (no simulated user), then `question`, and grades the
|
|
991
|
+
answer to `question`. `question` is the graded turn; `setup_turns` (a JSON array of non-empty
|
|
992
|
+
strings, optional) holds the earlier user turns of a multi-turn item, as in `agentic_search`.
|
|
993
|
+
In a Langfuse dataset, set `test_kind` (in
|
|
994
|
+
`metadata` or `expectedOutput`) to route an item to this kind.
|
|
995
|
+
|
|
996
|
+
```json
|
|
997
|
+
{
|
|
998
|
+
"id": "kn-001",
|
|
999
|
+
"dataset_name": "agent_knowledge",
|
|
1000
|
+
"test_kind": "agentic_knowledge",
|
|
1001
|
+
"question": "And for 45 %?",
|
|
1002
|
+
"expected_output": {
|
|
1003
|
+
"setup_turns": ["Who must approve a 30 % discount?"],
|
|
1004
|
+
"expected_documents": ["Discount Policy"],
|
|
1005
|
+
"forbidden_documents": ["Discount Policy 2023"],
|
|
1006
|
+
"expected_source": "the parent workspace",
|
|
1007
|
+
"must_include": ["Says that discounts above 40 % are not allowed."],
|
|
1008
|
+
"must_not_include": ["Says that the CFO must approve the discount."]
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
```
|
|
1012
|
+
|
|
1013
|
+
Every `expected_output` key is optional; unknown keys and wrong types are rejected before
|
|
1014
|
+
any request. Code checks over the knowledge tool results of all turns gate the verdict, so a
|
|
1015
|
+
failed item shows whether retrieval (document never found) or reasoning (found, answered
|
|
1016
|
+
wrong) failed:
|
|
1017
|
+
|
|
1018
|
+
- `expect_search` (default `true`) — at least one `search_knowledge` call (`knowledge_searched`).
|
|
1019
|
+
- `expected_documents` — each title is in some knowledge tool result (`expected_documents_found`).
|
|
1020
|
+
- `forbidden_documents` — no title is in any knowledge tool result (`forbidden_documents_absent`).
|
|
1021
|
+
- `expected_source` — an expected document's result carries this `source` label
|
|
1022
|
+
(`expected_source_found`); needs `expected_documents`. One of gen-ai's labels: `this
|
|
1023
|
+
workspace`, `the parent workspace`, `an ancestor workspace`, `AI Hub`.
|
|
1024
|
+
- `must_include`, `must_not_include`, `rubric` — judge criteria on the answer to `question`,
|
|
1025
|
+
graded like `dashboard_summary`; the judge reads the setup turns and their answers as INPUT.
|
|
1026
|
+
|
|
1027
|
+
Titles match case-insensitively on a result's `title` or `filename`. An answer to `question`
|
|
1028
|
+
without text fails (`answered`). Diagnostics that never gate: `documents_retrieved`,
|
|
1029
|
+
`sources_cited` (titles in the answer's trailing "Sources" list) and `turn_count`. Langfuse
|
|
1030
|
+
gets `knowledge_pass` plus each code check as its own score per run; `quality_score` counts the
|
|
1031
|
+
code checks and judge verdicts. A run the judge could not grade is an ERROR (`eval_error`), not
|
|
1032
|
+
a fail. The judge steps are calibrated with
|
|
1033
|
+
`make calibrate-knowledge` (needs `OPENAI_API_KEY`); the CI entry point is
|
|
1034
|
+
`evaluate_agentic_knowledge`.
|
|
1035
|
+
|
|
915
1036
|
### Items asked in a dashboard context (`user_context`)
|
|
916
1037
|
|
|
917
1038
|
An item can be asked the way a user asks from an open dashboard or an attached widget.
|
|
@@ -1013,6 +1134,8 @@ from that turn on until another turn changes it, as the attached context does in
|
|
|
1013
1134
|
| `dashboard_summary` | Dashboard summary (via `/summary` endpoint) scored against a rubric by LLM | `[llm-judge]` |
|
|
1014
1135
|
| `document_takeaway` | One short takeaway for a page (via `/takeaway` endpoint): deterministic format checks plus a rubric scored by LLM | `[llm-judge]` |
|
|
1015
1136
|
| `catalog_metadata` | Analytics Catalog title or description for one object (via the `analyticsCatalog/generate*` endpoints): format checks plus a rubric scored by LLM | `[llm-judge]` |
|
|
1137
|
+
| `agentic_agent_switcher` | One conversation switched between agents: each answer stamped with the active agent, one switch marker per switch, and per-turn judge, skill, alert and chart checks | `agent_switcher_input`; `[llm-judge]` for judge criteria |
|
|
1138
|
+
| `agentic_knowledge` | Answer from knowledge documents, after optional setup turns: retrieval checks on the knowledge tool results plus a rubric on the last answer scored by LLM | `[llm-judge]` |
|
|
1016
1139
|
|
|
1017
1140
|
## Optional extras
|
|
1018
1141
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# (C) 2026 GoodData Corporation
|
|
2
2
|
[project]
|
|
3
3
|
name = "gooddata-eval"
|
|
4
|
-
version = "1.80.1.
|
|
4
|
+
version = "1.80.1.dev9"
|
|
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.80.1.
|
|
14
|
+
"gooddata-sdk~=1.80.1.dev9",
|
|
15
15
|
"httpx>=0.27,<1.0",
|
|
16
16
|
"jsonpatch>=1.33,<2.0",
|
|
17
17
|
"orjson>=3.9.15,<4.0.0",
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# (C) 2026 GoodData Corporation
|
|
2
|
+
"""Does the real judge grade agentic_knowledge criteria on the right side?
|
|
3
|
+
|
|
4
|
+
tests/test_knowledge_evaluator.py pins the wiring, not the verdict. This pins the verdict,
|
|
5
|
+
against tests/fixtures/knowledge_calibration.json: each case is one question, one criterion
|
|
6
|
+
and one real answer, and the criterion must be satisfied ("pass") or not ("fail") on every run.
|
|
7
|
+
|
|
8
|
+
Run it after changing the judge steps in core/evaluators/knowledge.py:
|
|
9
|
+
|
|
10
|
+
OPENAI_API_KEY=... make calibrate-knowledge
|
|
11
|
+
|
|
12
|
+
A script, not a test: CI has no OPENAI_API_KEY. Exits 1 on any mismatch.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
import json
|
|
16
|
+
import os
|
|
17
|
+
import sys
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
|
|
20
|
+
from gooddata_eval.core.evaluators.knowledge import AgenticKnowledgeEvaluator
|
|
21
|
+
from gooddata_eval.core.models import ChatResult, DatasetItem
|
|
22
|
+
|
|
23
|
+
RUNS = 3
|
|
24
|
+
FIXTURE = Path(__file__).resolve().parent.parent / "tests" / "fixtures" / "knowledge_calibration.json"
|
|
25
|
+
_FIELDS = {"include": "must_include", "exclude": "must_not_include"}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def main() -> int:
|
|
29
|
+
if not os.environ.get("OPENAI_API_KEY"):
|
|
30
|
+
raise SystemExit("OPENAI_API_KEY required")
|
|
31
|
+
cases = json.loads(FIXTURE.read_text(encoding="utf-8"))
|
|
32
|
+
evaluator = AgenticKnowledgeEvaluator()
|
|
33
|
+
print(f"judge model: {evaluator._positive_judge.model}, runs: {RUNS}")
|
|
34
|
+
mismatches = 0
|
|
35
|
+
for case in cases:
|
|
36
|
+
item = DatasetItem(
|
|
37
|
+
id=case["label"],
|
|
38
|
+
dataset_name="knowledge_calibration",
|
|
39
|
+
test_kind="agentic_knowledge",
|
|
40
|
+
question=case["question"],
|
|
41
|
+
# No tool calls here: only the judge is calibrated.
|
|
42
|
+
expected_output={_FIELDS[case["kind"]]: [case["criterion"]], "expect_search": False},
|
|
43
|
+
)
|
|
44
|
+
chat = ChatResult(text_response=case["text"])
|
|
45
|
+
key = f"{case['kind']}_0"
|
|
46
|
+
verdicts = [evaluator.evaluate(item, [chat]).detail.get(key) for _ in range(RUNS)]
|
|
47
|
+
ungraded = sum(not isinstance(v, bool) for v in verdicts)
|
|
48
|
+
satisfied = sum(v is True for v in verdicts)
|
|
49
|
+
want = RUNS if case["want"] == "pass" else 0
|
|
50
|
+
# An ungraded run proves nothing, on either side.
|
|
51
|
+
ok = satisfied == want and not ungraded
|
|
52
|
+
mismatches += not ok
|
|
53
|
+
print(
|
|
54
|
+
f"{case['label'][:44]:44} {case['kind']:7} want {case['want']:4} satisfied {satisfied}/{RUNS}"
|
|
55
|
+
f"{f' ungraded {ungraded}' if ungraded else ''} {'OK' if ok else 'MISMATCH'}"
|
|
56
|
+
)
|
|
57
|
+
print(f"\n{'all calibration answers on the right side' if not mismatches else f'{mismatches} mismatch(es)'}")
|
|
58
|
+
return 1 if mismatches else 0
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
if __name__ == "__main__":
|
|
62
|
+
sys.exit(main())
|
{gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/cli/agentic_runner.py
RENAMED
|
@@ -13,6 +13,7 @@ from gooddata_eval.core.agentic._gate import DEFAULT_GATE, EvalGate, normalize_g
|
|
|
13
13
|
from gooddata_eval.core.agentic._langfuse import make_langfuse_client
|
|
14
14
|
from gooddata_eval.core.agentic._search_expectation import SEARCH_ARGUMENT_KEYS
|
|
15
15
|
from gooddata_eval.core.agentic._trace_linker import BackgroundTraceLinker, SubmitTraceLink, run_trace_link_inline
|
|
16
|
+
from gooddata_eval.core.agentic.agent_switcher import evaluate_agentic_agent_switcher
|
|
16
17
|
from gooddata_eval.core.agentic.alert_skill import evaluate_agentic_alert_skill
|
|
17
18
|
from gooddata_eval.core.agentic.anomaly_detection import evaluate_agentic_anomaly_detection
|
|
18
19
|
from gooddata_eval.core.agentic.conversation import ConversationFixture, evaluate_agentic_conversation
|
|
@@ -23,6 +24,7 @@ from gooddata_eval.core.agentic.forecasting import evaluate_agentic_forecasting
|
|
|
23
24
|
from gooddata_eval.core.agentic.general_question import evaluate_agentic_general_question
|
|
24
25
|
from gooddata_eval.core.agentic.guardrail import evaluate_agentic_guardrail
|
|
25
26
|
from gooddata_eval.core.agentic.kda_skill import evaluate_agentic_kda_skill
|
|
27
|
+
from gooddata_eval.core.agentic.knowledge import evaluate_agentic_knowledge
|
|
26
28
|
from gooddata_eval.core.agentic.metric_skill import evaluate_agentic_metric_skill
|
|
27
29
|
from gooddata_eval.core.agentic.search_tool import evaluate_agentic_search_tool
|
|
28
30
|
from gooddata_eval.core.agentic.visualization import evaluate_agentic_visualization
|
|
@@ -63,6 +65,8 @@ AGENTIC_TEST_KINDS = frozenset(
|
|
|
63
65
|
"agentic_dashboard_summary",
|
|
64
66
|
"agentic_anomaly_detection",
|
|
65
67
|
"agentic_what_if",
|
|
68
|
+
"agentic_agent_switcher",
|
|
69
|
+
"agentic_knowledge",
|
|
66
70
|
}
|
|
67
71
|
)
|
|
68
72
|
|
|
@@ -385,6 +389,30 @@ def _dispatch_agentic(
|
|
|
385
389
|
user_context=item.user_context,
|
|
386
390
|
**lf_kw,
|
|
387
391
|
)
|
|
392
|
+
elif kind == "agentic_agent_switcher":
|
|
393
|
+
# The item names its own agents and carries its own user_context.
|
|
394
|
+
return evaluate_agentic_agent_switcher(
|
|
395
|
+
host=host,
|
|
396
|
+
token=token,
|
|
397
|
+
workspace_id=workspace_id,
|
|
398
|
+
dataset_item=item,
|
|
399
|
+
k=k,
|
|
400
|
+
gate=gate,
|
|
401
|
+
**lf_kw,
|
|
402
|
+
)
|
|
403
|
+
elif kind == "agentic_knowledge":
|
|
404
|
+
return evaluate_agentic_knowledge(
|
|
405
|
+
host=host,
|
|
406
|
+
token=token,
|
|
407
|
+
workspace_id=workspace_id,
|
|
408
|
+
question=item.question,
|
|
409
|
+
expected_output=eo,
|
|
410
|
+
k=k,
|
|
411
|
+
gate=gate,
|
|
412
|
+
agent_id=agent_id,
|
|
413
|
+
user_context=item.user_context,
|
|
414
|
+
**lf_kw,
|
|
415
|
+
)
|
|
388
416
|
elif kind == "agentic_conversation":
|
|
389
417
|
fixture_data = eo.get("fixture") or eo if isinstance(eo, dict) else {}
|
|
390
418
|
return evaluate_agentic_conversation(
|
{gooddata_eval-1.80.1.dev7 → gooddata_eval-1.80.1.dev9}/src/gooddata_eval/core/agentic/__init__.py
RENAMED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
# (C) 2026 GoodData Corporation. All rights reserved.
|
|
2
|
+
from gooddata_eval.core.agentic.agent_switcher import (
|
|
3
|
+
AgenticAgentSwitcherSummary,
|
|
4
|
+
AgentSwitcherAssertionError,
|
|
5
|
+
AgentSwitcherRunResult,
|
|
6
|
+
evaluate_agentic_agent_switcher,
|
|
7
|
+
run_agentic_agent_switcher,
|
|
8
|
+
)
|
|
2
9
|
from gooddata_eval.core.agentic.alert_skill import (
|
|
3
10
|
AgenticAlertSummary,
|
|
4
11
|
AlertEvaluation,
|
|
@@ -85,6 +92,9 @@ evaluate_agentic_report_skill = evaluate_agentic_document_skill
|
|
|
85
92
|
run_agentic_report_skill = run_agentic_document_skill
|
|
86
93
|
|
|
87
94
|
__all__ = [
|
|
95
|
+
"AgentSwitcherAssertionError",
|
|
96
|
+
"AgentSwitcherRunResult",
|
|
97
|
+
"AgenticAgentSwitcherSummary",
|
|
88
98
|
"AgenticAlertSummary",
|
|
89
99
|
"AgenticDashboardSummary",
|
|
90
100
|
"AgenticGeneralQuestionSummary",
|
|
@@ -125,6 +135,7 @@ __all__ = [
|
|
|
125
135
|
"TurnDefinition",
|
|
126
136
|
"TurnResult",
|
|
127
137
|
"VisualizationAssertionError",
|
|
138
|
+
"evaluate_agentic_agent_switcher",
|
|
128
139
|
"evaluate_agentic_alert_skill",
|
|
129
140
|
"evaluate_agentic_conversation",
|
|
130
141
|
"evaluate_agentic_dashboard_skill",
|
|
@@ -136,6 +147,7 @@ __all__ = [
|
|
|
136
147
|
"evaluate_agentic_report_skill",
|
|
137
148
|
"evaluate_agentic_search_tool",
|
|
138
149
|
"evaluate_agentic_visualization",
|
|
150
|
+
"run_agentic_agent_switcher",
|
|
139
151
|
"run_agentic_alert_skill",
|
|
140
152
|
"run_agentic_conversation",
|
|
141
153
|
"run_agentic_dashboard_skill",
|