Intelligence · function

createProxyProvider

Returns a provider directly, where the local path returns a Promise<AiProviderResult>.

Explained in Agents and behaviour.

function createProxyProvider(config: ProxyProviderConfig): AiProvider
import { createProxyProvider } from '@driftengine/ai';

Parameters

ParameterTypeDescription
configProxyProviderConfig

In depth

A proxy has nothing to probe: its capabilities are whatever the consumer's endpoint declares, and finding out otherwise costs a network round trip nobody asked for. createAiProvider wraps either behind the capability check, so a caller sees one shape.