@threadplane/chatInterfacev0.3.4

MockAgentOptions

Initial mock agent state and opt-in interrupt, subagent, history, and event support.

import type { MockAgentOptions } from '@threadplane/chat';

Declaration

export interface MockAgentOptions  {
  error?: AgentError;
  events$?: Observable<AgentEvent>;
  history?: AgentCheckpoint[];
  isLoading?: boolean;
  messages?: Message[];
  state?: Record<string, unknown>;
  status?: AgentStatus;
  toolCalls?: ToolCall[];
  withInterrupt?: boolean;
  withSubagents?: boolean;
}

Members

error

error?: AgentError;

events$

events$?: Observable<AgentEvent>;

history

history?: AgentCheckpoint[];

isLoading

isLoading?: boolean;

messages

messages?: Message[];

state

state?: Record<string, unknown>;

status

status?: AgentStatus;

toolCalls

toolCalls?: ToolCall[];

withInterrupt

withInterrupt?: boolean;

withSubagents

withSubagents?: boolean;