LLMCallBuilder

Class: LLMCallBuilder

Defined in: src/core/LLMCall.ts:744

Tiny fluent builder. Validates required fields at build() time.

Constructors

Constructor

new LLMCallBuilder(opts): LLMCallBuilder

Defined in: src/core/LLMCall.ts:751

Parameters

opts

LLMCallOptions

Returns

LLMCallBuilder

Methods

build()

build(): LLMCall

Defined in: src/core/LLMCall.ts:776

Returns

LLMCall


system()

system(prompt): this

Defined in: src/core/LLMCall.ts:761

Set the system prompt. Once per call — a second .system() used to REPLACE the first in silence, so the instructions written first were never sent and nothing said so. Join the parts yourself and pass one string.

Parameters

prompt

string

Returns

this

On this page