Skip to content

Commit e631fc2

Browse files
Merge pull request #1843 from gooddata/snapshot-master-1daa2c40-to-rel/dev
[bot] Merge master/1daa2c40 into rel/dev
2 parents ee10946 + 1daa2c4 commit e631fc2

5 files changed

Lines changed: 1188 additions & 0 deletions

File tree

‎packages/gooddata-eval/src/gooddata_eval/cli/agentic_runner.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from gooddata_eval.core.agentic._langfuse import make_langfuse_client
1313
from gooddata_eval.core.agentic._trace_linker import BackgroundTraceLinker, SubmitTraceLink, run_trace_link_inline
1414
from gooddata_eval.core.agentic.alert_skill import evaluate_agentic_alert_skill
15+
from gooddata_eval.core.agentic.anomaly_detection import evaluate_agentic_anomaly_detection
1516
from gooddata_eval.core.agentic.conversation import ConversationFixture, evaluate_agentic_conversation
1617
from gooddata_eval.core.agentic.dashboard_skill import evaluate_agentic_dashboard_skill
1718
from gooddata_eval.core.agentic.general_question import evaluate_agentic_general_question
@@ -48,6 +49,7 @@ class _LfKw(TypedDict, total=False):
4849
"agentic_guardrail",
4950
"agentic_conversation",
5051
"agentic_kda_skill",
52+
"agentic_anomaly_detection",
5153
"agentic_what_if",
5254
}
5355
)
@@ -278,6 +280,18 @@ def _dispatch_agentic(
278280
agent_id=agent_id,
279281
**lf_kw,
280282
)
283+
elif kind == "agentic_anomaly_detection":
284+
return evaluate_agentic_anomaly_detection(
285+
host=host,
286+
token=token,
287+
workspace_id=workspace_id,
288+
question=item.question,
289+
expected_output=eo if isinstance(eo, dict) else {},
290+
k=k,
291+
gate=gate,
292+
agent_id=agent_id,
293+
**lf_kw,
294+
)
281295
elif kind == "agentic_conversation":
282296
fixture_data = eo.get("fixture") or eo if isinstance(eo, dict) else {}
283297
return evaluate_agentic_conversation(

0 commit comments

Comments
 (0)