agentops-rpc 0.7.2__tar.gz → 0.7.3__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.
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/PKG-INFO +1 -1
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/pyproject.toml +1 -1
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/__init__.py +4 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/runs.py +31 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc.egg-info/PKG-INFO +1 -1
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/LICENSE +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/README.md +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/setup.cfg +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/agent_create.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/agent_settings.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/agents.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/capabilities.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/constants.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/deployment.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/hosted_agents.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/roster.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/run_settings.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/skill_resource.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/tools.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/triggers.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/types.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/agents/worker_catalog.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/base/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/base/build_stamp.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/base/protocol.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/config/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/config/worker_config.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/cost/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/cost/budgets.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/cost/usage.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/eval/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/eval/grader.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/eval/kb_pages.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/eval/knowledge_base.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/eval/quality.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/eval/scores.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/gateway/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/gateway/alerts.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/gateway/schedules.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/gateway/triggers.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/identity/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/identity/credentials.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/identity/integrations.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/incidents/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/incidents/insights.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/incidents/issues.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/memory/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/memory/agent/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/memory/agent/worker.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/model/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/model/discovery.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/model/gateway.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/onboarding/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/onboarding/checklist.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/rules/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/rules/types.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/a2a.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/artifacts.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/capture.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/events.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/replay.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/security.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/session.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/titles.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/runs/types.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/wire/__init__.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/wire/frame_registry.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/wire/frames.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/wire/koperator.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/wire/koperator_contract.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/wire/outpost.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/wire/outpost_contract.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/wire/outpost_fingerprint.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc/wire/resolve.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc.egg-info/SOURCES.txt +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc.egg-info/dependency_links.txt +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc.egg-info/requires.txt +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/src/agentops_rpc.egg-info/top_level.txt +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_agent_create_models.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_agent_tools.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_agent_version.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_build_stamp.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_call_usage.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_criterion_definition.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_domain_layout.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_frame_schema.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_hosted_agent_mcp_servers.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_hosted_agent_scaling_models.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_integrations_schemas.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_koperator_contract.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_label_rules.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_outpost_contract.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_pair_grader_models.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_platform_base_evaluator.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_replay_models.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_run_titles.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_security_signals.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_use_case_model.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_worker_catalog_schema.py +0 -0
- {agentops_rpc-0.7.2 → agentops_rpc-0.7.3}/tests/test_worker_config_ops.py +0 -0
|
@@ -466,6 +466,8 @@ from .runs.runs import (
|
|
|
466
466
|
PollNextRunRequest,
|
|
467
467
|
RevisionActivity,
|
|
468
468
|
RunDetail,
|
|
469
|
+
RunInitiator,
|
|
470
|
+
RunInitiatorKind,
|
|
469
471
|
RunInvocation,
|
|
470
472
|
RunInvoker,
|
|
471
473
|
RunJob,
|
|
@@ -634,6 +636,8 @@ __all__ = [
|
|
|
634
636
|
"GOLDEN_RUN_METADATA_KEY",
|
|
635
637
|
"GRADED_RUN_METADATA_KEY",
|
|
636
638
|
"RUN_INVOKED_BY_KEY",
|
|
639
|
+
"RunInitiator",
|
|
640
|
+
"RunInitiatorKind",
|
|
637
641
|
"RunInvocation",
|
|
638
642
|
"RETIRED_RUN_INVOKERS",
|
|
639
643
|
"RunInvoker",
|
|
@@ -227,6 +227,13 @@ RUN_GUARDRAIL_REDACTIONS_KEY = "guardrail_redactions"
|
|
|
227
227
|
# a replayed turn's usage a no-op. Control-plane authoritative: stripped from caller-supplied metadata,
|
|
228
228
|
# never honoured from it, or a caller could pre-seed this list and suppress real dedup counting.
|
|
229
229
|
RUN_USAGE_MESSAGE_IDS_KEY = "usage_message_ids"
|
|
230
|
+
# The ledger of the attempts before the last requeue. Only an id in it is a replay: within one attempt a
|
|
231
|
+
# message reports a running total twice (opening snapshot, then final figure) under the same id.
|
|
232
|
+
RUN_USAGE_MESSAGE_IDS_PRIOR_KEY = "usage_message_ids_prior"
|
|
233
|
+
# `{"event_id": ..., "sequence": n}` of the newest usage report applied. Reports are running totals, so an
|
|
234
|
+
# older report of the same attempt that arrives later must not replace it. Control-plane authoritative.
|
|
235
|
+
RUN_USAGE_SEQ_KEY = "usage_seq"
|
|
236
|
+
RUN_USAGE_SEQ_FINAL = 2**63 - 1
|
|
230
237
|
|
|
231
238
|
# Reserved key under a run's `metadata` counting how many times the lease sweeper has taken this run
|
|
232
239
|
# back off a worker and requeued it (#8628). Two readers: an operator asking why a run restarted, and
|
|
@@ -336,6 +343,30 @@ class RunInvocation(BaseModel):
|
|
|
336
343
|
return value[:200] if value is not None else None
|
|
337
344
|
|
|
338
345
|
|
|
346
|
+
class RunInitiatorKind(StrEnum):
|
|
347
|
+
USER = "user"
|
|
348
|
+
CHANNEL_USER = "channel_user"
|
|
349
|
+
SERVICE_ACCOUNT = "service_account"
|
|
350
|
+
SCHEDULE = "schedule"
|
|
351
|
+
WEBHOOK = "webhook"
|
|
352
|
+
WORKFLOW = "workflow"
|
|
353
|
+
PLATFORM = "platform"
|
|
354
|
+
AGENT = "agent"
|
|
355
|
+
UNKNOWN = "unknown"
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
class RunInitiator(BaseModel):
|
|
359
|
+
kind: RunInitiatorKind
|
|
360
|
+
principal_id: str | None = None
|
|
361
|
+
ref: str | None = None
|
|
362
|
+
label: str | None = None
|
|
363
|
+
|
|
364
|
+
@field_validator("principal_id", "ref", "label")
|
|
365
|
+
@classmethod
|
|
366
|
+
def _bounded(cls, value: str | None) -> str | None:
|
|
367
|
+
return value[:200] if value is not None else None
|
|
368
|
+
|
|
369
|
+
|
|
339
370
|
class RunOriginRefs(BaseModel):
|
|
340
371
|
golden_run_ids: list[str] = Field(default_factory=list)
|
|
341
372
|
scenario_run_ids: list[str] = Field(default_factory=list)
|
|
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
|
|
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
|