@anthropic-ai/sdk
Version:
The official TypeScript library for the Anthropic API
10 lines • 395 B
TypeScript
export declare const JSON_BUF_PROPERTY = "__json_buf";
/**
* Copies a tool-use block with an updated `__json_buf`, installing `.input` as
* a memoized getter so the partial-JSON parse happens on first read instead of
* on every delta.
*/
export declare function withLazyInput<T extends {
input: unknown;
}>(prev: T, jsonBuf: string): T;
//# sourceMappingURL=message-stream-utils.d.ts.map