MockAgent
An in-memory Agent for tests and stories: the agent's own shape, with
every snapshot field writable and every command recorded. It stands on the
fake session from @threadplane/core/testing, reachable as fake for its
streaming helper and its full call log.
import type { MockAgent } from '@threadplane/angular/chat';Declaration
export type MockAgent = Omit<Agent, keyof MockAgentMembers> & MockAgentMembers & {
readonly fake: FakeAgentSession;
readonly submitCalls: readonly {
readonly input: AgentSubmitInput;
readonly opts?: AgentSubmitOptions;
}[];
readonly stopCount: number;
readonly switchThreadCalls: readonly (string | null)[];
emitCustomEvent(name: string, data?: PlainValue): void;
};