@threadplane/chatInterfacev0.3.4

PartialArgsBridge

Feeds cumulative tool argument JSON into an A2UI surface store while tracking malformed streams.

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

Declaration

export interface PartialArgsBridge  {
  isPoisoned(toolCallId: string): boolean;
  push(toolCallId: string, argsSoFar: string): void;
}

Members

isPoisoned · overload 1

True if a tool_call_id has been poisoned by malformed input.

isPoisoned(toolCallId: string): boolean;

Parameters

toolCallId · required
string

Returns

boolean

push · overload 1

Replace the cumulative argument-string buffer for toolCallId with argsSoFar and re-extract any newly-complete envelopes. The args string is expected to grow monotonically.

push(toolCallId: string, argsSoFar: string): void;

Parameters

toolCallId · required
string
argsSoFar · required
string

Returns

void