MockAgentOptions
Initial values for a MockAgent, and which optional commands it carries.
import type { MockAgentOptions } from '@threadplane/angular/chat/testing';Declaration
export interface MockAgentOptions extends Omit<FakeAgentSessionInit, 'commands' | 'stateType'> {
readonly commands?: readonly FakeCommand[];
readonly isThreadLoading?: boolean;
readonly threadId?: string | null;
}Members
commands
The optional commands the agent carries. Defaults to regenerate, retry
and onCustomEvent; resume is always present. Pass a list to add
checkStatus, runWithoutMessage or clientTools, or to leave some out
so a view under test offers no control for them.
readonly commands?: readonly FakeCommand[];isThreadLoading
readonly isThreadLoading?: boolean;threadId
readonly threadId?: string | null;