dhaga.docs
API referenceClasses

OpenAILLMClient

Defined in: llm/openai-client.ts:18

Implements

Constructors

Constructor

new OpenAILLMClient(options): OpenAILLMClient;

Defined in: llm/openai-client.ts:23

Parameters

options

OpenAILLMClientOptions

Returns

OpenAILLMClient

Methods

extract()

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

Defined in: llm/openai-client.ts:29

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

Type Parameters

T

T

Parameters

options

ExtractOptions<T>

Returns

Promise<LLMResult<T>>

Implementation of

LLMClient.extract


complete()

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

Defined in: llm/openai-client.ts:63

Free-text completion (drafts, search answers).

Parameters

options

CompleteOptions

Returns

Promise<LLMResult<string>>

Implementation of

LLMClient.complete

On this page