BaseProvider
openmolt / BaseProvider
Abstract Class: BaseProvider
Defined in: providers/BaseProvider.ts:15
Abstract base for all language-model providers.
Implementations are responsible for translating the normalised
systemPrompt / userMessage / config inputs into the provider's own
API format and returning a normalised LLMResponse.
Extended by
Constructors
Constructor
new BaseProvider():
BaseProvider
Returns
BaseProvider
Methods
generate()
abstractgenerate(systemPrompt,userMessage,model,config?):Promise<LLMResponse>
Defined in: providers/BaseProvider.ts:24
Send a prompt to the underlying LLM and return a normalised response.
Parameters
systemPrompt
string
The Maestro system prompt (static across iterations).
userMessage
string
The per-iteration input-state message.
model
string
Provider-specific model identifier (e.g. gpt-4o).
config?
Optional model-level tuning parameters.
Returns
Promise<LLMResponse>