@threadplane/langgraphInterfacev0.3.7

LangGraphSubgraph

Full-path child observations, with no execution or command authority.

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

Declaration

export interface LangGraphSubgraph  {
  readonly delegation?: LangGraphDelegation;
  readonly error?: AgentError;
  readonly interrupts: readonly LangGraphWireInterrupt[];
  readonly messages: readonly Message[];
  readonly namespace: readonly string[];
  readonly state: LangGraphState | undefined;
  readonly streamingToolCalls?: readonly StreamingToolCall[];
  readonly toolCalls: readonly ToolCall[];
}

Members

delegation

Present once the child is related to the root tool call that started it.

readonly delegation?: LangGraphDelegation;

error

readonly error?: AgentError;

interrupts

readonly interrupts: readonly LangGraphWireInterrupt[];

messages

readonly messages: readonly Message[];

namespace

readonly namespace: readonly string[];

state

A child graph's state. It is never checked against the session's declaration.

readonly state: LangGraphState | undefined;

streamingToolCalls

The child's tool calls whose arguments are still streaming; absent when none are.

readonly streamingToolCalls?: readonly StreamingToolCall[];

toolCalls

The child graph's own tool calls, referenced by Message.toolCallIds in messages.

readonly toolCalls: readonly ToolCall[];