IntelligenceX

API Reference

Class

AgentWorkStateRules

Namespace IntelligenceX.Telemetry.Agents
Assembly IntelligenceX
Modifiers static

Pure association and attention rules, with caller-supplied time for deterministic evaluation.

Inheritance

  • Object
  • AgentWorkStateRules

Methods

public static AgentWorkSnapshot Evaluate(IEnumerable<AgentSessionState> sessions, IEnumerable<AgentPullRequestState> pullRequests, DateTimeOffset nowUtc, TimeSpan? staleAfter = null, IReadOnlyList<AgentSourceDiagnostic>? diagnostics = null) #
Returns: AgentWorkSnapshot

Links sessions to PRs and evaluates attention. No files, network or process state are read.

Parameters

sessions System.Collections.Generic.IEnumerable<IntelligenceX.Telemetry.Agents.AgentSessionState> requiredposition: 0
Local provider metadata.
pullRequests System.Collections.Generic.IEnumerable<IntelligenceX.Telemetry.Agents.AgentPullRequestState> requiredposition: 1
GitHub metadata for the selected user.
nowUtc System.DateTimeOffset requiredposition: 2
Snapshot time.
staleAfter System.TimeSpan? = null optionalposition: 3
Inactivity threshold for sessions with an open PR; defaults to seven days.
diagnostics System.Collections.Generic.IReadOnlyList<IntelligenceX.Telemetry.Agents.AgentSourceDiagnostic>? = null optionalposition: 4
Optional source-read diagnostics.