Header menu logo Nao

ObservabilityServices Type

Builds the per-turn IHarnessServices bundle handed to the agent harness. Each session's observability lives in its own backing bundle (e.g. sessions//observability/), built lazily by `backingFactory` and memoised; the returned bundle tees every write to the bus while reads delegate to that backing store. Where the data lands is the store-level swap point (the backing factory), so producers never change.

Constructors

Constructor Description

ObservabilityServices(bus, backingFactory)

Full Usage: ObservabilityServices(bus, backingFactory)

Parameters:
Returns: ObservabilityServices
bus : IEventBus
backingFactory : string -> IHarnessServices
Returns: ObservabilityServices

Instance members

Instance member Description

this.ServicesFor

Full Usage: this.ServicesFor

Parameters:
    sessionKey : string
    turnId : string

Returns: IHarnessServices

The per-turn harness-services bundle for a session: writes are teed to the bus, reads hit the session's backing store. `turnId` stamps each published signal with its turn.

sessionKey : string
turnId : string
Returns: IHarnessServices

Type something to start searching.