IntelligenceX

API Reference

Class

LocalAgentWorkStateService

Namespace IntelligenceX.Telemetry.Agents
Assembly IntelligenceX
Modifiers static

Reads provider metadata locally without launching clients, opening messages, or modifying provider state.

Inheritance

  • Object
  • LocalAgentWorkStateService

Methods

public static IReadOnlyList<SourceRootRecord> DiscoverRoots() #
Returns: IReadOnlyList<SourceRootRecord>

Discovers provider profiles and recovered roots, considering only running WSL distributions for observation.

public static AgentWorkSnapshot ReadLocal(IEnumerable<SourceRootRecord>? roots = null, DateTimeOffset? nowUtc = null, TimeSpan? activeWindow = null, IEnumerable<AgentSessionState>? codexMetadata = null, CancellationToken cancellationToken = default, AgentWorkOptions? options = null) #
Returns: AgentWorkSnapshot

Reads local logs and title indexes. Explicit roots replace automatic discovery.

Parameters

roots System.Collections.Generic.IEnumerable<IntelligenceX.Telemetry.Usage.SourceRootRecord>? = null optionalposition: 0
Optional telemetry source roots. An empty list reads nothing.
nowUtc System.DateTimeOffset? = null optionalposition: 1
Evaluation time; defaults to UTC now after all local sources have been read.
activeWindow System.TimeSpan? = null optionalposition: 2
Maximum quiet interval for an inferred running turn; defaults to five minutes.
codexMetadata System.Collections.Generic.IEnumerable<IntelligenceX.Telemetry.Agents.AgentSessionState>? = null optionalposition: 3
Optional read-only Codex database metadata from the SQLite companion library.
cancellationToken System.Threading.CancellationToken = default optionalposition: 4
Cancels enumeration and parsing.
options IntelligenceX.Telemetry.Agents.AgentWorkOptions? = null optionalposition: 5
Optional activity cutoff and parsed observation cache.