@threadplane/langgraphInterfacev0.3.7

LangGraphToolCallWithResult

A tool call of the raw transcript with the message that answered it.

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

Declaration

export interface LangGraphToolCallWithResult  {
  readonly aiMessage: LangGraphWireMessage;
  readonly call: {
        readonly id: string;
        readonly name: string;
        readonly args: PlainValue;
    };
  readonly id: string;
  readonly index: number;
  readonly result: LangGraphWireMessage | undefined;
  readonly state: 'pending' | 'completed' | 'error';
}

Members

aiMessage

The assistant message that made the call.

readonly aiMessage: LangGraphWireMessage;

call

readonly call: {
        readonly id: string;
        readonly name: string;
        readonly args: PlainValue;
    };

id

readonly id: string;

index

The call's position among that message's tool calls.

readonly index: number;

result

The tool message with this call's id; undefined while the call is pending.

readonly result: LangGraphWireMessage | undefined;

state

readonly state: 'pending' | 'completed' | 'error';