agentskit.js

createProgressiveArgParser

Auto-generated API reference for createProgressiveArgParser.

Function: createProgressiveArgParser()

createProgressiveArgParser(): ProgressiveArgParser

Defined in: packages/core/src/progressive.ts:40

Stream-parse a JSON object where top-level field values arrive incrementally. Fires an event as soon as each top-level field has a syntactically complete value, enabling "progressive" tool execution — the tool can begin work on the first field before the LLM has finished emitting the rest.

Only works at the top level of a JSON object — nested structures are parsed atomically when their enclosing top-level field closes. That matches the common tool-args shape: a flat \{ query, limit, ...\} object where the expensive operation depends on one key.

#Returns

ProgressiveArgParser

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page