@threadplane/coreInterfacev0.3.7

StreamingToolCall

A tool call the model is still writing. Its arguments are not final, so it is not a ToolCall and is listed apart, in a snapshot's streamingToolCalls. Once the arguments are complete the session removes it from that list and adds a ToolCall with the same id to toolCalls.

import type { StreamingToolCall } from '@threadplane/core';

Declaration

export interface StreamingToolCall  {
  readonly args?: PlainValue;
  readonly argsText: string;
  readonly id: string;
  readonly name: string;
}

Members

args

The arguments as far as they can be read from argsText, when the session parses partial JSON. A best effort: fields may be missing or cut short.

readonly args?: PlainValue;

argsText

The argument text received so far, exactly as the model wrote it.

readonly argsText: string;

id

readonly id: string;

name

readonly name: string;