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
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
Returns
Promise<LLMResult<T>>
Implementation of
complete()
complete(options): Promise<LLMResult<string>>;Defined in: llm/openai-client.ts:63
Free-text completion (drafts, search answers).
Parameters
options
Returns
Promise<LLMResult<string>>