AskStructuredResult
AskStructuredResult<
T> = {ok:true;value:T; } | {error:string;ok:false; }
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/runtime/askStructured.ts:163
Discriminated result of askStructured: the parsed value on success, an error string on any failure (unusable model, timeout, unparseable output, or a thrown error). Never throws.
Type Parameters
Section titled “Type Parameters”T