Skip to content

Interface: BoundLLMModel

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / BoundLLMModel

Defined in: src/types/llm.ts:331

Bound LLM model - full definition.

Represents a model bound to a specific provider and model ID, ready to execute inference requests.

TParams = unknown

Provider-specific parameter type

readonly capabilities: LLMCapabilities

Defined in: src/types/llm.ts:339

Provider API capabilities


readonly modelId: string

Defined in: src/types/llm.ts:333

The model identifier


readonly provider: LLMProvider<TParams>

Defined in: src/types/llm.ts:336

Reference to the parent provider

complete(request): Promise<LLMResponse>

Defined in: src/types/llm.ts:347

Executes a single non-streaming inference request.

LLMRequest<TParams>

The inference request

Promise<LLMResponse>

Promise resolving to the response


stream(request): LLMStreamResult

Defined in: src/types/llm.ts:355

Executes a single streaming inference request.

LLMRequest<TParams>

The inference request

LLMStreamResult

Stream result with events and final response