@threadplane/langgraphInterfacev0.3.4

SubagentStreamRef

Reference to a subagent's streaming state.

import type { SubagentStreamRef } from '@threadplane/langgraph';

Declaration

export interface SubagentStreamRef  {
  messages: Signal<BaseMessage[]>;
  name?: string;
  status: Signal<'pending' | 'running' | 'complete' | 'error'>;
  toolCallId: string;
  values: Signal<Record<string, unknown>>;
}

Members

messages

Messages from the subagent conversation.

messages: Signal<BaseMessage[]>;

name

Optional human-readable subagent type/name.

name?: string;

status

Current execution status of the subagent.

status: Signal<'pending' | 'running' | 'complete' | 'error'>;

toolCallId

The tool call ID that spawned this subagent.

toolCallId: string;

values

Current state values from the subagent.

values: Signal<Record<string, unknown>>;