Skip to content

AskStructuredOptions

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/runtime/askStructured.ts:36

Inputs to askStructured. The caller supplies the model (via config), the two message texts, and an optional timeout — the Zod schema is a separate positional argument so <T> can be inferred from it.

config: GthConfig

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/runtime/askStructured.ts:37


system: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/runtime/askStructured.ts:39

System-message text (instructions). May be empty.


optional timeoutMs?: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/runtime/askStructured.ts:43

Wall-clock budget in ms. Default ASK_STRUCTURED_DEFAULT_TIMEOUT_MS (30_000).


user: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/runtime/askStructured.ts:41

Human-message text (the actual content/question).