agentx-python 0.8.16__tar.gz → 0.8.17__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.
Files changed (96) hide show
  1. {agentx_python-0.8.16/agentx_python.egg-info → agentx_python-0.8.17}/PKG-INFO +1 -1
  2. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/datasets.py +1 -1
  3. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/evaluation_settings.py +1 -1
  4. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/models.py +2 -2
  5. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/runner.py +5 -8
  6. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/client.py +18 -0
  7. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/scorer_groups.py +3 -1
  8. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/sessions.py +12 -0
  9. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/version.py +2 -2
  10. {agentx_python-0.8.16 → agentx_python-0.8.17/agentx_python.egg-info}/PKG-INFO +1 -1
  11. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_integrations.py +3 -1
  12. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_selfhost_analysis_fallback.py +2 -2
  13. {agentx_python-0.8.16 → agentx_python-0.8.17}/LICENSE +0 -0
  14. {agentx_python-0.8.16 → agentx_python-0.8.17}/README.md +0 -0
  15. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/__init__.py +0 -0
  16. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/agentx.py +0 -0
  17. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/cli.py +0 -0
  18. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/__init__.py +0 -0
  19. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/_term.py +0 -0
  20. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/adapters/__init__.py +0 -0
  21. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/adapters/http_endpoint.py +0 -0
  22. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/adapters/precomputed.py +0 -0
  23. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/adapters/raw.py +0 -0
  24. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/client.py +0 -0
  25. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/prompts.py +0 -0
  26. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/reporting.py +0 -0
  27. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/results.py +0 -0
  28. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/tool_schemas.py +0 -0
  29. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/evaluations/tracing.py +0 -0
  30. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/exceptions.py +0 -0
  31. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/export.py +0 -0
  32. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/feedback.py +0 -0
  33. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/__init__.py +0 -0
  34. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/_traced_call.py +0 -0
  35. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/anthropic.py +0 -0
  36. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/autogen.py +0 -0
  37. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/crewai.py +0 -0
  38. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/databricks.py +0 -0
  39. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/google_adk.py +0 -0
  40. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/google_genai.py +0 -0
  41. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/langchain.py +0 -0
  42. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/litellm.py +0 -0
  43. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/llamaindex.py +0 -0
  44. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/moveworks.py +0 -0
  45. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/openai.py +0 -0
  46. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/integrations/openai_agents.py +0 -0
  47. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/__init__.py +0 -0
  48. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/agents.py +0 -0
  49. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/improvement_groups.py +0 -0
  50. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/judge_scorers.py +0 -0
  51. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/models.py +0 -0
  52. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/online_evaluators.py +0 -0
  53. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/patterns.py +0 -0
  54. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/profile.py +0 -0
  55. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/review_queue.py +0 -0
  56. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/rules.py +0 -0
  57. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/scorers.py +0 -0
  58. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/monitor/signals.py +0 -0
  59. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/outcomes.py +0 -0
  60. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/projects.py +0 -0
  61. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/py.typed +0 -0
  62. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/resources/__init__.py +0 -0
  63. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/resources/agent.py +0 -0
  64. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/resources/conversation.py +0 -0
  65. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/resources/workforce.py +0 -0
  66. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/testing.py +0 -0
  67. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/traces.py +0 -0
  68. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/tracing/__init__.py +0 -0
  69. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/tracing/ci_types.py +0 -0
  70. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/tracing/eval_scope.py +0 -0
  71. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/tracing/framework_detect.py +0 -0
  72. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/tracing/ingest_client.py +0 -0
  73. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/tracing/tracer.py +0 -0
  74. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx/util.py +0 -0
  75. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx_python.egg-info/SOURCES.txt +0 -0
  76. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx_python.egg-info/dependency_links.txt +0 -0
  77. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx_python.egg-info/entry_points.txt +0 -0
  78. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx_python.egg-info/not-zip-safe +0 -0
  79. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx_python.egg-info/requires.txt +0 -0
  80. {agentx_python-0.8.16 → agentx_python-0.8.17}/agentx_python.egg-info/top_level.txt +0 -0
  81. {agentx_python-0.8.16 → agentx_python-0.8.17}/setup.cfg +0 -0
  82. {agentx_python-0.8.16 → agentx_python-0.8.17}/setup.py +0 -0
  83. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_cli_launcher.py +0 -0
  84. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_deep_dive_fixes.py +0 -0
  85. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_docs_match_sdk.py +0 -0
  86. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_eval_scope.py +0 -0
  87. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_framework_detect.py +0 -0
  88. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_integration.py +0 -0
  89. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_judge_scorers.py +0 -0
  90. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_multi_judge.py +0 -0
  91. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_pairwise.py +0 -0
  92. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_review_queue.py +0 -0
  93. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_runner_features.py +0 -0
  94. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_selfhost_compat.py +0 -0
  95. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_span_tree.py +0 -0
  96. {agentx_python-0.8.16 → agentx_python-0.8.17}/tests/test_testing.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentx-python
3
- Version: 0.8.16
3
+ Version: 0.8.17
4
4
  Summary: Official Python SDK for AgentX (https://www.agentx.so/)
5
5
  Home-page: https://github.com/AgentX-ai/AgentX-python
6
6
  Author: Robin Wang and AgentX Team
@@ -48,7 +48,7 @@ class DatasetBuilder:
48
48
  "questions": [],
49
49
  }
50
50
  # LLM-as-judge overrides for this dataset's own grading config. Omit either to keep the
51
- # server default (raw prompt template / OpenAI gpt-5.5, see EVALUATIONS.md). judge_model
51
+ # server default (raw prompt template / gpt-5.6-luna, see EVALUATIONS.md). judge_model
52
52
  # must be one of client.evaluations.list_models() (OpenAI or Anthropic).
53
53
  if judge_prompt is not None:
54
54
  self._payload["judgePrompt"] = judge_prompt
@@ -45,7 +45,7 @@ class EvaluationSettingsBuilder:
45
45
  "evaluationCriteria": evaluation_criteria,
46
46
  }
47
47
  # LLM-as-judge overrides. Omit either to keep the server default (raw prompt template /
48
- # OpenAI gpt-5.5, see EVALUATIONS.md). judge_model must be one of
48
+ # gpt-5.6-luna, see EVALUATIONS.md). judge_model must be one of
49
49
  # client.evaluations.list_models() (OpenAI or Anthropic).
50
50
  if judge_prompt is not None:
51
51
  self._payload["judgePrompt"] = judge_prompt
@@ -113,8 +113,8 @@ class EvaluationSettings(BaseModel):
113
113
  evaluation_criteria: Optional[str] = Field(default=None, alias="evaluationCriteria")
114
114
  # Custom code scorers on this scorer's offline profile - [{ id, name, code, enabled }].
115
115
  code_scorers: Optional[List[Dict[str, Any]]] = Field(default=None, alias="codeScorers")
116
- # LLM-as-judge overrides. None means "use the server default" (raw prompt template / OpenAI
117
- # gpt-5.5). See client.evaluations.settings.builder(judge_prompt=..., judge_model=...).
116
+ # LLM-as-judge overrides. None means "use the server default" (raw prompt template /
117
+ # gpt-5.6-luna). See client.evaluations.settings.builder(judge_prompt=..., judge_model=...).
118
118
  judge_prompt: Optional[str] = Field(default=None, alias="judgePrompt")
119
119
  judge_model: Optional[str] = Field(default=None, alias="judgeModel")
120
120
  status: str = "published"
@@ -63,9 +63,6 @@ _ANALYSIS_LEVEL_LABELS = {
63
63
  "l4_final_reduce": "writing final report",
64
64
  }
65
65
 
66
- _DEFAULT_JUDGE_MODEL = "gpt-5.5"
67
-
68
-
69
66
  class GateResult:
70
67
  """Wire result of the CI gate (GET /runs/:id/gate) with attribute access for the fields a
71
68
  CI script actually branches on."""
@@ -456,16 +453,16 @@ class EvaluationRunContext:
456
453
  Args:
457
454
  mode: "auto" (default), "sync", or "batch" - how item scoring executes server-side.
458
455
  quality_mode: "quality_first" or "balanced" - how many items get a second/third judge.
459
- judges: 1-3 model ids, e.g. ``["gpt-5.5", "claude-opus-4-8"]``. Defaults to a single
460
- judge, ``["gpt-5.5"]``, rather than the dashboard's 3-judge default - SDK runs are
461
- typically lighter-weight, quick-start evaluations.
456
+ judges: 1-3 model ids from ``client.evaluations.list_models()``, e.g.
457
+ ``["gpt-5.6-luna", "claude-opus-4-8"]``. Omit to let the engine score with its
458
+ platform default model (a single judge, rather than the dashboard's 3-judge
459
+ default - SDK runs are typically lighter-weight, quick-start evaluations).
462
460
  poll_interval: seconds between status checks while waiting.
463
461
  timeout: give up waiting after this many seconds (the job keeps running server-side;
464
462
  call ``get_report()`` later to check on it).
465
463
  """
466
464
  if judges is not None and not (1 <= len(judges) <= 3):
467
465
  raise ValueError("judges must contain 1-3 model ids")
468
- resolved_judges = judges if judges is not None else [_DEFAULT_JUDGE_MODEL]
469
466
 
470
467
  _say()
471
468
  with Spinner("Analyzing - AI is reviewing your results") as spinner:
@@ -474,7 +471,7 @@ class EvaluationRunContext:
474
471
  self._run.run_id,
475
472
  mode=mode,
476
473
  quality_mode=quality_mode,
477
- judges=resolved_judges,
474
+ judges=judges,
478
475
  )
479
476
  deadline = time.monotonic() + timeout
480
477
  status = self._client.get_analysis_status(self._run.run_id)
@@ -429,6 +429,24 @@ class MonitorClient:
429
429
  data = self._request("GET", f"/ingest/sessions/{session_id}/spans", base=self._api_root())
430
430
  return data.get("spans", []) if isinstance(data, dict) else data
431
431
 
432
+ def list_session_scores(self, session_id: str) -> List[dict]:
433
+ """Every session-level verdict on the session, newest first: session-scoped online
434
+ evaluators (kind ``online-eval:<id>``), session-scoped scorer groups
435
+ (``scorer-group:<id>``), and legacy coherence rows."""
436
+ data = self._request(
437
+ "GET", f"/agent-monitoring/sessions/{session_id}/scores", base=self._api_root()
438
+ )
439
+ return data.get("scores", []) if isinstance(data, dict) else data
440
+
441
+ def run_session_sweep(self) -> dict:
442
+ """Run the idle-session sweep once, now - the tick that scores quiet multi-turn
443
+ sessions with every enabled session-scoped evaluator and scorer group. Production
444
+ engines run this automatically every minute; the manual trigger exists for demos,
445
+ tests, and backfills. Returns ``{"judged": n}``."""
446
+ return self._request(
447
+ "POST", "/agent-monitoring/session-sweep/run", base=self._api_root(), timeout=300
448
+ )
449
+
432
450
  # ------------------------------------------------------------------
433
451
  # Model portability (self-host): replay a trace's input against other models
434
452
  # ------------------------------------------------------------------
@@ -65,7 +65,9 @@ class ScorerGroupsClient:
65
65
  online: Optional[Dict[str, Any]] = None,
66
66
  ) -> ScorerGroup:
67
67
  """``members``: [{"kind": "judge"|"pattern"|"custom", "refId": ..., "weight": 1, "gate": False}].
68
- ``online``: {"enabled": True, "sampleRate": 0.1, "alertThreshold": 5, "severity": "medium"}
68
+ ``online``: {"enabled": True, "sampleRate": 0.1, "alertThreshold": 5, "severity": "medium"}.
69
+ Add ``"scope": "session", "idleSeconds": 120`` to score whole multi-turn sessions once
70
+ idle, instead of each sampled trace.
69
71
  or None for offline-only."""
70
72
  payload: Dict[str, Any] = {"name": name, "members": members}
71
73
  if description is not None:
@@ -19,3 +19,15 @@ class MonitorSessionClient:
19
19
  def spans(self, session_id: str) -> List[dict]:
20
20
  """Every span in the session (roots and children), oldest first."""
21
21
  return self._client.list_session_spans(session_id)
22
+
23
+ def scores(self, session_id: str) -> List[dict]:
24
+ """Session-level verdicts, newest first. ``kind`` says who scored: a session-scoped
25
+ online evaluator (``online-eval:<id>``) or a session-scoped scorer group
26
+ (``scorer-group:<id>``)."""
27
+ return self._client.list_session_scores(session_id)
28
+
29
+ def run_sweep(self) -> dict:
30
+ """Trigger the idle-session sweep once (normally automatic, every minute) - scores
31
+ idle multi-turn sessions with every enabled session-scoped evaluator and scorer
32
+ group. Returns ``{"judged": n}``."""
33
+ return self._client.run_session_sweep()
@@ -1,7 +1,7 @@
1
- VERSION = "0.8.16"
1
+ VERSION = "0.8.17"
2
2
 
3
3
  # The AgentX-trace-eval release this SDK version is tested against - what `agentx-trace-eval`
4
4
  # installs and converges to (see agentx/cli.py). Bump together with VERSION when releasing, so
5
5
  # every published SDK names a known-good engine+dashboard pair. Users can override with
6
6
  # AGENTX_TRACE_EVAL_VERSION=<tag|latest>.
7
- ENGINE_VERSION = "v0.3.13"
7
+ ENGINE_VERSION = "v0.3.16"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentx-python
3
- Version: 0.8.16
3
+ Version: 0.8.17
4
4
  Summary: Official Python SDK for AgentX (https://www.agentx.so/)
5
5
  Home-page: https://github.com/AgentX-ai/AgentX-python
6
6
  Author: Robin Wang and AgentX Team
@@ -599,7 +599,9 @@ def test_crewai_captures_real_per_task_timing_via_event_bus():
599
599
  durations are provably unequal — the old "divide latency evenly across
600
600
  tasks" approximation would have reported them as identical.
601
601
  """
602
- crewai = pytest.importorskip("crewai")
602
+ # exc_type=Exception: on older Pythons crewai can raise TypeError (PEP 604 syntax) at
603
+ # import time, and a broken optional integration should skip this test, not fail it.
604
+ crewai = pytest.importorskip("crewai", exc_type=Exception)
603
605
  from crewai.events.event_bus import crewai_event_bus
604
606
  from crewai.events.types.task_events import TaskCompletedEvent, TaskStartedEvent
605
607
  from crewai.tasks.task_output import TaskOutput
@@ -210,12 +210,12 @@ def test_the_fallback_request_gets_the_long_analysis_timeout():
210
210
  {("POST", f"{API_ROOT}/evaluate/analyze/{RUN}"): FakeResponse(200, {"status": "completed"})}
211
211
  )
212
212
 
213
- client.analyze_run(RUN, judges=["gpt-5.5"])
213
+ client.analyze_run(RUN, judges=["gpt-5.6-luna"])
214
214
 
215
215
  method, url, kwargs = session.calls[-1]
216
216
  assert url == f"{API_ROOT}/evaluate/analyze/{RUN}"
217
217
  assert kwargs["timeout"] > 60, "a synchronous judge pass needs more than the 30s default"
218
- assert kwargs["json"]["judges"] == [{"model": "gpt-5.5"}]
218
+ assert kwargs["json"]["judges"] == [{"model": "gpt-5.6-luna"}]
219
219
 
220
220
 
221
221
  # ---------------------------------------------------------------------------
File without changes
File without changes
File without changes
File without changes