agentx-python 0.6.30__tar.gz → 0.6.31__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.
- {agentx_python-0.6.30 → agentx_python-0.6.31}/PKG-INFO +1 -1
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/feedback.py +16 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/monitor/client.py +11 -0
- agentx_python-0.6.31/agentx/version.py +1 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx_python.egg-info/PKG-INFO +1 -1
- agentx_python-0.6.30/agentx/version.py +0 -1
- {agentx_python-0.6.30 → agentx_python-0.6.31}/LICENSE +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/README.md +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/__init__.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/agentx.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/cli.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/__init__.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/_term.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/adapters/__init__.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/adapters/http_endpoint.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/adapters/precomputed.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/adapters/raw.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/client.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/datasets.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/evaluation_settings.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/models.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/prompts.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/redaction.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/reporting.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/results.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/runner.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/tool_schemas.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/evaluations/tracing.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/exceptions.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/__init__.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/_traced_call.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/anthropic.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/autogen.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/crewai.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/databricks.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/google_adk.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/google_genai.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/langchain.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/litellm.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/llamaindex.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/moveworks.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/openai.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/integrations/openai_agents.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/monitor/__init__.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/monitor/agents.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/monitor/models.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/monitor/online_evaluators.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/monitor/patterns.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/monitor/profile.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/monitor/sessions.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/monitor/signals.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/outcomes.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/py.typed +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/resources/__init__.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/resources/agent.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/resources/conversation.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/resources/workforce.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/tracing/__init__.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/tracing/ci_types.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/tracing/ingest_client.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/tracing/tracer.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx/util.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx_python.egg-info/SOURCES.txt +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx_python.egg-info/dependency_links.txt +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx_python.egg-info/entry_points.txt +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx_python.egg-info/not-zip-safe +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx_python.egg-info/requires.txt +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/agentx_python.egg-info/top_level.txt +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/setup.cfg +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/setup.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/tests/test_integration.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/tests/test_integrations.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/tests/test_selfhost_analysis_fallback.py +0 -0
- {agentx_python-0.6.30 → agentx_python-0.6.31}/tests/test_span_tree.py +0 -0
|
@@ -74,3 +74,19 @@ class FeedbackClient:
|
|
|
74
74
|
raise AgentXFeedbackError(f"Failed to report feedback ({resp.status_code}): {detail}")
|
|
75
75
|
logger.info("Reported %s feedback on trace %s", rating, trace_id)
|
|
76
76
|
return resp.json().get("feedback", {})
|
|
77
|
+
|
|
78
|
+
def list(self, trace_id: str) -> list:
|
|
79
|
+
"""All votes recorded on one trace, oldest first (``GET /feedback/trace/:traceId``) -
|
|
80
|
+
the same rows the dashboard's trace dialog shows as up/down chips."""
|
|
81
|
+
resp = requests.get(
|
|
82
|
+
f"{api_base()}/feedback/trace/{trace_id}",
|
|
83
|
+
headers=get_headers(self._api_key),
|
|
84
|
+
timeout=10,
|
|
85
|
+
)
|
|
86
|
+
if resp.status_code >= 400:
|
|
87
|
+
try:
|
|
88
|
+
detail = resp.json().get("error", resp.reason)
|
|
89
|
+
except ValueError:
|
|
90
|
+
detail = resp.reason
|
|
91
|
+
raise AgentXFeedbackError(f"Failed to list feedback ({resp.status_code}): {detail}")
|
|
92
|
+
return resp.json().get("feedback", [])
|
|
@@ -198,6 +198,17 @@ class MonitorClient:
|
|
|
198
198
|
data = self._request("GET", f"/online-evaluators/{evaluator_id}/events", params=params)
|
|
199
199
|
return [OnlineEvaluatorEvent(**e) for e in data.get("events", [])]
|
|
200
200
|
|
|
201
|
+
# ------------------------------------------------------------------
|
|
202
|
+
# KPI endpoint
|
|
203
|
+
# ------------------------------------------------------------------
|
|
204
|
+
|
|
205
|
+
def kpis(self, window: str = "7d") -> dict:
|
|
206
|
+
"""Production health metrics over a window ("24h", "7d", or "30d") - the same numbers
|
|
207
|
+
the dashboard's Overview KPI strip shows: totalRuns, healthRate, failureRate,
|
|
208
|
+
downvoteRate (share of end-user votes that were "down"), toolFailureRate, p95LatencyMs,
|
|
209
|
+
plus deltas vs the prior window and the run-outcome breakdown."""
|
|
210
|
+
return self._request("GET", "/kpis", params={"window": window})
|
|
211
|
+
|
|
201
212
|
# ------------------------------------------------------------------
|
|
202
213
|
# Signal endpoints
|
|
203
214
|
# ------------------------------------------------------------------
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = "0.6.31"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = "0.6.30"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|