@threadplane/angularInterfacev0.3.7

AgentLifecycle

When the injected agent first saw each milestone, in epoch milliseconds. Every value is null until its milestone happens, and all of them return to null when the agent switches threads.

The values come from the session's own lifecycle source. A session that publishes none leaves them null, apart from threadCreatedAt, which the agent records when a session reports the thread it created.

import type { AgentLifecycle } from '@threadplane/angular';

Declaration

export interface AgentLifecycle  {
  readonly interruptReceivedAt: Signal<number | null>;
  readonly interruptResolvedAt: Signal<number | null>;
  readonly streamErrorAt: Signal<{
        readonly at: number;
        readonly kind: AgentErrorKind | string;
    } | null>;
  readonly streamStartedAt: Signal<number | null>;
  readonly threadCreatedAt: Signal<number | null>;
  readonly threadPersistedAt: Signal<number | null>;
  readonly toolCallCompletedAt: Signal<number | null>;
  readonly toolCallStartedAt: Signal<number | null>;
}

Members

interruptReceivedAt

The first time the session held a pending interrupt.

readonly interruptReceivedAt: Signal<number | null>;

interruptResolvedAt

The most recent resume the session accepted.

readonly interruptResolvedAt: Signal<number | null>;

streamErrorAt

The most recent failure the session published, with its error kind: the same value agent.error()?.kind carries.

readonly streamErrorAt: Signal<{
        readonly at: number;
        readonly kind: AgentErrorKind | string;
    } | null>;

streamStartedAt

The first event to arrive on any run's stream.

readonly streamStartedAt: Signal<number | null>;

threadCreatedAt

When a session reported the thread it created for its first submit.

readonly threadCreatedAt: Signal<number | null>;

threadPersistedAt

The first history read that returned saved data for the thread.

readonly threadPersistedAt: Signal<number | null>;

toolCallCompletedAt

The first time a tool call was complete or failed.

readonly toolCallCompletedAt: Signal<number | null>;

toolCallStartedAt

The first time the session held a tool call.

readonly toolCallStartedAt: Signal<number | null>;