dhaga.docs
API referenceInterfaces

LLMClient

Defined in: llm/types.ts:46

Methods

extract()

extract<T>(options): Promise<LLMResult<T>>;

Defined in: llm/types.ts:48

Structured extraction — output is guaranteed to match the Zod schema.

Type Parameters

T

T

Parameters

options

ExtractOptions<T>

Returns

Promise<LLMResult<T>>


complete()

complete(options): Promise<LLMResult<string>>;

Defined in: llm/types.ts:50

Free-text completion (drafts, search answers).

Parameters

options

CompleteOptions

Returns

Promise<LLMResult<string>>

On this page