Interface: AIProvider
Defined in: ai/src/provider/types.ts:23
Properties
model
> readonly model: string
Defined in: ai/src/provider/types.ts:27
Concrete model id in use, e.g. 'claude-sonnet-5'.
name
> readonly name: string
Defined in: ai/src/provider/types.ts:25
Stable id, e.g. 'anthropic'.
Methods
generate()
> generate(options): Promise<string>
Defined in: ai/src/provider/types.ts:29
One-shot completion — returns the assistant's full text.
Parameters
options
Returns
Promise<string>
stream()
> stream(options): AsyncIterable<string>
Defined in: ai/src/provider/types.ts:31
Streaming completion — yields chunks as they arrive.
Parameters
options
Returns
AsyncIterable<string>